pub trait MigrateDatabase {
// Required methods
fn create_database(url: &str) -> BoxFuture<'_, Result<()>>;
fn database_exists(url: &str) -> BoxFuture<'_, Result<bool>>;
fn drop_database(url: &str) -> BoxFuture<'_, Result<()>>;
}Available on crate feature
migrate only.Required Methods§
fn create_database(url: &str) -> BoxFuture<'_, Result<()>>
fn database_exists(url: &str) -> BoxFuture<'_, Result<bool>>
fn drop_database(url: &str) -> BoxFuture<'_, Result<()>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl MigrateDatabase for Any
Available on crate feature
any and (crate features mssql or mysql or odbc or postgres or sqlite) only.impl MigrateDatabase for MySql
Available on crate feature
mysql only.impl MigrateDatabase for Postgres
Available on crate feature
postgres only.impl MigrateDatabase for Sqlite
Available on crate feature
sqlite only.