MigrationRunner

Trait MigrationRunner 

Source
pub trait MigrationRunner<DB: Database> {
    // Required methods
    fn run_migrations<'life0, 'async_trait>(
        pool: &'life0 Pool<DB>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait;
    fn get_migration_version<'life0, 'async_trait>(
        pool: &'life0 Pool<DB>,
    ) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait;
}

Required Methods§

Source

fn run_migrations<'life0, 'async_trait>( pool: &'life0 Pool<DB>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,

Source

fn get_migration_version<'life0, 'async_trait>( pool: &'life0 Pool<DB>, ) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§