module documentation
Base constructs for connection pools.
Class |
|
Interface for the object that maintains an individual database connection on behalf of a :class:`_pool.Pool` instance. |
Class |
|
Common base for the two connection-management interfaces :class:`.PoolProxiedConnection` and :class:`.ConnectionPoolEntry`. |
Class |
|
Abstract base class for connection pools. |
Class |
|
A connection-like adapter for a :pep:`249` DBAPI connection, which includes additional methods specific to the :class:`.Pool` implementation. |
Class |
|
describes the state of a DBAPI connection as it is being passed to the :meth:`.PoolEvents.reset` connection pool event. |
Class |
|
Describe options for "reset on return" behaviors. |
Variable | reset |
Undocumented |
Variable | reset |
Undocumented |
Variable | reset |
Undocumented |
Class | _ |
provides the :class:`.PoolProxiedConnection` interface for cases where the DBAPI connection is not actually proxied. |
Class | _ |
Undocumented |
Class | _ |
partial implementation of :class:`.Dialect` which provides DBAPI connection methods. |
Class | _ |
Proxies a DBAPI connection and provides return-on-dereference support. |
Class | _ |
Maintains a position in a connection pool which references a pooled connection. |
Class | _ |
Undocumented |
Class | _ |
Undocumented |
Function | _finalize |
Cleanup for a :class:`._ConnectionFairy` whether or not it's already been garbage collected. |
Type Alias | _ |
Undocumented |
Variable | _strong |
Undocumented |
def _finalize_fairy(dbapi_connection:
Optional[ DBAPIConnection]
, connection_record: Optional[ _ConnectionRecord]
, pool: Pool
, ref: Optional[ weakref.ref[ _ConnectionFairy]]
, echo: Optional[ log._EchoFlagType]
, transaction_was_reset: bool
= False, fairy: Optional[ _ConnectionFairy]
= None):
(source)
¶
Cleanup for a :class:`._ConnectionFairy` whether or not it's already been garbage collected. When using an async dialect no IO can happen here (without using a dedicated thread), since this is called outside the greenlet context and with an already running loop. In this case function will only log a message and raise a warning.