class documentation

class AsyncSessionTransaction(ReversibleProxy[SessionTransaction], StartableContext['AsyncSessionTransaction']): (source)

View In Hierarchy

A wrapper for the ORM :class:`_orm.SessionTransaction` object. This object is provided so that a transaction-holding object for the :meth:`_asyncio.AsyncSession.begin` may be returned. The object supports both explicit calls to :meth:`_asyncio.AsyncSessionTransaction.commit` and :meth:`_asyncio.AsyncSessionTransaction.rollback`, as well as use as an async context manager. .. versionadded:: 1.4

Async Method __aexit__ Undocumented
Method __init__ Undocumented
Async Method commit Commit this :class:`_asyncio.AsyncTransaction`.
Async Method rollback Roll back this :class:`_asyncio.AsyncTransaction`.
Async Method start Undocumented
Class Variable __slots__ Undocumented
Instance Variable nested Undocumented
Instance Variable session Undocumented
Instance Variable sync_transaction Undocumented
Property is_active Undocumented
Method _sync_transaction Undocumented

Inherited from ReversibleProxy:

Class Method _regenerate_proxy_for_target Undocumented
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 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, session: AsyncSession, nested: bool = False): (source)

Undocumented

async def commit(self): (source)

Commit this :class:`_asyncio.AsyncTransaction`.

async def rollback(self): (source)

Roll back this :class:`_asyncio.AsyncTransaction`.

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

Undocumented

Undocumented

sync_transaction = (source)

Undocumented

Undocumented

def _sync_transaction(self) -> SessionTransaction: (source)

Undocumented