Struct migrant::Migrator [] [src]

pub struct Migrator { /* fields omitted */ }

Migration applicator

Methods

impl Migrator
[src]

Initialize a new Migrator with a given config

Set project_dir

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. Config will be updated as if migrations were actually run.

Set all to run all remaining available migrations in the given direction

Apply migrations using current configuration

Trait Implementations

impl Debug for Migrator
[src]

Formats the value using the given formatter.

impl Clone for Migrator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more