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

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

Required methods

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]

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]

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]

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...