Struct migrant_lib::Migrator [] [src]

pub struct Migrator { /* fields omitted */ }

Migration applicator

Methods

impl Migrator
[src]

[src]

Initialize a new Migrator with a given config

[src]

Set direction. Default is Up. Up => run up.sql. Down => run down.sql.

[src]

Set force to forcefully apply migrations regardless of errors

[src]

Set fake to fake application of migrations. Config will be updated as if migrations were actually run.

[src]

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

[src]

Apply migrations using current configuration

Trait Implementations

impl Debug for Migrator
[src]

[src]

Formats the value using the given formatter.

impl Clone for Migrator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more