Class: DisposableDB::Databases::SQLite
- Inherits:
-
DisposableDB::Database
- Object
- DisposableDB::Database
- DisposableDB::Databases::SQLite
- Defined in:
- lib/disposable_db/databases/sqlite.rb
Instance Attribute Summary
Attributes inherited from DisposableDB::Database
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ SQLite
constructor
A new instance of SQLite.
Methods inherited from DisposableDB::Database
#create_table, #create_table!, #table_exists?
Constructor Details
#initialize(args = {}) ⇒ SQLite
Returns a new instance of SQLite.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/disposable_db/databases/sqlite.rb', line 5 def initialize(args = {}) if args[:connection] connection = args[:connection] elsif args[:db_path] connection = Sequel.sqlite args[:db_path] else connection = Sequel.sqlite end super(connection) end |