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.

module documentation

Runner applying and reverting the application migrations.

Function _build_migrations_table Build the table definition for the migrations tracking table.
Constant _MIGRATIONS_TABLE Name of the table used to track already-applied migrations.
Constant _MIGRATIONS_TABLE_DEFINITION Define the columns used to track applied migrations.
Constant _SEEDERS_TABLE Seeder history belongs to a schema built by the recorded migrations.
def _build_migrations_table(table: str) -> TableDefinition: (source)

Build the table definition for the migrations tracking table.

Parameters
table:strLogical table name for tracked migrations.
Returns
orionis.orm.schema.TableDefinitionDefinition with id (primary key), migration (unique name), batch and migrated_at (epoch seconds) columns.
_MIGRATIONS_TABLE: str = (source)

Name of the table used to track already-applied migrations.

Value
'migrations'
_MIGRATIONS_TABLE_DEFINITION: TableDefinition = (source)

Define the columns used to track applied migrations.

Value
_build_migrations_table(_MIGRATIONS_TABLE)
_SEEDERS_TABLE: str = (source)

Seeder history belongs to a schema built by the recorded migrations.

Value
'seeders'