Class: Sequelinha::Adapters::Postgres

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

Instance Attribute Summary

Attributes inherited from ConnectionURL

#config

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ConnectionURL

#application_root, #database, #host, #initialize, #password, #string, #username

Constructor Details

This class inherits a constructor from Sequelinha::ConnectionURL

Class Method Details

.=~(adapter) ⇒ Object



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

def self.=~(adapter)
  adapter =~ /postgre/
end

Instance Method Details

#adapterObject



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

def adapter
  super == "postgresql" ? "postgres" : super
end