#migration #cli #database #generic #command-line-arguments #executed #mode

migrate

Generic interface and CLI application for managing any kind of migrations

2 unstable releases

0.2.0 Aug 25, 2021
0.1.0 Aug 16, 2020

#1826 in Development tools

47 downloads per month

MIT/Apache

57KB
968 lines

See the crate's docs for more details.


lib.rs:

migrate CLI entrypoint

The CLI is provided with MigrateCli type that parses the command line arguments and orchestrates the execution of migrations.

It servers as a CLI wrapper over migrate_core crate, which is the entrypoint for programmatic access of the API.

The CLI should be fed the migrate_core::PlanBuilder with the migrations specific for particular use case and the CLI will only control what migrations will be executed and in which mode.

See [MigrateCli::run()] method and the examples/ folder for more details.

Dependencies

~4MB
~77K SLoC