Class: DBI::DBD::Pg::Driver

Inherits:
BaseDriver show all
Defined in:
lib/dbd/Pg.rb

Overview

See DBI::BaseDriver.

Instance Method Summary collapse

Methods inherited from BaseDriver

#default_attributes, #default_user, #disconnect_all

Constructor Details

#initializeDriver

Returns a new instance of Driver.



147
148
149
# File 'lib/dbd/Pg.rb', line 147

def initialize
    super(DBI::VERSION)
end

Instance Method Details

#connect(dbname, user, auth, attr) ⇒ Object

Connect to a database.



157
158
159
# File 'lib/dbd/Pg.rb', line 157

def connect(dbname, user, auth, attr)
    Database.new(dbname, user, auth, attr)
end

#data_sourcesObject

List of datasources for this database.



152
153
154
# File 'lib/dbd/Pg.rb', line 152

def data_sources
    []
end