class documentation

class _DBProxy(object):

View In Hierarchy

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
def __del__(self):

Undocumented

def __getattr__(self, key):

Undocumented

def __init__(self, module, poolclass=QueuePool, **kw):

Initializes a new proxy.

module
a DB-API 2.0 module
poolclass
a Pool class, defaulting to QueuePool

Other parameters are sent to the Pool object's constructor.

def _serialize(self, *args, **kw):

Undocumented

def close(self):

Undocumented

def connect(self, *args, **kw):

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.

def dispose(self, *args, **kw):
Dispose the pool referenced by the given connect arguments.
def get_pool(self, *args, **kw):

Undocumented

_create_pool_mutex =

Undocumented

kw =

Undocumented

module =

Undocumented

poolclass =

Undocumented

pools: dict =

Undocumented