Class: DBI::DBD::Pg::Driver
- Inherits:
-
BaseDriver
- Object
- BaseDriver
- DBI::DBD::Pg::Driver
- Defined in:
- lib/dbd/Pg.rb
Overview
See DBI::BaseDriver.
Instance Method Summary collapse
-
#connect(dbname, user, auth, attr) ⇒ Object
Connect to a database.
-
#data_sources ⇒ Object
List of datasources for this database.
-
#initialize ⇒ Driver
constructor
A new instance of Driver.
Constructor Details
#initialize ⇒ Driver
Returns a new instance of Driver.
146 147 148 |
# File 'lib/dbd/Pg.rb', line 146 def initialize super("0.4.0") 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_sources ⇒ Object
List of datasources for this database.
151 152 153 |
# File 'lib/dbd/Pg.rb', line 151 def data_sources [] end |