Home | Trees | Indices | Help |
---|
|
object --+ | base.DBDriver --+ | DummyDriver
|
|||
|
|||
str |
|
||
object |
|
||
Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Get a bound import for the underlying DB API module. All subclasses must provide an implementation of this method. Here's an example, assuming the real underlying Python DB API module is 'foosql': def get_import(self): import foosql return foosql
|
|
Connect to the actual underlying database, using the driver. Subclasses must provide an implementation of this method. The method must return the result of the real DB API implementation's connect() method. For instance: def do_connect(): dbi = self.get_import() return dbi.connect(host=host, user=user, passwd=password, database=database) There is no need to catch exceptions; the DBDriver class's connect() method handles that.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Mar 14 15:21:06 2016 | http://epydoc.sourceforge.net |