class AsyncSessionTransaction(ReversibleProxy, StartableContext):
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.
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 |