ORIONIS API REFERENCE

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
async def __aenter__(self) -> ITransaction: (source)

Begin the transaction and enter the context.

Returns
ITransactionThe active transaction context.
Raises
TransactionExceptionIf 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
exc_type:type of BaseException or NoneException class raised inside the block, if any.
exc:BaseException or NoneException instance raised inside the block, if any.
traceback:TracebackType or NoneTraceback associated with the exception, if any.
Returns
boolAlways False so exceptions propagate to the caller.
def __init__(self, connection: IConnection): (source)

Initialize the transaction around a connection.

Parameters
connection:IConnectionConnection whose transaction lifecycle is managed.
Returns
NoneThis method does not return a value.
_connection: IConnection = (source)

Undocumented