pub trait Migrations: Connection {
    // Required methods
    fn ensure_migrations_table<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        table_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn lock<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unlock<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_migrations<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        table_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration<'static>>, Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn add_migration<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        table_name: &'life1 str,
        migration: AppliedMigration<'static>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remove_migration<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        table_name: &'life1 str,
        version: u64
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn clear_migrations<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        table_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn ensure_migrations_table<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn lock<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn unlock<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn list_migrations<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration<'static>>, Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn add_migration<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str, migration: AppliedMigration<'static> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn remove_migration<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str, version: u64 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn clear_migrations<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

source§

impl Migrations for PgConnection

source§

fn ensure_migrations_table<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn lock<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn unlock<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list_migrations<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration<'static>>, Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn add_migration<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str, migration: AppliedMigration<'static> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn remove_migration<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str, version: u64 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn clear_migrations<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl Migrations for SqliteConnection

source§

fn ensure_migrations_table<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn lock<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn unlock<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn list_migrations<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration<'static>>, Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn add_migration<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str, migration: AppliedMigration<'static> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn remove_migration<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str, version: u64 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn clear_migrations<'life0, 'life1, 'async_trait>( &'life0 mut self, table_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§