1pub mod alias_macro;
7pub mod derives;
8pub mod migrations;
9pub mod operators_macro;
10pub mod sql_functions;
11pub mod table_macro;
12
13mod helper_macros {
14 #[doc(hidden)]
15 #[macro_export]
16 #[cfg(feature = "postgres_backend")]
17 macro_rules! expand_pg {
18 ($($tt:tt)*) => {$($tt)*};
19 }
20 #[doc(hidden)]
21 #[macro_export]
22 #[cfg(not(feature = "postgres_backend"))]
23 macro_rules! expand_pg {
24 ($($tt:tt)*) => {};
25 }
26
27 #[doc(hidden)]
28 #[macro_export]
29 #[cfg(feature = "mysql_backend")]
30 macro_rules! expand_mysql {
31 ($($tt:tt)*) => {$($tt)*};
32 }
33
34 #[doc(hidden)]
35 #[macro_export]
36 #[cfg(not(feature = "mysql_backend"))]
37 macro_rules! expand_mysql {
38 ($($tt:tt)*) => {};
39 }
40
41 #[doc(hidden)]
42 #[macro_export]
43 #[cfg(feature = "mariadb_backend")]
44 macro_rules! expand_mariadb {
45 ($($tt:tt)*) => {$($tt)*};
46 }
47
48 #[doc(hidden)]
49 #[macro_export]
50 #[cfg(not(feature = "mariadb_backend"))]
51 macro_rules! expand_mariadb {
52 ($($tt:tt)*) => {};
53 }
54
55 #[doc(hidden)]
56 #[macro_export]
57 #[cfg(feature = "__sqlite-shared")]
58 macro_rules! expand_sqlite {
59 ($($tt:tt)*) => {$($tt)*};
60 }
61
62 #[doc(hidden)]
63 #[macro_export]
64 #[cfg(not(feature = "__sqlite-shared"))]
65 macro_rules! expand_sqlite {
66 ($($tt:tt)*) => {};
67 }
68
69 #[doc(hidden)]
70 #[macro_export]
71 #[cfg(any(feature = "mysql_backend", feature = "mariadb_backend"))]
72 macro_rules! expand_mysql_like {
73 ($($tt:tt)*) => {$($tt)*};
74 }
75
76 #[doc(hidden)]
77 #[macro_export]
78 #[cfg(not(any(feature = "mysql_backend", feature = "mariadb_backend")))]
79 macro_rules! expand_mysql_like {
80 ($($tt:tt)*) => {};
81 }
82}