pub struct HarnessWithOutput<'a, C, W> { /* private fields */ }
Expand description

A migration harness that writes messages into some output for each applied/reverted migration

Implementations

Create a new HarnessWithOutput that writes to a specific writer

Create a new HarnessWithOutput that writes to stdout

Trait Implementations

Apply a single migration Read more

Revert a single migration Read more

Get a list of already applied migration versions

Checks if the database represented by the current harness has unapplied migrations

Execute all unapplied migrations for a given migration source

Execute the next migration from the given migration source

Revert all applied migrations from a given migration source

Revert the last migration from a given migration source Read more

Get a list of non applied migrations for a specific migration source Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.