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

Undocumented

Method connection Set the connection name for schema operations.
Method create Start a fluent table declaration block with async with.
Async Method createFromDefinition Create a table from a reusable, versioned schema definition.
Async Method createFromModel Create the current table declared by a concrete model.
Async Method drop Drop an existing table.
Class Variable __slots__ Undocumented
def connection(self, name: str | None = None) -> Self: (source)

Set the connection name for schema operations.

Parameters
name:str | None, optionalThe connection name to use, by default None.
Returns
SelfThe current Schema instance for method chaining.
Raises
ValueErrorIf connection name has already been defined.
def create(self, name: str) -> TableCreation: (source)

Start a fluent table declaration block with async with.

The block yields a Blueprint so columns can be declared fluently; the table is created after the block exits successfully.

Parameters
name:strThe name of the table to create. If the table belongs to a non-default schema, use the schema.table format.
Returns
TableCreationAsync context manager that collects definitions and creates the table after a successful block.
async def createFromDefinition(self, definition: TableDefinition) -> bool: (source)

Create a table from a reusable, versioned schema definition.

Parameters
definition:TableDefinitionDefinition shared by a model and a historical migration.
Returns
boolWhether table creation completed successfully.
async def createFromModel(self, model: type[Model]) -> bool: (source)

Create the current table declared by a concrete model.

Parameters
model:type of ModelModel providing precompiled table and connection metadata.
Returns
boolWhether table creation completed successfully.
async def drop(self, name: str) -> bool: (source)

Drop an existing table.

Parameters
name:strThe name of the table to drop. If the table belongs to a non-default schema, use the schema.table format.
Returns
boolTrue when the table is dropped without errors.
__slots__: tuple = (source)

Undocumented