Trait MigrationSource

Source
pub trait MigrationSource {
    type Ctx: MigrationContext;

    // Required method
    fn migration_set(
        &self,
        last_applied: Option<i64>,
    ) -> MigrationSet<Self::Ctx>;
}
Expand description

A type that is used to collect a MigrationSet – migrations that are not applied yet – which is used as the input to runner commands.

Required Associated Types§

Source

type Ctx: MigrationContext

A context that the set of migrations returned by migration_set would need in order to be applied.

Required Methods§

Source

fn migration_set(&self, last_applied: Option<i64>) -> MigrationSet<Self::Ctx>

The set of migrations since last_applied.

Implementors§