pub trait MigrateDatabase {
// Required methods
fn create_database(url: &str) -> BoxFuture<'_, Result<(), Error>>;
fn database_exists(url: &str) -> BoxFuture<'_, Result<bool, Error>>;
fn drop_database(url: &str) -> BoxFuture<'_, Result<(), Error>>;
// Provided method
fn force_drop_database(_url: &str) -> BoxFuture<'_, Result<(), Error>> { ... }
}
Required Methods§
fn create_database(url: &str) -> BoxFuture<'_, Result<(), Error>>
fn database_exists(url: &str) -> BoxFuture<'_, Result<bool, Error>>
fn drop_database(url: &str) -> BoxFuture<'_, Result<(), Error>>
Provided Methods§
Object Safety§
This trait is not object safe.