Skip to main content

diesel/pg/expression/
mod.rs

1//! PostgreSQL related query builder extensions
2//!
3//! Everything in this module is re-exported from database agnostic locations.
4//! You should rely on the re-exports rather than this module directly. It is
5//! kept separate purely for documentation purposes.
6
7pub(crate) mod array;
8#[cfg(all(feature = "with-deprecated", not(feature = "without-deprecated")))]
9pub(crate) mod array_comparison;
10pub(crate) mod expression_methods;
11pub mod extensions;
12pub mod functions;
13pub(crate) mod helper_types;
14pub(crate) mod operators;
15
16mod date_and_time;
17
18mod return_type_helpers {
19    #[allow(unused_imports)]
20    #[doc(inline)]
21    pub use super::functions::return_type_helpers_reexported::*;
22
23    #[allow(unused_imports)]
24    #[doc(inline)]
25    pub use super::super::returning::return_type_helpers_reexported::*;
26}
27
28/// PostgreSQL specific expression DSL methods.
29///
30/// This module will be glob imported by
31/// [`diesel::dsl`](crate::dsl) when compiled with the `feature =
32/// "postgres"` flag.
33pub mod dsl {
34    #[cfg(all(feature = "with-deprecated", not(feature = "without-deprecated")))]
35    #[doc(inline)]
36    #[allow(deprecated)]
37    pub use super::array_comparison::{all, any};
38
39    #[doc(inline)]
40    pub use super::array::{IntoArrayExpression, array};
41
42    #[doc(inline)]
43    pub use super::extensions::*;
44
45    #[doc(inline)]
46    pub use super::functions::*;
47}