class documentation

class NullPool(Pool): (source)

View In Hierarchy

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_get Implementation for :meth:`get`, supplied by subclasses.
Method _do_return_conn 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_name Undocumented
Method _close_connection Undocumented
Method _create_connection Called by subclasses to create a new ConnectionRecord.
Method _creator.deleter Undocumented
Method _creator.setter Undocumented
Method _invalidate Mark all connections established within the generation of the given connection as invalidated.
Method _return_conn Given a _ConnectionRecord, return it to the :class:`_pool.Pool`.
Method _should_wrap_creator Detect if creator accepts a single argument, or is sent as a legacy style no-arg function.
Instance Variable _creator_arg Undocumented
Instance Variable _dialect Undocumented
Instance Variable _invalidate_time Undocumented
Instance Variable _invoke_creator Undocumented
Instance Variable _orig_logging_name Undocumented
Instance Variable _pre_ping Undocumented
Instance Variable _recycle Undocumented
Instance Variable _reset_on_return Undocumented
Property _creator Undocumented
Property _is_asyncio Undocumented

Inherited from Identified (via Pool):

Class Variable __slots__ Undocumented
Class Variable logger Undocumented
Method _should_log_debug Undocumented
Method _should_log_info Undocumented
Class Variable _echo Undocumented
def dispose(self): (source)

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`

def recreate(self) -> NullPool: (source)

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.

def status(self) -> str: (source)

Undocumented

def _do_get(self) -> ConnectionPoolEntry: (source)

Implementation for :meth:`get`, supplied by subclasses.

def _do_return_conn(self, record: ConnectionPoolEntry): (source)

Implementation for :meth:`return_conn`, supplied by subclasses.