dbmigrate-lib 0.2.0

Library to run database migrations. Postgres, MySQL, Sqlite supported.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "postgres_support")]
use postgres_client;
#[cfg(feature = "mysql_support")]
use mysql_client;
#[cfg(feature = "sqlite_support")]
use sqlite_client;

error_chain! {
    foreign_links {
        Io(::std::io::Error) #[doc = "Failed to created/read migration files"];
        Postgres(postgres_client::error::Error) #[doc = "Couldn't get connection to pg database"] #[cfg(feature = "postgres_support")];
        MySQL(mysql_client::Error) #[doc = "Any MySQL error"] #[cfg(feature = "mysql_support")];
        Sqlite(sqlite_client::Error) #[doc = "Any Sqlite error"] #[cfg(feature = "sqlite_support")];
    }
}