THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
Contract for a database transaction usable as an async context manager.
Entering the context begins a transaction (or a savepoint when one is already active); leaving it commits on success and rolls back when an exception escapes the block.
| Async Method | __aenter__ |
Begin the transaction and enter the context. |
| Async Method | __aexit__ |
Finalize the transaction when leaving the context. |
| Class Variable | __slots__ |
Undocumented |
overridden in
orionis.database.TransactionBegin the transaction and enter the context.
| Returns | |
ITransaction | The active transaction context. |
| Raises | |
TransactionException | If the transaction cannot be started. |
@abstractmethod
async def __aexit__(self, exc_type: type[ BaseException] | None, exc: BaseException | None, traceback: TracebackType | None) -> bool:
(source)
¶
overridden in
orionis.database.TransactionFinalize the transaction when leaving the context.
| Parameters | |
exctype of BaseException or None | Exception class raised inside the block, if any. |
exc:BaseException or None | Exception instance raised inside the block, if any. |
traceback:TracebackType or None | Traceback associated with the exception, if any. |
| Returns | |
bool | Always False so exceptions propagate to the caller. |