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§
Sourcetype Ctx: MigrationContext
type Ctx: MigrationContext
A context that the set of migrations returned by migration_set
would
need in order to be applied.
Required Methods§
Sourcefn migration_set(&self, last_applied: Option<i64>) -> MigrationSet<Self::Ctx>
fn migration_set(&self, last_applied: Option<i64>) -> MigrationSet<Self::Ctx>
The set of migrations since last_applied
.