A Pool which does not pool connections. Instead it literally opens and closes the underlying DB-API connection per each connection open/close. Reconnect-related functions such as ``recycle`` and connection invalidation are not supported by this Pool implementation, since no connections are held persistently.
Method | dispose |
Dispose of this pool. |
Method | recreate |
Return a new :class:`_pool.Pool`, of the same class as this one and configured with identical creation arguments. |
Method | status |
Undocumented |
Method | _do |
Implementation for :meth:`get`, supplied by subclasses. |
Method | _do |
Implementation for :meth:`return_conn`, supplied by subclasses. |
Inherited from Pool
:
Method | __init__ |
Construct a Pool. |
Method | connect |
Return a DBAPI connection from the pool. |
Class Variable | dispatch |
Undocumented |
Instance Variable | echo |
Undocumented |
Instance Variable | logging |
Undocumented |
Method | _close |
Undocumented |
Method | _create |
Called by subclasses to create a new ConnectionRecord. |
Method | _creator |
Undocumented |
Method | _creator |
Undocumented |
Method | _invalidate |
Mark all connections established within the generation of the given connection as invalidated. |
Method | _return |
Given a _ConnectionRecord, return it to the :class:`_pool.Pool`. |
Method | _should |
Detect if creator accepts a single argument, or is sent as a legacy style no-arg function. |
Instance Variable | _creator |
Undocumented |
Instance Variable | _dialect |
Undocumented |
Instance Variable | _invalidate |
Undocumented |
Instance Variable | _invoke |
Undocumented |
Instance Variable | _orig |
Undocumented |
Instance Variable | _pre |
Undocumented |
Instance Variable | _recycle |
Undocumented |
Instance Variable | _reset |
Undocumented |
Property | _creator |
Undocumented |
Property | _is |
Undocumented |
Inherited from Identified
(via Pool
):
Class Variable | __slots__ |
Undocumented |
Class Variable | logger |
Undocumented |
Method | _should |
Undocumented |
Method | _should |
Undocumented |
Class Variable | _echo |
Undocumented |
sqlalchemy.pool.base.Pool.dispose
Dispose of this pool. This method leaves the possibility of checked-out connections remaining open, as it only affects connections that are idle in the pool. .. seealso:: :meth:`Pool.recreate`
sqlalchemy.pool.base.Pool.recreate
Return a new :class:`_pool.Pool`, of the same class as this one and configured with identical creation arguments. This method is used in conjunction with :meth:`dispose` to close out an entire :class:`_pool.Pool` and create a new one in its place.