Migrant

Basic migration manager
Currently supports:
- postgres
- sqlite
Installation
See releases for binaries, or
cargo install migrant
Simple Usage
migrant init - initialize project and create a .migrant.toml file (which should be .gitignore'd) with db info/credentials. The default migration location (relative to your .migrant.toml) is migrations/. This can be modified in your .migrant.toml file ("migration_location"). If the directory doesn't exist, it will be created the first time you create a new migration.
migrant new initial - generate new up & down files with the tag initial under the specified migration_location.
migrant list - display all available .sql files and mark those applied.
migrant apply [--down, --all, --force, --fake] - apply the next available migration[s].
migrant shell - open a repl
migrant which-config - display the full path of the .migrant.toml file being used
Usage as a library
See examples