Trait sqlx::migrate::MigrateDatabase[][src]

pub trait MigrateDatabase {
    fn create_database(
        uri: &str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>;
fn database_exists(
        uri: &str
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send, Global>>;
fn drop_database(
        uri: &str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>; }

Required methods

fn create_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

fn database_exists(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send, Global>>
[src]

fn drop_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

Implementors

impl MigrateDatabase for Any[src]

pub fn create_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

pub fn database_exists(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send, Global>>
[src]

pub fn drop_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

impl MigrateDatabase for MySql[src]

pub fn create_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

pub fn database_exists(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send, Global>>
[src]

pub fn drop_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

impl MigrateDatabase for Postgres[src]

pub fn create_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

pub fn database_exists(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send, Global>>
[src]

pub fn drop_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

impl MigrateDatabase for Sqlite[src]

pub fn create_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]

pub fn database_exists(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send, Global>>
[src]

pub fn drop_database(
    uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]