Class: Sequelinha::Adapters::Sqlite
Instance Attribute Summary
#config
Class Method Summary
collapse
Instance Method Summary
collapse
#application_root, #initialize, #password, #string, #username
Class Method Details
.=~(adapter) ⇒ Object
16
17
18
|
# File 'lib/sequelinha/adapters/sqlite.rb', line 16
def self.=~(adapter)
adapter =~ /sqlite/
end
|
Instance Method Details
#adapter ⇒ Object
8
9
10
|
# File 'lib/sequelinha/adapters/sqlite.rb', line 8
def adapter
super == "sqlite3" ? "sqlite" : super
end
|
#database ⇒ Object
12
13
14
|
# File 'lib/sequelinha/adapters/sqlite.rb', line 12
def database
File.join(self.application_root, super)
end
|
#host ⇒ Object
4
5
6
|
# File 'lib/sequelinha/adapters/sqlite.rb', line 4
def host
nil
end
|