Module: SQL::Sqlite
- Defined in:
- lib/dm-migrations/sql/sqlite.rb
Defined Under Namespace
Instance Method Summary collapse
- #recreate_database ⇒ Object
- #supports_schema_transactions? ⇒ Boolean
- #supports_serial? ⇒ Boolean
- #table(table_name) ⇒ Object
- #table_options ⇒ Object
Instance Method Details
#recreate_database ⇒ Object
14 15 16 17 18 |
# File 'lib/dm-migrations/sql/sqlite.rb', line 14 def recreate_database DataMapper.logger.info "Dropping #{@uri.path}" system "rm #{@uri.path}" # do nothing, sqlite will automatically create the database file end |
#supports_schema_transactions? ⇒ Boolean
6 7 8 |
# File 'lib/dm-migrations/sql/sqlite.rb', line 6 def supports_schema_transactions? true end |
#supports_serial? ⇒ Boolean
24 25 26 |
# File 'lib/dm-migrations/sql/sqlite.rb', line 24 def supports_serial? true end |
#table(table_name) ⇒ Object
10 11 12 |
# File 'lib/dm-migrations/sql/sqlite.rb', line 10 def table(table_name) SQL::Sqlite::Table.new(self, table_name) end |
#table_options ⇒ Object
20 21 22 |
# File 'lib/dm-migrations/sql/sqlite.rb', line 20 def '' end |