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<()>>;
}

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

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.