#migration #database #generic #command #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

#1899 in Development tools

Download history 3/week @ 2024-02-14 19/week @ 2024-02-21 19/week @ 2024-02-28 10/week @ 2024-03-06 21/week @ 2024-03-13 7/week @ 2024-03-20 15/week @ 2024-03-27 33/week @ 2024-04-03

78 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
~79K SLoC