class _DBProxy(object):
Layers connection pooling behavior on top of a standard DB-API module.
Proxies a DB-API 2.0 connect() call to a connection pool keyed to the specific connect parameters. Other functions and attributes are delegated to the underlying DB-API module.
Method | __del__ |
Undocumented |
Method | __getattr__ |
Undocumented |
Method | __init__ |
Initializes a new proxy. |
Method | _serialize |
Undocumented |
Method | close |
Undocumented |
Method | connect |
Activate a connection to the database. |
Method | dispose |
Dispose the pool referenced by the given connect arguments. |
Method | get_pool |
Undocumented |
Instance Variable | _create_pool_mutex |
Undocumented |
Instance Variable | kw |
Undocumented |
Instance Variable | module |
Undocumented |
Instance Variable | poolclass |
Undocumented |
Instance Variable | pools |
Undocumented |
Initializes a new proxy.
Other parameters are sent to the Pool object's constructor.
Activate a connection to the database.
Connect to the database using this DBProxy's module and the given connect arguments. If the arguments match an existing pool, the connection will be returned from the pool's current thread-local connection instance, or if there is no thread-local connection instance it will be checked out from the set of pooled connections.
If the pool has no available connections and allows new connections to be created, a new database connection will be made.