Package grizzled :: Package db :: Module dbgadfly :: Class GadflyDB
[hide private]
[frames] | no frames]

Class GadflyDB

source code

object --+    
         |    
   base.DB --+
             |
            GadflyDB

Instance Methods [hide private]
 
__init__(self, db, driver)
Create a new DB object.
source code
 
cursor(self)
Get a cursor suitable for accessing the database.
source code

Inherited from base.DB: Binary, Date, DateFromTicks, Time, TimeFromTicks, Timestamp, TimestampFromTicks, close, commit, paramstyle, rollback

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, db, driver)
(Constructor)

source code 
Create a new DB object.
Parameters:
  • db - the underlying Python DB API database object
  • driver - the driver (i.e., the subclass of DBDriver) that created the db object
Overrides: object.__init__
(inherited documentation)

cursor(self)

source code 
Get a cursor suitable for accessing the database. The returned object conforms to the Python DB API cursor interface.
Returns:
the cursor
Raises:
Overrides: base.DB.cursor
(inherited documentation)