MigrateDatabase

Trait MigrateDatabase 

Source
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§

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§

Source§

impl MigrateDatabase for Any

Available on (crate features postgres or mysql or mssql or sqlite or odbc) and crate feature any only.
Source§

impl MigrateDatabase for MySql

Available on crate feature mysql only.
Source§

impl MigrateDatabase for Postgres

Available on crate feature postgres only.
Source§

impl MigrateDatabase for Sqlite

Available on crate feature sqlite only.