pub trait MigrateDatabase {
    // Required methods
    fn create_database(
        url: &str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_, Global>>;
    fn database_exists(
        url: &str
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + '_, Global>>;
    fn drop_database(
        url: &str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_, Global>>;
}

Required Methods§

source

fn create_database( url: &str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_, Global>>

source

fn database_exists( url: &str ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + '_, Global>>

source

fn drop_database( url: &str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_, Global>>

Implementors§