-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlib.rs
39 lines (34 loc) · 1.23 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
34
35
36
37
38
39
#[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 async_trait;
pub use anyhow;
pub use arel_macros::{self, arel, arel_enum};
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 statements::{join::JoinConst, order::SortConst};
pub use value::{
active_value::{ActiveValue, Set, SetChanged, SetNotSet, SetUnchanged},
sub_value, Value,
};
pub use traits::{arel_attribute_from_row::ArelAttributeFromRow, arel_persisted::ArelPersisted, Arel, SuperArel};
pub type Result<T> = std::result::Result<T, crate::Error>;