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