Class: Rails::Sequel::Storage::Sqlite
- Inherits:
-
Rails::Sequel::Storage
- Object
- Rails::Sequel::Storage
- Rails::Sequel::Storage::Sqlite
- Defined in:
- lib/sequel-rails/storage.rb
Instance Attribute Summary
Attributes inherited from Rails::Sequel::Storage
Instance Method Summary collapse
Methods inherited from Rails::Sequel::Storage
#charset, #create, create_all, create_environment, #database, #drop, drop_all, drop_environment, #host, #initialize, new, #owner, #password, #port, #username
Constructor Details
This class inherits a constructor from Rails::Sequel::Storage
Instance Method Details
#_create ⇒ Object
109 110 111 112 |
# File 'lib/sequel-rails/storage.rb', line 109 def _create return if in_memory? ::Sequel.connect(config.merge('database' => path)) end |
#_drop ⇒ Object
114 115 116 117 |
# File 'lib/sequel-rails/storage.rb', line 114 def _drop return if in_memory? path.unlink if path.file? end |