module SQL::Sqlite

Public Instance Methods

change_column_type_statement(*) click to toggle source
# File lib/dm-migrations/sql/sqlite.rb, line 30
def change_column_type_statement(*)
  raise NotImplementedError
end
recreate_database() click to toggle source
# File lib/dm-migrations/sql/sqlite.rb, line 16
def recreate_database
  DataMapper.logger.info "Dropping #{@uri.path}"
  FileUtils.rm_f(@uri.path)
  # do nothing, sqlite will automatically create the database file
end
rename_column_type_statement(*) click to toggle source
# File lib/dm-migrations/sql/sqlite.rb, line 34
def rename_column_type_statement(*)
  raise NotImplementedError
end
supports_schema_transactions?() click to toggle source
# File lib/dm-migrations/sql/sqlite.rb, line 8
def supports_schema_transactions?
  true
end
supports_serial?() click to toggle source
# File lib/dm-migrations/sql/sqlite.rb, line 26
def supports_serial?
  true
end
table(table_name) click to toggle source
# File lib/dm-migrations/sql/sqlite.rb, line 12
def table(table_name)
  SQL::Sqlite::Table.new(self, table_name)
end
table_options(opts) click to toggle source
# File lib/dm-migrations/sql/sqlite.rb, line 22
def table_options(opts)
  ''
end