dbmigrate_lib/
errors.rs

1#[cfg(feature = "postgres_support")]
2use postgres_client;
3#[cfg(feature = "mysql_support")]
4use mysql_client;
5#[cfg(feature = "sqlite_support")]
6use sqlite_client;
7
8error_chain! {
9    foreign_links {
10        Io(::std::io::Error) #[doc = "Failed to created/read migration files"];
11        Postgres(postgres_client::error::Error) #[doc = "Couldn't get connection to pg database"] #[cfg(feature = "postgres_support")];
12        MySQL(mysql_client::Error) #[doc = "Any MySQL error"] #[cfg(feature = "mysql_support")];
13        Sqlite(sqlite_client::Error) #[doc = "Any Sqlite error"] #[cfg(feature = "sqlite_support")];
14    }
15}