class documentation

class AsyncTransaction(ProxyComparable[Transaction], StartableContext['AsyncTransaction']): (source)

View In Hierarchy

An asyncio proxy for a :class:`_engine.Transaction`.

Async Method __aexit__ Undocumented
Method __init__ Undocumented
Async Method close Close this :class:`.AsyncTransaction`.
Async Method commit Commit this :class:`.AsyncTransaction`.
Async Method rollback Roll back this :class:`.AsyncTransaction`.
Async Method start Start this :class:`_asyncio.AsyncTransaction` object's context outside of using a Python ``with:`` block.
Class Variable __slots__ Undocumented
Instance Variable connection Undocumented
Instance Variable nested Undocumented
Instance Variable sync_transaction Undocumented
Property is_active Undocumented
Property is_valid Undocumented
Class Method _regenerate_proxy_for_target Undocumented
Property _proxied Undocumented

Inherited from ProxyComparable:

Method __eq__ Undocumented
Method __hash__ Undocumented
Method __ne__ Undocumented

Inherited from ReversibleProxy (via ProxyComparable):

Class Method _retrieve_proxy_for_target Undocumented
Class Method _target_gced Undocumented
Method _assign_proxied Undocumented
Class Variable _proxy_objects Undocumented

Inherited from StartableContext (via ProxyComparable, ReversibleProxy):

Async Method __aenter__ Undocumented
Method __await__ Undocumented
Method _raise_for_not_started Undocumented
async def __aexit__(self, type_: Any, value: Any, traceback: Any): (source)
def __init__(self, connection: AsyncConnection, nested: bool = False): (source)

Undocumented

async def close(self): (source)

Close this :class:`.AsyncTransaction`. If this transaction is the base transaction in a begin/commit nesting, the transaction will rollback(). Otherwise, the method returns. This is used to cancel a Transaction without affecting the scope of an enclosing transaction.

async def commit(self): (source)

Commit this :class:`.AsyncTransaction`.

async def rollback(self): (source)

Roll back this :class:`.AsyncTransaction`.

async def start(self, is_ctxmanager: bool = False) -> AsyncTransaction: (source)

Start this :class:`_asyncio.AsyncTransaction` object's context outside of using a Python ``with:`` block.

connection = (source)

Undocumented

Undocumented

sync_transaction = (source)

Undocumented

Undocumented

Undocumented

@util.ro_non_memoized_property
_proxied: Transaction = (source)