class documentation

class AsyncSessionTransaction(ReversibleProxy, StartableContext):

View In Hierarchy

A wrapper for the ORM _orm.SessionTransaction object.

This object is provided so that a transaction-holding object for the _asyncio.AsyncSession.begin may be returned.

The object supports both explicit calls to _asyncio.AsyncSessionTransaction.commit and _asyncio.AsyncSessionTransaction.rollback, as well as use as an async context manager.

New in version 1.4.
Async Method __aexit__ Undocumented
Method __init__ Undocumented
Method ​_sync​_transaction Undocumented
Async Method commit Commit this _asyncio.AsyncTransaction.
Async Method rollback Roll back this _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

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:

Async Method __aenter__ Undocumented
Method __await__ Undocumented
Method ​_raise​_for​_not​_started Undocumented
async def __aexit__(self, type_, value, traceback):
def __init__(self, session, nested=False):

Undocumented

def _sync_transaction(self):

Undocumented

async def commit(self):
Commit this _asyncio.AsyncTransaction.
async def rollback(self):
Roll back this _asyncio.AsyncTransaction.
async def start(self, is_ctxmanager=False):
__slots__: tuple[str, ...] =
nested =

Undocumented

session =

Undocumented

sync_transaction =

Undocumented

@property
is_active =

Undocumented