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>>;

    // Provided method
    fn force_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>>

Provided Methods§

source

fn force_drop_database( _url: &str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>

Implementors§