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
class _TransactionState: (source)
Constructor: _TransactionState(connection, transaction)
Per-task stack of open transactions bound to one raw connection.
| Async Method | __aenter__ |
Return the existing raw connection without acquiring another one. |
| Async Method | __aexit__ |
Leave transaction control and cleanup to the owning task. |
| Method | __init__ |
Bind a raw connection and root transaction to the current task. |
| Class Variable | __slots__ |
Declare the instance attribute slots reserved by this class. |
| Instance Variable | connection |
Open connection shared by all transaction levels. |
| Instance Variable | owner |
Owner produced by current_task. |
| Instance Variable | transactions |
Transaction scopes currently associated with the connection context. |
Return the existing raw connection without acquiring another one.
| Returns | |
AsyncConnection | ThreadedConnection | Open connection retained by the transaction owner. |
def __init__(self, connection:
AsyncConnection | ThreadedConnection, transaction: AsyncTransaction | ThreadedTransaction):
(source)
¶
Bind a raw connection and root transaction to the current task.
| Parameters | |
connection:AsyncConnection | ThreadedConnection | Open connection shared by all transaction levels. |
transaction:AsyncTransaction | ThreadedTransaction | Root transaction used to initialize the stack. |
| Returns | |
None | No return value. |