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

class TableCreation: (source)

Constructor: TableCreation(schema, name)

View In Hierarchy

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

Start a fluent, per-table column declaration block.

Returns
BlueprintCollector 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
exc_type:type[BaseException] or NoneThe exception type raised inside the block, if any.
exc:BaseException or NoneThe exception instance raised inside the block, if any.
traceback:TracebackType or NoneThe traceback for the raised exception, if any.
Returns
boolFalse to always propagate exceptions raised in the block.
def __init__(self, schema: Schema, name: str): (source)

Store the pending table declaration request.

Parameters
schema:SchemaThe schema instance that will perform the creation.
name:strThe name of the table to create.
Returns
NoneThis method does not return a value.
__slots__: tuple[str, ...] = (source)

Undocumented

__blueprint: Blueprint | None = (source)

Undocumented

Undocumented

__schema = (source)

Undocumented