class documentation

class _PooledConnectionGuard: (source)

View In Hierarchy

Pooled connection adapter that re-adds itself back to the pool upon commit or rollback, and guards against direct access to the underlying connection, to avoid changing its state behind the back of the _ConnectionPool.

Async Method close Close the underlying connection, removing it from the pool.
Async Method commit Commit the transaction, returning the connection to the pool.
Async Method cursor Undocumented
Async Method rollback Roll back the transaction, returning the connection to the pool.
Property paramstyle Undocumented
Async Method _closeCursors Undocumented
Method _original Check for validity, return the underlying connection, and then optionally invalidate this adapter.
Class Variable _cursors Undocumented
Class Variable _pool Undocumented
Instance Variable _adapter Undocumented
async def close(self): (source)

Close the underlying connection, removing it from the pool.

async def commit(self): (source)

Commit the transaction, returning the connection to the pool.

async def cursor(self) -> AsyncCursor: (source)

Undocumented

async def rollback(self): (source)

Roll back the transaction, returning the connection to the pool.

Undocumented

async def _closeCursors(self): (source)

Undocumented

def _original(self, invalidate: bool) -> AsyncConnection: (source)

Check for validity, return the underlying connection, and then optionally invalidate this adapter.

Undocumented

Undocumented