Struct migrant_lib::Migrator [−][src]
pub struct Migrator { /* fields omitted */ }
Expand description
Migration applicator
Implementations
Initialize a new Migrator
with a given &Config
Set direction
. Default is Up
.
Up
=> run up.sql
.
Down
=> run down.sql
.
Set force
to forcefully apply migrations regardless of errors
Set fake
to fake application of migrations.
Applied migrations table will be updated as if migrations were actually run.
Set all
to run all remaining available migrations in the given direction
Toggle migration application output. Default is true
Don’t return any ErrorKind::MigrationComplete
errors when running Migrator::apply
All other errors will still be returned
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Migrator
impl !UnwindSafe for Migrator
Blanket Implementations
Mutably borrows from an owned value. Read more