1use crate::dsl::{AsExpr, SqlTypeOf};
2use crate::expression::grouped::Grouped;
34/// The return type of `lhs.is(rhs)`.
5pub type Is<Lhs, Rhs> = Grouped<super::operators::Is<Lhs, AsExpr<Rhs, Lhs>>>;
67/// The return type of `lhs.is_not(rhs)`.
8pub type IsNot<Lhs, Rhs> = Grouped<super::operators::IsNot<Lhs, AsExpr<Rhs, Lhs>>>;
910/// Return type of [`json(json)`](super::functions::json())
11#[allow(non_camel_case_types)]
12#[cfg(feature = "sqlite")]
13pub type json<E> = super::functions::json<SqlTypeOf<E>, E>;
1415/// Return type of [`jsonb(json)`](super::functions::jsonb())
16#[allow(non_camel_case_types)]
17#[cfg(feature = "sqlite")]
18pub type jsonb<E> = super::functions::jsonb<SqlTypeOf<E>, E>;
1920/// Return type of [`json_array_length(json)`](super::functions::json_array_length())
21#[allow(non_camel_case_types)]
22#[cfg(feature = "sqlite")]
23pub type json_array_length<J> = super::functions::json_array_length<SqlTypeOf<J>, J>;
2425/// Return type of [`json_array_length(json, path)`](super::functions::json_array_length_with_path())
26#[allow(non_camel_case_types)]
27#[cfg(feature = "sqlite")]
28pub type json_array_length_with_path<J, P> =
29super::functions::json_array_length_with_path<SqlTypeOf<J>, J, P>;
3031/// Return type of [`json_error_position(json)`](super::functions::json_error_position())
32#[allow(non_camel_case_types)]
33#[cfg(feature = "sqlite")]
34pub type json_error_position<X> = super::functions::json_error_position<SqlTypeOf<X>, X>;
3536/// Return type of [`json_pretty(json)`](super::functions::json_pretty())
37#[allow(non_camel_case_types)]
38#[cfg(feature = "sqlite")]
39pub type json_pretty<E> = super::functions::json_pretty<SqlTypeOf<E>, E>;
4041/// Return type of [`json_pretty(json, indent)`](super::functions::json_pretty_with_indentation())
42#[allow(non_camel_case_types)]
43#[cfg(feature = "sqlite")]
44pub type json_pretty_with_indentation<J, I> =
45super::functions::json_pretty_with_indentation<SqlTypeOf<J>, J, I>;
4647/// Return type of [`json_valid(json)`](super::functions::json_valid())
48#[allow(non_camel_case_types)]
49#[cfg(feature = "sqlite")]
50pub type json_valid<E> = super::functions::json_valid<SqlTypeOf<E>, E>;
5152/// Return type of [`json_type(json)`](super::functions::json_type())
53#[allow(non_camel_case_types)]
54#[cfg(feature = "sqlite")]
55pub type json_type<E> = super::functions::json_type<SqlTypeOf<E>, E>;
5657/// Return type of [`json_type(json, path)`](super::functions::json_type_with_path())
58#[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>;
6162/// Return type of [`json_quote(value)`](super::functions::json_quote())
63#[allow(non_camel_case_types)]
64#[cfg(feature = "sqlite")]
65pub type json_quote<J> = super::functions::json_quote<SqlTypeOf<J>, J>;
6667/// Return type of [`json_group_array(value)`](super::functions::json_group_array())
68#[allow(non_camel_case_types)]
69#[cfg(feature = "sqlite")]
70pub type json_group_array<E> = super::functions::json_group_array<SqlTypeOf<E>, E>;
7172/// Return type of [`jsonb_group_array(value)`](super::functions::jsonb_group_array())
73#[allow(non_camel_case_types)]
74#[cfg(feature = "sqlite")]
75pub type jsonb_group_array<E> = super::functions::jsonb_group_array<SqlTypeOf<E>, E>;
7677/// Return type of [`json_group_object(names, values)`](super::functions::json_group_object())
78#[allow(non_camel_case_types)]
79#[cfg(feature = "sqlite")]
80pub type json_group_object<N, V> =
81super::functions::json_group_object<SqlTypeOf<N>, SqlTypeOf<V>, N, V>;
8283/// Return type of [`jsonb_group_object(names, values)`](super::functions::jsonb_group_object())
84#[allow(non_camel_case_types)]
85#[cfg(feature = "sqlite")]
86pub type jsonb_group_object<N, V> =
87super::functions::jsonb_group_object<SqlTypeOf<N>, SqlTypeOf<V>, N, V>;