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
Async context manager driving a connection-level transaction.
Entering the context begins a transaction on the wrapped connection (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__ |
Commit or roll back the transaction when leaving the context. |
| Method | __init__ |
Initialize the transaction around a connection. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _connection |
Undocumented |
Begin the transaction and enter the context.
| Returns | |
ITransaction | The active transaction context. |
| Raises | |
TransactionException | If the transaction cannot be started. |
async def __aexit__(self, exc_type:
type[ BaseException] | None, exc: BaseException | None, traceback: TracebackType | None) -> bool:
(source)
¶
Commit or roll back 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. |
Initialize the transaction around a connection.
| Parameters | |
connection:IConnection | Connection whose transaction lifecycle is managed. |
| Returns | |
None | This method does not return a value. |