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

pub trait Migrate {
    fn ensure_migrations_table(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + Send, Global>>;
fn version(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<(i64, bool)>, 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 validate<'e, 'm>(
        &'e mut self,
        migration: &'m Migration
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + 'm + Send, Global>>
    where
        'e: 'm
;
fn apply<'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>>

fn version(
    &mut self
) -> Pin<Box<dyn Future<Output = Result<Option<(i64, bool)>, 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 validate<'e, 'm>(
    &'e mut self,
    migration: &'m Migration
) -> Pin<Box<dyn Future<Output = Result<(), MigrateError>> + 'm + Send, Global>> where
    'e: 'm, 

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

Loading content...

Implementors

impl Migrate for AnyConnection[src]

impl Migrate for MySqlConnection[src]

impl Migrate for PgConnection[src]

impl Migrate for SqliteConnection[src]

Loading content...