SqlxMigrationExt

Trait SqlxMigrationExt 

Source
pub trait SqlxMigrationExt<DB>
where DB: Database + Sync, <DB as Database>::Connection: Migrate,
{ // Required method fn migrate<'life0, 'async_trait>( &'life0 self, migrator: Migrator, ) -> Pin<Box<dyn Future<Output = Result<(), Error<Error>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }

Required Methods§

Source

fn migrate<'life0, 'async_trait>( &'life0 self, migrator: Migrator, ) -> Pin<Box<dyn Future<Output = Result<(), Error<Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl<DB> SqlxMigrationExt<DB> for Pool<SqlxConnectionManager<DB>>
where DB: Database + Sync, <DB as Database>::Connection: Migrate,

Source§

fn migrate<'life0, 'async_trait>( &'life0 self, migrator: Migrator, ) -> Pin<Box<dyn Future<Output = Result<(), Error<Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§