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 returned by Schema.create.
async with schema.create(name) as table: yields a
~orionis.database.schema.blueprint.Blueprint so columns can
be declared inside the block; the table is created on exit unless
the block raised an exception.
| Async Method | __aenter__ |
Start a fluent, per-table column declaration block. |
| Async Method | __aexit__ |
Create the table with the collected columns, unless it raised. |
| Method | __init__ |
Store the pending table declaration request. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | __blueprint |
Undocumented |
| Instance Variable | __name |
Undocumented |
| Instance Variable | __schema |
Undocumented |
Start a fluent, per-table column declaration block.
| Returns | |
Blueprint | Collector used to declare columns via method calls. |
async def __aexit__(self, exc_type:
type[ BaseException] | None, exc: BaseException | None, traceback: TracebackType | None) -> bool:
(source)
¶
Create the table with the collected columns, unless it raised.
| Parameters | |
exctype[BaseException] or None | The exception type raised inside the block, if any. |
exc:BaseException or None | The exception instance raised inside the block, if any. |
traceback:TracebackType or None | The traceback for the raised exception, if any. |
| Returns | |
bool | False to always propagate exceptions raised in the block. |