Trait diesel_migrations::MigrationConnection [] [src]

pub trait MigrationConnection: Connection {
    fn previously_run_migration_versions(
        &self
    ) -> Result<HashSet<String, RandomState>, Error>;
fn latest_run_migration_version(&self) -> Result<Option<String>, Error>;
fn insert_new_migration(&self, version: &str) -> Result<(), Error>; }

A connection which can be passed to the migration methods. This exists only to wrap up some constraints which are meant to hold for all connections. This trait will go away at some point in the future. Any Diesel connection should be useable where this trait is required.

Required Methods

Implementors