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 dirty_version(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<i64>, MigrateError>> + Send, Global>>;
pub fn list_applied_migrations(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<AppliedMigration, Global>, 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 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 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 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...