Trait schemer::Adapter [] [src]

pub trait Adapter {
    type MigrationType: Migration + ?Sized;
    type Error: Debug + Fail;
    fn applied_migrations(&self) -> Result<HashSet<Uuid>, Self::Error>;
fn apply_migration(
        &mut self,
        _: &Self::MigrationType
    ) -> Result<(), Self::Error>;
fn revert_migration(
        &mut self,
        _: &Self::MigrationType
    ) -> Result<(), Self::Error>; }

Trait necessary to adapt schemer's migration management to a stateful backend.

Associated Types

Type migrations must implement for this adapter.

Type of errors returned by this adapter.

Required Methods

Returns the set of IDs for migrations that have been applied.

Apply a single migration.

Revert a single migration.

Implementors