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 MigrationCommand(BaseCommand): (source)
Known subclasses: orionis.console.commands.db.show.DbShowCommand, orionis.console.commands.db.table.DbTableCommand, orionis.console.commands.migrate.fresh.MigrateFreshCommand, orionis.console.commands.migrate.migrate.MigrateCommand, orionis.console.commands.migrate.refresh.MigrateRefreshCommand, orionis.console.commands.migrate.reset.MigrateResetCommand, orionis.console.commands.migrate.rollback.MigrateRollbackCommand, orionis.console.commands.migrate.status.MigrateStatusCommand, orionis.console.commands.seed.seed.SeedCommand
Base class shared by every migration console command.
It centralizes the pieces all of them repeat: the --database option selecting the target connection and the wiring that renders one RUNNING/DONE (or FAIL) line per migration.
| Method | progress |
Build the progress callbacks rendering one line per migration. |
| Method | report |
Report that the command had nothing to do. |
| Method | target |
Return the connection the command was asked to run against. |
| Class Variable | arguments |
Every migration command targets an optional named connection. |
| Class Variable | timestamps |
Indicates whether timestamps will be shown in the command output. |
Build the progress callbacks rendering one line per migration.
| Returns | |
orionis.database.migrations.events.MigrationEvents | Callbacks printing RUNNING, DONE, and FAIL lines. |
orionis.console.commands.db.show.DbShowCommand, orionis.console.commands.db.table.DbTableCommand, orionis.console.commands.migrate.migrate.MigrateCommand, orionis.console.commands.migrate.refresh.MigrateRefreshCommand, orionis.console.commands.migrate.rollback.MigrateRollbackCommandEvery migration command targets an optional named connection.
orionis.console.commands.db.show.DbShowCommand, orionis.console.commands.db.table.DbTableCommandIndicates whether timestamps will be shown in the command output.