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

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

Overview

See DBI::BaseDriver.

Instance Method Summary collapse

Constructor Details

#initializeDriver

Returns a new instance of Driver.



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

def initialize
    super(DBI::VERSION)
end

Instance Method Details

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

Connect to a database.



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

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

#data_sourcesObject

List of datasources for this database.



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

def data_sources
    []
end