1use crate::mod_def;
2
3mod_def! {!export
4 pub(crate) mod query_types;
5 pub(crate) mod pool;
6 pub(crate) mod db;
7}
8
9#[doc(hidden)]
10macro_rules! db_type {
11 ($vis:vis type $ident:ident = [$any_ty:ty, $pg_ty:ty, $mysql_ty:ty, $sqlite_ty:ty]) => {
12 #[cfg(feature = "any")]
13 $vis type $ident = $any_ty;
14
15 #[cfg(all(feature = "postgres", not(any(feature = "sqlite", feature = "mysql", feature = "any"))))]
16 $vis type $ident = $pg_ty;
17
18 #[cfg(all(feature = "mysql", not(any(feature = "sqlite", feature = "any", feature = "postgres"))))]
19 $vis type $ident = $mysql_ty;
20
21 #[cfg(all(feature = "sqlite", not(any(feature = "any", feature = "mysql", feature = "postgres"))))]
22 $vis type $ident = $sqlite_ty;
23 };
24}
25pub(crate) use db_type;