stringqb/src/lib.rs

38 lines
1.0 KiB
Rust
Raw Normal View History

2019-04-02 16:35:52 -04:00
//! # StringQB
//!
//! A query builder using mostly strings, with methods following common SQL syntax
2019-04-10 14:03:28 -04:00
#![warn(missing_docs)]
// Temporarily silence unused variables and uncalled code warnings
// @TODO remove when most of the code is implemented
2019-04-10 14:03:28 -04:00
#![allow(dead_code)]
#![allow(unused_variables)]
2019-04-02 16:35:52 -04:00
2019-04-11 17:16:35 -04:00
#[macro_use]
extern crate lazy_static;
2019-04-02 16:35:52 -04:00
pub mod drivers;
pub mod enums;
2019-04-12 15:25:59 -04:00
pub mod fns;
2019-04-02 16:35:52 -04:00
pub mod query_builder;
2019-04-12 15:25:59 -04:00
pub mod prelude {
//! Re-exports important traits and types.
2019-04-12 17:09:59 -04:00
//!
//! This includes enum types, traits,
//! the Query Builder, and individual database drivers.
pub use crate::drivers::DatabaseDriver;
2019-04-17 09:09:31 -04:00
pub use crate::enums::*;
2019-04-12 15:25:59 -04:00
pub use crate::query_builder::QueryBuilder;
2019-04-12 17:09:59 -04:00
#[cfg(feature = "postgres")]
pub use crate::drivers::postgres::PostgresDriver;
#[cfg(feature = "sqlite")]
pub use crate::drivers::sqlite::SQLiteDriver;
#[cfg(feature = "mysql")]
pub use crate::drivers::mysql::MySQLDriver;
// MSSQL is missing on purpose, as it is not a real priority to actually implement
}