Skip to main content

diesel/internal/
mod.rs

1//! This module contains API definitions which are not considered
2//! to be part diesels public API
3//!
4//! **DO NOT EXPECT ANY STABILITY GUARANTEES HERE**
5
6pub 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 = "__sqlite-shared")]
44    macro_rules! expand_sqlite {
45        ($($tt:tt)*) => {$($tt)*};
46    }
47
48    #[doc(hidden)]
49    #[macro_export]
50    #[cfg(not(feature = "__sqlite-shared"))]
51    macro_rules! expand_sqlite {
52        ($($tt:tt)*) => {};
53    }
54}