Skip to main content

Module cli

Module cli 

Source
Expand description

Reusable command runner (makemigrations, migrate, rollback, showmigrations, squashmigrations).

Applications call run from their own binary so makemigrations can see compiled siderite_orm::ModelMeta. The siderite CLI binary only applies JSON files; see docs/MIGRATIONS.md.

Structs§

ExitCode
Process exit status (0 is success).

Functions§

make_migrations
Generate a migration from compiled metadata without going through argv.
render_status
The showmigrations text for rows of Migrator::show: one [X] id (applied) or [ ] id (pending) line per migration.
run
Run a migrations command.