1pub mod cache;
2pub mod err;
3#[cfg(feature = "etcd")]
4pub mod etcd;
5pub mod fulltext;
6pub mod linker;
7pub mod session;
8pub mod types {
9 pub mod blob;
10 pub mod geo_point;
11 pub mod point;
12}
13pub mod db;
14pub use db::convert_mysql_placeholders_to_postgresql;
15pub mod update_operator;
16
17pub type ShardId = u16;
18
19#[macro_export]
20macro_rules! if_then_else {
21 ( $if:expr, $then:expr, $else:expr ) => {
22 if $if { $then } else { $else }
23 };
24}
25
26pub trait SqlColumns {
27 fn _sql_cols(is_mysql: bool) -> &'static str;
28}