diesel/expression_methods/
mod.rs

1//! Adds various methods to construct new expressions. These traits are exported
2//! by default, and implemented automatically.
3//!
4//! You can rely on the methods provided by this trait existing on any
5//! `Expression` of the appropriate type. You should not rely on the specific
6//! traits existing, their names, or their organization.
7mod bool_expression_methods;
8mod eq_all;
9mod escape_expression_methods;
10mod global_expression_methods;
11#[cfg(any(feature = "sqlite", feature = "postgres_backend"))]
12pub(crate) mod json_expression_methods;
13mod text_expression_methods;
14
15#[doc(inline)]
16pub use self::bool_expression_methods::{BoolExpressionMethods, PreferredBoolSqlType};
17#[doc(hidden)]
18pub use self::eq_all::EqAll;
19#[doc(inline)]
20pub use self::escape_expression_methods::EscapeExpressionMethods;
21#[doc(inline)]
22pub use self::global_expression_methods::{ExpressionMethods, NullableExpressionMethods};
23#[doc(inline)]
24#[cfg(any(feature = "sqlite", feature = "postgres_backend"))]
25pub use self::json_expression_methods::{AnyJsonExpressionMethods, JsonIndex};
26#[doc(inline)]
27pub use self::text_expression_methods::TextExpressionMethods;
28#[doc(inline)]
29pub use crate::expression::functions::aggregate_expressions::frame_clause::FrameBoundDsl;
30#[doc(inline)]
31pub use crate::expression::functions::aggregate_expressions::frame_clause::FrameClauseDsl;
32#[doc(inline)]
33pub use crate::expression::functions::aggregate_expressions::frame_clause::{
34    FrameClauseEndBound, FrameClauseExclusion, FrameClauseStartBound, OffsetFollowing,
35    OffsetPreceding,
36};
37#[doc(inline)]
38pub use crate::expression::functions::aggregate_expressions::AggregateExpressionMethods;
39#[doc(inline)]
40pub use crate::expression::functions::aggregate_expressions::WindowExpressionMethods;
41
42#[cfg(feature = "postgres_backend")]
43#[doc(inline)]
44pub use crate::pg::expression::expression_methods::*;
45
46#[cfg(feature = "sqlite")]
47#[doc(inline)]
48pub use crate::sqlite::expression::expression_methods::*;