diesel/sqlite/expression/
helper_types.rs1use crate::dsl::{AsExpr, SqlTypeOf};
2use crate::expression::grouped::Grouped;
3
4pub type Is<Lhs, Rhs> = Grouped<super::operators::Is<Lhs, AsExpr<Rhs, Lhs>>>;
6
7pub type IsNot<Lhs, Rhs> = Grouped<super::operators::IsNot<Lhs, AsExpr<Rhs, Lhs>>>;
9
10#[allow(non_camel_case_types)]
12#[cfg(feature = "sqlite")]
13pub type json<E> = super::functions::json<SqlTypeOf<E>, E>;
14
15#[allow(non_camel_case_types)]
17#[cfg(feature = "sqlite")]
18pub type jsonb<E> = super::functions::jsonb<SqlTypeOf<E>, E>;
19
20#[allow(non_camel_case_types)]
22#[cfg(feature = "sqlite")]
23pub type json_array_length<J> = super::functions::json_array_length<SqlTypeOf<J>, J>;
24
25#[allow(non_camel_case_types)]
27#[cfg(feature = "sqlite")]
28pub type json_array_length_with_path<J, P> =
29 super::functions::json_array_length_with_path<SqlTypeOf<J>, J, P>;
30
31#[allow(non_camel_case_types)]
33#[cfg(feature = "sqlite")]
34pub type json_error_position<X> = super::functions::json_error_position<SqlTypeOf<X>, X>;
35
36#[allow(non_camel_case_types)]
38#[cfg(feature = "sqlite")]
39pub type json_pretty<E> = super::functions::json_pretty<SqlTypeOf<E>, E>;
40
41#[allow(non_camel_case_types)]
43#[cfg(feature = "sqlite")]
44pub type json_pretty_with_indentation<J, I> =
45 super::functions::json_pretty_with_indentation<SqlTypeOf<J>, J, I>;
46
47#[allow(non_camel_case_types)]
49#[cfg(feature = "sqlite")]
50pub type json_valid<E> = super::functions::json_valid<SqlTypeOf<E>, E>;
51
52#[allow(non_camel_case_types)]
54#[cfg(feature = "sqlite")]
55pub type json_type<E> = super::functions::json_type<SqlTypeOf<E>, E>;
56
57#[allow(non_camel_case_types)]
59#[cfg(feature = "sqlite")]
60pub type json_type_with_path<J, P> = super::functions::json_type_with_path<SqlTypeOf<J>, J, P>;
61
62#[allow(non_camel_case_types)]
64#[cfg(feature = "sqlite")]
65pub type json_quote<J> = super::functions::json_quote<SqlTypeOf<J>, J>;
66
67#[allow(non_camel_case_types)]
69#[cfg(feature = "sqlite")]
70pub type json_group_array<E> = super::functions::json_group_array<SqlTypeOf<E>, E>;
71
72#[allow(non_camel_case_types)]
74#[cfg(feature = "sqlite")]
75pub type jsonb_group_array<E> = super::functions::jsonb_group_array<SqlTypeOf<E>, E>;
76
77#[allow(non_camel_case_types)]
79#[cfg(feature = "sqlite")]
80pub type json_group_object<N, V> =
81 super::functions::json_group_object<SqlTypeOf<N>, SqlTypeOf<V>, N, V>;
82
83#[allow(non_camel_case_types)]
85#[cfg(feature = "sqlite")]
86pub type jsonb_group_object<N, V> =
87 super::functions::jsonb_group_object<SqlTypeOf<N>, SqlTypeOf<V>, N, V>;