-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.rs
33 lines (28 loc) · 1.01 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#[cfg(not(any(feature = "sqlite", feature = "mysql", feature = "postgres")))]
compile_error!("`sqlite`, `mysql` or `postgres` should be enable one.");
#[cfg(all(feature = "sqlite", feature = "mysql"))]
compile_error!("feature `sqlite` and `mysql` shouldn't be enabled both.");
#[cfg(all(feature = "sqlite", feature = "postgres"))]
compile_error!("feature `sqlite` and `postgres` shouldn't be enabled both.");
#[cfg(all(feature = "mysql", feature = "postgres"))]
compile_error!("feature `mysql` and `postgres` shouldn't be enabled both.");
pub mod statements;
pub mod db;
pub mod error;
pub mod manager;
pub mod prelude;
pub mod sql;
pub mod traits;
pub mod value;
pub use arel_macros::{self, arel};
pub use bytes;
pub use chrono;
pub use serde_json;
pub use sqlx;
pub use bytes::Bytes;
pub use error::Error;
pub use manager::SelectManager;
pub use sql::Sql;
pub use value::{sub_value, Value};
pub use traits::{arel_attribute_from_row::ArelAttributeFromRow, Arel, SuperArel};
pub type Result<T> = std::result::Result<T, crate::Error>;