Home | Trees | Index | Help |
|
---|
Package pydo :: Module dbi |
|
Classes | |
---|---|
ConnectionPool |
a connection pool for a single connection alias. |
ConnectionWrapper |
a connection object returned from a connection pool which wraps a real db connection. |
DBIBase |
base class for db connection wrappers. |
Function Summary | |
---|---|
delete a connection alias if it has already been initialized; does nothing otherwise | |
get a connection given a connection alias | |
initializes a connection alias with the stated connection arguments. | |
_connect(driver,
connectArgs,
pool,
verbose,
initFunc)
| |
_get_driver_class(name)
| |
_real_connect(connfunc,
connargs,
initFunc)
|
Variable Summary | |
---|---|
dict |
_aliases = {}
|
lock |
_connlock = <thread.lock object at 0xb7c3a0e0>
|
dict |
_driverConfig = {'oracle': 'pydo.drivers.oracleconn.Orac...
|
dict |
_loadedDrivers = {}
|
tuple |
exception_names = ('DataError', 'DatabaseError', 'Error'...
|
Function Details |
---|
delAlias(alias)delete a connection alias if it has already been initialized; does nothing otherwise |
getConnection(alias, create=True)get a connection given a connection alias |
initAlias(alias, driver, connectArgs, pool=None, verbose=False, init=None)initializes a connection alias with the stated connection arguments. It can cause confusion to let this be called repeatedly; you might think you are initializing it one way and not realize it is being initialized elsewhere differently. Therefore, this raises a ValueError if the alias is already initialized with different data. Multiple initializations with the same data (such as happens when a module calling initAlias is reloaded) are permitted. If you need to change the connect values at runtime, call delAlias before initAlias. |
Variable Details |
---|
_aliases
|
_connlock
|
_loadedDrivers
|
exception_names
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Wed Mar 8 10:18:59 2006 | http://epydoc.sf.net |