Class: Sequelinha::Adapters::Sqlite

Inherits:
ConnectionURL show all
Defined in:
lib/sequelinha/adapters/sqlite.rb

Instance Attribute Summary

Attributes inherited from ConnectionURL

#config

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ConnectionURL

#application_root, #initialize, #password, #string, #username

Constructor Details

This class inherits a constructor from Sequelinha::ConnectionURL

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

#adapterObject



8
9
10
# File 'lib/sequelinha/adapters/sqlite.rb', line 8

def adapter
  super == "sqlite3" ? "sqlite" : super
end

#databaseObject



12
13
14
# File 'lib/sequelinha/adapters/sqlite.rb', line 12

def database
  File.join(self.application_root, super)
end

#hostObject



4
5
6
# File 'lib/sequelinha/adapters/sqlite.rb', line 4

def host
  nil
end