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 MakeDatabaseMigration(MakeStubCommand): (source)

View In Hierarchy

Generate a migration named for its creation date and time.

Method createFiles Create a migration with a timestamp from the application timezone.
Class Variable description Undocumented
Class Variable path_key Undocumented
Class Variable signature Undocumented
Class Variable success_label Undocumented
Class Variable template_name Undocumented
Class Variable timestamps Undocumented

Inherited from MakeStubCommand:

Method createFile Render one stub into its configured application directory.
Method getReplacements Read string replacements from the parsed command arguments.
Method getTemplateName Return the selected template name.
Async Method handle Create configured files without blocking the running event loop.
Class Variable arguments Undocumented
Class Variable postfix Undocumented
Class Variable prefix Undocumented
Class Variable replacement_arguments Undocumented
def createFiles(self, app: IApplication, name: str) -> tuple[tuple[str, str], ...]: (source)

Create a migration with a timestamp from the application timezone.

Parameters
app:IApplicationApplication that resolves the migrations directory.
name:strMigration name and optional nested directory path.
Returns
tuple[tuple[str, str], ...]Label and application-relative path of the new migration.
Raises
ValueErrorIf the migration name cannot form a Python module name.
description: str = (source)

Undocumented

signature: str = (source)

Undocumented

timestamps: bool = (source)

Undocumented