diesel/expression/functions/
helper_types.rs

1#![allow(non_camel_case_types)]
2
3use dsl::{AsExprOf, SqlTypeOf};
4use expression::grouped::Grouped;
5use expression::operators;
6use sql_types::Bool;
7
8/// The return type of [`not(expr)`](../dsl/fn.not.html)
9pub type not<Expr> = operators::Not<Grouped<AsExprOf<Expr, Bool>>>;
10
11/// The return type of `not(expr)`
12#[deprecated(since = "1.1.0", note = "use `not` instead")]
13#[cfg(feature = "with-deprecated")]
14pub type Not<Expr> = not<Expr>;
15
16/// The return type of [`max(expr)`](../dsl/fn.max.html)
17pub type max<Expr> = super::aggregate_ordering::max::HelperType<SqlTypeOf<Expr>, Expr>;
18
19/// The return type of [`min(expr)`](../dsl/fn.min.html)
20pub type min<Expr> = super::aggregate_ordering::min::HelperType<SqlTypeOf<Expr>, Expr>;
21
22/// The return type of [`sum(expr)`](../dsl/fn.sum.html)
23pub type sum<Expr> = super::aggregate_folding::sum::HelperType<SqlTypeOf<Expr>, Expr>;
24
25/// The return type of [`avg(expr)`](../dsl/fn.avg.html)
26pub type avg<Expr> = super::aggregate_folding::avg::HelperType<SqlTypeOf<Expr>, Expr>;