Class: Sequel::Rails::Storage::Sqlite
- Inherits:
-
Sequel::Rails::Storage
- Object
- Sequel::Rails::Storage
- Sequel::Rails::Storage::Sqlite
- Defined in:
- lib/sequel/rails/storage.rb
Instance Attribute Summary
Attributes inherited from Sequel::Rails::Storage
Instance Method Summary collapse
Methods inherited from Sequel::Rails::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 Sequel::Rails::Storage
Instance Method Details
#_create ⇒ Object
111 112 113 114 |
# File 'lib/sequel/rails/storage.rb', line 111 def _create return if in_memory? Sequel.connect(config.merge('database' => path)) end |
#_drop ⇒ Object
116 117 118 119 |
# File 'lib/sequel/rails/storage.rb', line 116 def _drop return if in_memory? path.unlink if path.file? end |