[][src]Trait migrations_internals::MigrationConnection

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

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

Loading content...

Implementors

impl<T> MigrationConnection for T where
    T: Connection,
    String: FromSql<VarChar, T::Backend>,
    InsertStatement<__diesel_schema_migrations, ValuesClause<ColumnInsertValue<version, &'a Bound<VarChar, &'a str>>, __diesel_schema_migrations>>: ExecuteDsl<T>, 
[src]

Loading content...