class documentation

Interface for the object that maintains an individual database connection on behalf of a :class:`_pool.Pool` instance. The :class:`.ConnectionPoolEntry` object represents the long term maintainance of a particular connection for a pool, including expiring or invalidating that connection to have it replaced with a new one, which will continue to be maintained by that same :class:`.ConnectionPoolEntry` instance. Compared to :class:`.PoolProxiedConnection`, which is the short-term, per-checkout connection manager, this object lasts for the lifespan of a particular "slot" within a connection pool. The :class:`.ConnectionPoolEntry` object is mostly visible to public-facing API code when it is delivered to connection pool event hooks, such as :meth:`_events.PoolEvents.connect` and :meth:`_events.PoolEvents.checkout`. .. versionadded:: 2.0 :class:`.ConnectionPoolEntry` provides the public facing interface for the :class:`._ConnectionRecord` internal class.

Method close Close the DBAPI connection managed by this connection pool entry.
Class Variable __slots__ Undocumented
Property in_use Return True the connection is currently checked out

Inherited from ManagesConnection:

Method invalidate Mark the managed connection as invalidated.
Class Variable dbapi_connection A reference to the actual DBAPI connection being tracked.
Class Variable driver_connection The "driver level" connection object as used by the Python DBAPI or database driver.
Property info Info dictionary associated with the underlying DBAPI connection referred to by this :class:`.ManagesConnection` instance, allowing user-defined data to be associated with the connection.
Property record_info Persistent info dictionary associated with this :class:`.ManagesConnection`.
def close(self): (source)

Close the DBAPI connection managed by this connection pool entry.

Return True the connection is currently checked out