dbmigrate_lib/
lib.rs

1//! Database migrations for Postgres, MySQL, and SQLite.
2//!
3#![deny(missing_docs)]
4
5#[cfg(test)]
6extern crate tempdir;
7
8extern crate regex;
9extern crate url;
10#[cfg(feature = "postgres_support")]
11extern crate postgres as postgres_client;
12#[cfg(feature = "postgres_support")]
13extern crate postgres_native_tls;
14#[cfg(feature = "postgres_support")]
15extern crate native_tls;
16#[cfg(feature = "mysql_support")]
17extern crate mysql as mysql_client;
18#[cfg(feature = "sqlite_support")]
19extern crate rusqlite as sqlite_client;
20#[macro_use]
21extern crate error_chain;
22
23mod files;
24mod drivers;
25/// All possible errors
26pub mod errors;
27
28pub use drivers::{get_driver, Driver};
29#[cfg(feature = "postgres_support")]
30pub use drivers::postgres::Postgres as PostgresDriver;
31#[cfg(feature = "mysql_support")]
32pub use drivers::mysql::Mysql as MysqlDriver;
33#[cfg(feature = "sqlite_support")]
34pub use drivers::sqlite::Sqlite as SqliteDriver;
35
36pub use files::{
37    create_migration,
38    read_migration_files,
39    MigrationFile,
40    Migration,
41    Migrations,
42    Direction,
43};