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 |
Undocumented |
| Class Variable | timestamps |
Undocumented |
Build the progress callbacks rendering one line per migration.
| Returns | |
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.MigrateRollbackCommandUndocumented
orionis.console.commands.db.show.DbShowCommand, orionis.console.commands.db.table.DbTableCommandUndocumented