package documentation

Connection pooling for DB-API connections.

Provides a number of connection pool implementations for a variety of usage scenarios and thread behavior requirements imposed by the application, DB-API or database itself.

Also provides a DB-API 2.0 connection proxying mechanism allowing regular DB-API connect() methods to be transparently managed by a SQLAlchemy connection pool.

Module base Base constructs for connection pools.
Module events No module docstring; 1/1 class documented
Module impl Pool implementation classes.
Module dbapi​_proxy DBAPI proxy utility.

From __init__.py:

Class ​Assertion​Pool A _pool.Pool that allows at most one checked out connection at any given time.
Class ​Null​Pool A Pool which does not pool connections.
Class ​Pool Abstract base class for connection pools.
Class ​Queue​Pool A _pool.Pool that imposes a limit on the number of open connections.
Class ​Singleton​Thread​Pool A Pool that maintains one connection per thread.
Class ​Static​Pool A Pool of exactly one connection, used for all requests.
Variable reset​_commit Undocumented
Variable reset​_none Undocumented
Variable reset​_rollback Undocumented
Class ​Async​Adapted​Queue​Pool Undocumented
Class ​Fallback​Async​Adapted​Queue​Pool Undocumented
Function clear​_managers Remove all current DB-API 2.0 managers.
Function manage Return a proxy for a DB-API module that automatically pools connections.
reset_commit =

Undocumented

reset_none =

Undocumented

reset_rollback =

Undocumented

def clear_managers():

Remove all current DB-API 2.0 managers.

All pools and connections are disposed.

@util.deprecated('1.3', 'The :func:`.pool.manage` function is deprecated, and will be removed in a future release.')
def manage(module, **params):

Return a proxy for a DB-API module that automatically pools connections.

Given a DB-API 2.0 module and pool management parameters, returns a proxy for the module that will automatically pool connections, creating new connection pools for each distinct set of connection arguments sent to the decorated module's connect() function.

Parameters
modulea DB-API 2.0 database module
**paramswill be passed through to poolclass
poolclassthe class used by the pool module to provide pooling. Defaults to .QueuePool.