Skip to main content

AsyncMigrate

Trait AsyncMigrate 

Source
pub trait AsyncMigrate: AsyncQuery<Vec<Migration>>
where Self: Sized,
{ // Provided methods fn assert_migrations_table_query(migration_table_name: &str) -> String { ... } fn get_last_applied_migration_query(migration_table_name: &str) -> String { ... } fn get_applied_migrations_query(migration_table_name: &str) -> String { ... } fn get_last_applied_migration<'life0, 'life1, 'async_trait>( &'life0 mut self, migration_table_name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Migration>, Error>> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn get_applied_migrations<'life0, 'life1, 'async_trait>( &'life0 mut self, migration_table_name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Migration>, Error>> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn migrate<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, migrations: &'life1 [Migration], abort_divergent: bool, abort_missing: bool, grouped: bool, target: Target, migration_table_name: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Report, Error>> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait { ... } }

Provided Methods§

Source

fn assert_migrations_table_query(migration_table_name: &str) -> String

Source

fn get_last_applied_migration_query(migration_table_name: &str) -> String

Source

fn get_applied_migrations_query(migration_table_name: &str) -> String

Source

fn get_last_applied_migration<'life0, 'life1, 'async_trait>( &'life0 mut self, migration_table_name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Migration>, Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_applied_migrations<'life0, 'life1, 'async_trait>( &'life0 mut self, migration_table_name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Migration>, Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn migrate<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, migrations: &'life1 [Migration], abort_divergent: bool, abort_missing: bool, grouped: bool, target: Target, migration_table_name: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Report, Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsyncMigrate for Client

Source§

impl AsyncMigrate for Pool

Source§

impl<S> AsyncMigrate for Client<S>
where S: AsyncRead + AsyncWrite + Unpin + Send,

Source§

fn assert_migrations_table_query(migration_table_name: &str) -> String

Implementors§