[][src]Trait asyncmigrate::Migration

pub trait Migration {
#[must_use]    fn migrate<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        changesets: &'life1 MigrationChangeSets,
        count: Option<usize>
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrationError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_rollback_sql<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        changesets: &'life1 MigrationChangeSets
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrationError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn rollback<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        group_name: &'life1 str,
        count: Option<usize>
    ) -> Pin<Box<dyn Future<Output = Result<(), MigrationError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn load_applied_change_sets<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        group_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<MigrationChangeSets, MigrationError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn migrate<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    changesets: &'life1 MigrationChangeSets,
    count: Option<usize>
) -> Pin<Box<dyn Future<Output = Result<(), MigrationError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Run migration with change sets.

equivalence with

This example is not tested
async fn migrate(
   &mut self,
   changesets: &MigrationChangeSets,
   count: Option<usize>,
) -> Result<(), MigrationError>;

#[must_use]fn update_rollback_sql<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    changesets: &'life1 MigrationChangeSets
) -> Pin<Box<dyn Future<Output = Result<(), MigrationError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Update rollback SQL schema without downgrading

equivalence with

This example is not tested
async fn update_rollback_sql(
    &mut self,
    changesets: &MigrationChangeSets,
) -> Result<(), MigrationError>;

#[must_use]fn rollback<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    group_name: &'life1 str,
    count: Option<usize>
) -> Pin<Box<dyn Future<Output = Result<(), MigrationError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Rollback SQL schema

equivalence with

This example is not tested
async fn rollback(
    &mut self,
    group_name: &str,
    count: Option<usize>,
) -> Result<(), MigrationError>;

#[must_use]fn load_applied_change_sets<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    group_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<MigrationChangeSets, MigrationError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Load applied change sets from database.

equivalence with

This example is not tested
async fn load_applied_change_sets(
    &mut self,
    group_name: &str,
) -> Result<MigrationChangeSets, MigrationError>;
Loading content...

Implementations on Foreign Types

impl Migration for Client[src]

Loading content...

Implementors

impl Migration for Connection[src]

Loading content...