Trait sqlx::migrate::Migrate[][src]

pub trait Migrate {
    fn ensure_migrations_table(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>;
fn dirty_version(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<i64>, MigrateError>> + Send, Global>>;
fn version(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<(i64, bool)>, MigrateError>> + Send, Global>>;
fn validate<'e, 'm>(
        &'e mut self,
        migration: &'m Migration
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + 'm + Send, Global>>
    where
        'e: 'm
;
fn list_applied_migrations(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration, Global>, MigrateError>> + Send, Global>>;
fn lock(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>;
fn unlock(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>;
fn apply<'e, 'm>(
        &'e mut self,
        migration: &'m Migration
    ) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>>
    where
        'e: 'm
;
fn revert<'e, 'm>(
        &'e mut self,
        migration: &'m Migration
    ) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>>
    where
        'e: 'm
; }

Required methods

fn ensure_migrations_table(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

fn dirty_version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<i64>, MigrateError>> + Send, Global>>
[src]

fn version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<(i64, bool)>, MigrateError>> + Send, Global>>
[src]

πŸ‘Ž Deprecated

fn validate<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

πŸ‘Ž Deprecated

fn list_applied_migrations(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration, Global>, MigrateError>> + Send, Global>>
[src]

fn lock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

fn unlock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

fn apply<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

fn revert<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

Implementors

impl Migrate for AnyConnection[src]

pub fn ensure_migrations_table(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<(i64, bool)>, MigrateError>> + Send, Global>>
[src]

πŸ‘Ž Deprecated

pub fn dirty_version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<i64>, MigrateError>> + Send, Global>>
[src]

pub fn validate<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

πŸ‘Ž Deprecated

pub fn list_applied_migrations(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration, Global>, MigrateError>> + Send, Global>>
[src]

pub fn lock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn unlock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn apply<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

pub fn revert<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

impl Migrate for MySqlConnection[src]

pub fn ensure_migrations_table(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<(i64, bool)>, MigrateError>> + Send, Global>>
[src]

πŸ‘Ž Deprecated

pub fn dirty_version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<i64>, MigrateError>> + Send, Global>>
[src]

pub fn list_applied_migrations(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration, Global>, MigrateError>> + Send, Global>>
[src]

pub fn lock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn unlock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn validate<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

πŸ‘Ž Deprecated

pub fn apply<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

pub fn revert<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

impl Migrate for PgConnection[src]

pub fn ensure_migrations_table(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<(i64, bool)>, MigrateError>> + Send, Global>>
[src]

πŸ‘Ž Deprecated

pub fn dirty_version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<i64>, MigrateError>> + Send, Global>>
[src]

pub fn list_applied_migrations(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration, Global>, MigrateError>> + Send, Global>>
[src]

pub fn lock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn unlock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn validate<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

πŸ‘Ž Deprecated

pub fn apply<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

pub fn revert<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

impl Migrate for SqliteConnection[src]

pub fn ensure_migrations_table(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<(i64, bool)>, MigrateError>> + Send, Global>>
[src]

πŸ‘Ž Deprecated

pub fn dirty_version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<i64>, MigrateError>> + Send, Global>>
[src]

pub fn list_applied_migrations(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration, Global>, MigrateError>> + Send, Global>>
[src]

pub fn lock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn unlock(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>
[src]

pub fn validate<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

πŸ‘Ž Deprecated

pub fn apply<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]

pub fn revert<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<Duration, MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 
[src]