diesel/expression/functions/
helper_types.rs1#![allow(non_camel_case_types)]
2
3use crate::dsl::SqlTypeOf;
4use crate::expression::grouped::Grouped;
5use crate::expression::operators;
6
7pub type not<Expr> = operators::Not<Grouped<Expr>>;
9
10pub type max<Expr> = super::aggregate_ordering::max<SqlTypeOf<Expr>, Expr>;
12
13pub type min<Expr> = super::aggregate_ordering::min<SqlTypeOf<Expr>, Expr>;
15
16pub type sum<Expr> = super::aggregate_folding::sum<SqlTypeOf<Expr>, Expr>;
18
19pub type avg<Expr> = super::aggregate_folding::avg<SqlTypeOf<Expr>, Expr>;
21
22pub type exists<Expr> = crate::expression::exists::Exists<Expr>;
24
25pub type lag<Expr> = super::window_functions::lag<SqlTypeOf<Expr>, Expr>;
27pub type lag_with_offset<V, O> = super::window_functions::lag_with_offset<SqlTypeOf<V>, V, O>;
29pub type lag_with_offset_and_default<V, O, D> =
31 super::window_functions::lag_with_offset_and_default<SqlTypeOf<V>, SqlTypeOf<D>, V, O, D>;
32pub type lead<Expr> = super::window_functions::lead<SqlTypeOf<Expr>, Expr>;
34pub type lead_with_offset<V, O> = super::window_functions::lead_with_offset<SqlTypeOf<V>, V, O>;
36pub type lead_with_offset_and_default<V, O, D> =
38 super::window_functions::lead_with_offset_and_default<SqlTypeOf<V>, SqlTypeOf<D>, V, O, D>;
39pub type first_value<Expr> = super::window_functions::first_value<SqlTypeOf<Expr>, Expr>;
41pub type last_value<Expr> = super::window_functions::last_value<SqlTypeOf<Expr>, Expr>;
43pub type nth_value<V, N> = super::window_functions::nth_value<SqlTypeOf<V>, V, N>;
45
46#[doc(inline)]
47pub use super::aggregate_expressions::dsl::*;