Class: SequelRails::Storage::Sqlite
- Defined in:
- lib/sequel_rails/storage/sqlite.rb
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
#charset, #close_connections, #create, #database, #drop, #dump, #host, #initialize, #load, #owner, #password, #port, #username
Constructor Details
This class inherits a constructor from SequelRails::Storage::Abstract
Instance Method Details
#_create ⇒ Object
4 5 6 7 |
# File 'lib/sequel_rails/storage/sqlite.rb', line 4 def _create return if in_memory? ::Sequel.connect(config.merge('database' => path)) end |
#_drop ⇒ Object
9 10 11 12 |
# File 'lib/sequel_rails/storage/sqlite.rb', line 9 def _drop return if in_memory? path.unlink if path.file? end |