Class: Rails::Sequel::Storage::Sqlite

Inherits:
Rails::Sequel::Storage show all
Defined in:
lib/sequel-rails/storage.rb

Instance Attribute Summary

Attributes inherited from Rails::Sequel::Storage

#config

Instance Method Summary collapse

Methods inherited from Rails::Sequel::Storage

#charset, #create, create_all, create_environment, #database, #drop, drop_all, drop_environment, #initialize, new, #password, #username

Constructor Details

This class inherits a constructor from Rails::Sequel::Storage

Instance Method Details

#_createObject



94
95
96
97
# File 'lib/sequel-rails/storage.rb', line 94

def _create
  return if in_memory?
  ::Sequel.connect(config.merge('database' => path))
end

#_dropObject



99
100
101
102
# File 'lib/sequel-rails/storage.rb', line 99

def _drop
  return if in_memory?
  path.unlink if path.file?
end