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", so this trait is not object safe.
Implementors§
impl MigrateDatabase for Any
Available on (crate features
postgres
or mysql
or mssql
or sqlite
or odbc
) and crate feature any
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.