dbmigrate-lib 0.2.0

Library to run database migrations. Postgres, MySQL, Sqlite supported.
Documentation
//! Database migrations for Postgres, MySQL, and SQLite.
//!
#![deny(missing_docs)]

#[cfg(test)]
extern crate tempdir;

extern crate regex;
extern crate url;
#[cfg(feature = "postgres_support")]
extern crate postgres as postgres_client;
#[cfg(feature = "postgres_support")]
extern crate postgres_native_tls;
#[cfg(feature = "postgres_support")]
extern crate native_tls;
#[cfg(feature = "mysql_support")]
extern crate mysql as mysql_client;
#[cfg(feature = "sqlite_support")]
extern crate rusqlite as sqlite_client;
#[macro_use]
extern crate error_chain;

mod files;
mod drivers;
/// All possible errors
pub mod errors;

pub use drivers::{get_driver, Driver};
#[cfg(feature = "postgres_support")]
pub use drivers::postgres::Postgres as PostgresDriver;
#[cfg(feature = "mysql_support")]
pub use drivers::mysql::Mysql as MysqlDriver;
#[cfg(feature = "sqlite_support")]
pub use drivers::sqlite::Sqlite as SqliteDriver;

pub use files::{
    create_migration,
    read_migration_files,
    MigrationFile,
    Migration,
    Migrations,
    Direction,
};