1 unstable release
0.1.0 | Aug 25, 2021 |
---|
#23 in #migrate
114 downloads per month
Used in 3 crates
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 Migration
s 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