#migration #migrate #database

migrate-core

Core programmatic API of for managing the migrations and migration state

1 unstable release

0.1.0 Aug 25, 2021

#23 in #migrate

Download history 8/week @ 2024-02-13 18/week @ 2024-02-20 32/week @ 2024-02-27 15/week @ 2024-03-05 29/week @ 2024-03-12 16/week @ 2024-03-19 23/week @ 2024-03-26 44/week @ 2024-04-02

114 downloads per month
Used in 3 crates

MIT/Apache

47KB
871 lines

migrate

migrate-core provides a generic interface for managing the migration state.

See the crate-level docs for more info.


lib.rs:

The core crate that exposes APIs designed for full programmatic configuration of migrations. See migrate crate if you need a CLI wrapper instead.

The crate is built on top of migrate_state and the ideas outlined there.

The main entities here are the Migration trait and the Plan structure that is used to manage the Migrations that should be executed. The migrations may also be run in different modes (MigrationRunMode) that allows for running them for real or for debugging (a.k.a dry-run).

See the docs for Plan to continue learning the API of this crate.

Dependencies

~1.4–2.4MB
~48K SLoC