Expand description
Provide helper types for concisely writing the return type of functions. As with iterators, it is unfortunately difficult to return a partially constructed query without exposing the exact implementation of the function. Without higher kinded types, these various DSLs can’t be combined into a single trait for boxing purposes.
All types here are in the form <FirstType as DslName<OtherTypes>>::Output. So the return type of
users.filter(first_name.eq("John")).order(last_name.asc()).limit(10) would
be Limit<Order<FindBy<users, first_name, &str>, Asc<last_name>>>
Type Aliases§
- Add
- The return type of
l + r - Aggregate
All - Return type of
AggregateExpressionMethods::aggregate_all - Aggregate
Distinct - Return type of
AggregateExpressionMethods::aggregate_distinct - Aggregate
Filter - Return type of
AggregateExpressionMethods::aggregate_filter - Aggregate
Order - Return type of
AggregateExpressionMethods::aggregate_order - Aliased
Fields - Maps
FtoAlias<S> - And
- The return type of
lhs.and(rhs) - AndNet
postgres_backendandsqlite - The return type of
lsh.and(rhs)for network types - Array
Contains Deprecated postgres_backendandsqlite - Array
Index Deprecated postgres_backendandsqlite - AsExpr
- The type of
Itemwhen converted to an expression with the same type asTargetExpr - AsExpr
Of - The type of
Itemwhen converted to an expression ofType - AsSelect
- Represents the return type of
.as_select() - Asc
- The return type of
expr.asc() - Assume
NotNull - The return type of
expr.assume_not_null() - AtTime
Zone postgres_backendandsqlite - The return type of
expr.at_time_zone(tz) - Between
- The return type of
lhs.between(lower, upper) - Cast
- The return type of
expr.cast<ST>() - Concat
- The return type of
lhs.concat(rhs) - Concat
Array Deprecated postgres_backendandsqlite - Concat
Binary Deprecated postgres_backendandsqlite - Concat
Jsonb Deprecated postgres_backendandsqlite - Contains
postgres_backendandsqlite - The return type of
lhs.contains(rhs)for array expressions - Contains
Jsonb Deprecated postgres_backendandsqlite - Contains
Net postgres_backendandsqlite - The return type of
lhs.contains(rhs)for network types - Contains
NetLoose postgres_backendandsqlite - The return type of
lhs.contains_or_eq(rhs) - Contains
OrEq postgres_backendandsqlite - Contains
Range postgres_backendandsqlite - The return type of
lhs.contains_range(rhs)for range expressions - Desc
- The return type of
expr.desc() - Diff
postgres_backendandsqlite - Difference
postgres_backendandsqlite - The return type of
lhs.difference_range(rhs) - Difference
Net postgres_backendandsqlite - The return type of
lsh.diff(rhs) - Difference
Range postgres_backendandsqlite - Distinct
- Represents the return type of
.distinct() - Distinct
On postgres_backend - Represents the return type of
.distinct_on(expr) - Div
- The return type of
l / r - Eq
- The return type of
lhs.eq(rhs) - EqAny
- The return type of
lhs.eq_any(rhs) - Escape
- The return type of
lhs.escape('x') - Except
- Represents the return type of
.except(rhs) - Except
All - Represents the return type of
.except_all(rhs) - Field
- The return type of
alias.field(field) - Fields
- The return type of
alias.fields(fields) - Filter
- Represents the return type of
.filter(predicate) - Find
- Represents the return type of
.find(pk) - FindBy
- Represents the return type of
.filter(lhs.eq(rhs)) - Following
- Return type of
FrameBoundDsl::following - ForKey
Share - Represents the return type of
.for_key_share() - ForNo
KeyUpdate - Represents the return type of
.for_no_key_update() - ForShare
- Represents the return type of
.for_share() - ForUpdate
- Represents the return type of
.for_update() - Frame
Between - Return type of
FrameClauseDsl::frame_between - Frame
Between With Exclusion - Return type of
FrameClauseDsl::frame_between_with_exclusion - FrameBy
- Return type of
WindowExpressionMethods::frame_by - Frame
Start With - Return type of
FrameClauseDsl::frame_start_with - Frame
Start With Exclusion - Return type of
FrameClauseDsl::frame_start_with_exclusion - Ge
- Greater
Than postgres_backendandsqlite - Greater
Than Range postgres_backendandsqlite - The return type of
lhs.range_is_contained_by(rhs) - GroupBy
- Represents the return type of
.group_by(expr) - Gt
- The return type of
lhs.gt(rhs) - GtEq
- The return type of
lhs.ge(rhs) - HasAll
Keys postgres_backendandsqlite - HasAll
Keys Jsonb postgres_backendandsqlite - The return type of
lsh.has_all_keys(rhs) - HasAny
Key postgres_backendandsqlite - HasAny
KeyJsonb postgres_backendandsqlite - The return type of
lsh.has_any_key(rhs) - HasKey
postgres_backendandsqlite - HasKey
Jsonb postgres_backendandsqlite - The return type of
lsh.has_key(rhs) - Having
- Represents the return type of
.having(predicate) - ILike
postgres_backendandsqlite - The return type of
lhs.ilike(rhs) - Ilike
postgres_backendandsqlite - Index
postgres_backendandsqlite - The return type of
lhs.index(rhs) - Inner
Join - Represents the return type of
.inner_join(rhs) - Inner
Join On - Represents the return type of
.inner_join(rhs.on(on)) - Inner
Join Query Source - A query source representing the inner join between two tables.
- Intersect
- Represents the return type of
.intersect(rhs) - Intersect
All - Represents the return type of
.intersect_all(rhs) - Intersection
postgres_backendandsqlite - The return type of
lhs.intersection_range(rhs) - Intersection
Range postgres_backendandsqlite - Into
Boxed - Represents the return type of
.into_boxed::<'a, DB>() - IntoSql
- Represents the return type of
.into_sql() - Is
sqliteandpostgres_backend - The return type of
lhs.is(rhs). - IsContained
By postgres_backendandsqlite - The return type of
lhs.range_is_contained_by(rhs)andlhs.is_contained_by(rhs) - IsContained
ByJsonb Deprecated postgres_backendandsqlite - IsContained
ByNet postgres_backendandsqlite - The return type of
lhs.is_contained_by(rhs)for network types - IsContained
ByNet Loose postgres_backendandsqlite - The return type of
lhs.is_contained_by_or_eq(rhs) - IsContained
ByOr Eq postgres_backendandsqlite - IsContained
ByRange postgres_backendandsqlite - The return type of
lhs.is_contained_by_range(rhs) - IsDistinct
From postgres_backendandsqlite - The return type of
lhs.is_distinct_from(rhs) - IsJson
postgres_backendandsqlite - The return type of
expr.is_json() - IsJson
Array postgres_backendandsqlite - The return type of
expr.is_json_array() - IsJson
Object postgres_backendandsqlite - The return type of
expr.is_json_object() - IsJson
Scalar postgres_backendandsqlite - The return type of
expr.is_json_scalar() - IsNot
sqliteandpostgres_backend - The return type of
lhs.is_not(rhs). - IsNot
Distinct From postgres_backendandsqlite - The return type of
lhs.is_not_distinct_from(rhs) - IsNot
Json postgres_backendandsqlite - The return type of
expr.is_not_json() - IsNot
Json Array postgres_backendandsqlite - The return type of
expr.is_not_json_array() - IsNot
Json Object postgres_backendandsqlite - The return type of
expr.is_not_json_object() - IsNot
Json Scalar postgres_backendandsqlite - The return type of
expr.is_not_json_scalar() - IsNot
Null - The return type of
expr.is_not_null() - IsNull
- The return type of
expr.is_null() - Le
- Left
Join - Represents the return type of
.left_join(rhs) - Left
Join On - Represents the return type of
.left_join(rhs.on(on)) - Left
Join Query Source - A query source representing the left outer join between two tables.
- Lesser
Than postgres_backendandsqlite - Lesser
Than Range postgres_backendandsqlite - The return type of
lhs.range_is_contained_by(rhs) - Like
- The return type of
lhs.like(rhs) - Like
Binary Deprecated postgres_backendandsqlite - Limit
- Represents the return type of
.limit() - Lt
- The return type of
lhs.lt(rhs) - LtEq
- The return type of
lhs.le(rhs) - Mul
- The return type of
l * r - Ne
- NeAll
- NeAny
- The return type of
lhs.ne_all(rhs) - NoWait
- Represents the return type of
.no_wait() - NotBetween
- The return type of
lhs.not_between(lower, upper) - NotEq
- The return type of
lhs.ne(rhs) - NotI
Like postgres_backendandsqlite - The return type of
lhs.not_ilike(rhs) - NotIlike
postgres_backendandsqlite - NotLike
- The return type of
lhs.not_like(rhs) - NotLike
Binary Deprecated postgres_backendandsqlite - NotSimilar
To postgres_backendandsqlite - The return type of
lhs.not_similar_to(rhs) - Nullable
- The return type of
expr.nullable() - Nullable
Select - Represents the return type of
.nullable() - Nulls
First postgres_backendandsqlite - The return type of
expr.nulls_first() - Nulls
Last postgres_backendandsqlite - The return type of
expr.nulls_last() - Offset
- Represents the return type of
.offset() - On
- Represents the return type of
rhs.on(on) - Or
- The return type of
lhs.or(rhs) - OrFilter
- Represents the return type of
.or_filter(predicate) - OrNet
postgres_backendandsqlite - The return type of
lsh.or(rhs)for network types - Order
- Represents the return type of
.order(ordering) - OrderBy
- Represents the return type of
.order_by(ordering) - Otherwise
- The return type of
case_when(...).otherwise(...) - Over
- Return type of
WindowExpressionMethods::over - Overlaps
With postgres_backendandsqlite - The return type of
lhs.overlaps_with(rhs)andlhs.overlaps_with(rhs) - Overlaps
With Net postgres_backendandsqlite - The return type of
lhs.overlaps_with(rhs)for network types - Partition
By - Return type of
WindowExpressionMethods::partition_by - Preceding
- Return type of
FrameBoundDsl::preceding - Range
Adjacent postgres_backendandsqlite - The return type of
lhs.range_adjacent(rhs) - Range
Contains postgres_backendandsqlite - The return type of
lhs.contains(rhs)for range expressions - Range
Extends Left To postgres_backendandsqlite - The return type of
lhs.range_extends_left_to(rhs)for range expressions - Range
Extends Right To postgres_backendandsqlite - The return type of
lhs.range_extends_right_to(rhs)for range expressions - Remove
postgres_backendandsqlite - Remove
ByPath postgres_backendandsqlite - Remove
ByPath From Jsonb postgres_backendandsqlite - The return type of
lhs.remove_by_path(rhs) - Remove
From Jsonb postgres_backendandsqlite - The return type of
lhs.remove(rhs) - Retrieve
AsObject postgres_backendandsqlite - The return type of
lhs.retrieve_as_object(rhs) - Retrieve
AsObject Json postgres_backendandsqlite - Retrieve
AsObject Sqlite sqliteandpostgres_backend - The return type of
lhs.retrieve_as_object(rhs) - Retrieve
AsText postgres_backendorsqlite - The return type of
lhs.retrieve_as_text(rhs) - Retrieve
AsText Json postgres_backendandsqlite - Retrieve
ByPath AsObject postgres_backendandsqlite - Retrieve
ByPath AsObject Json postgres_backendandsqlite - The return type of
lhs.retrieve_by_path_as_object(rhs) - Retrieve
ByPath AsText postgres_backendandsqlite - Retrieve
ByPath AsText Json postgres_backendandsqlite - The return type of
lhs.retrieve_by_path_as_text(rhs) - Returning
- Represents the return type of
InsertStatement::returning,UpdateStatement::returningandDeleteStatement::returning - Select
- Represents the return type of
.select(selection) - Set
- Represents the return type of
UpdateStatement::set() - Similar
To postgres_backendandsqlite - The return type of
lhs.similar_to(rhs) - Single
Value - Represents the return type of
.single_value() - Skip
Locked - Represents the return type of
.skip_locked() - SqlType
Of - The SQL type of an expression
- Sub
- The return type of
l - r - Then
Order By - Represents the return type of
.then_order_by(ordering) - Union
- Represents the return type of
.union(rhs) - Union
All - Represents the return type of
.union_all(rhs) - Union
Range postgres_backendandsqlite - The return type of
lhs.union_range(rhs) - Update
- Represents the return type of
update(lhs).set(rhs) - Values
- Represents the return type of
IncompleteInsertStatement::values() - When
- The return type of
case_when(...).when(...) - Window
Filter - Return type of
WindowExpressionMethods::window_filter - Window
Order - Return type of
WindowExpressionMethods::window_order - abbrev
- Return type of the
abbrev()SQL function. - array_
append - Return type of the
array_append()SQL function. - array_
cat - Return type of the
array_cat()SQL function. - array_
dims - Return type of the
array_dims()SQL function. - array_
fill - Return type of the
array_fill()SQL function. - array_
fill_ with_ lower_ bound - Return type of the
array_fill_with_lower_bound()SQL function. - array_
length - Return type of the
array_length()SQL function. - array_
lower - Return type of the
array_lower()SQL function. - array_
ndims - Return type of the
array_ndims()SQL function. - array_
position - Return type of the
array_position()SQL function. - array_
position_ with_ subscript - Return type of the
array_position_with_subscript()SQL function. - array_
positions - Return type of the
array_positions()SQL function. - array_
prepend - Return type of the
array_prepend()SQL function. - array_
remove - Return type of the
array_remove()SQL function. - array_
replace - Return type of the
array_replace()SQL function. - array_
sample - Return type of the
array_sample()SQL function. - array_
shuffle - Return type of the
array_shuffle()SQL function. - array_
to_ json - Return type of the
array_to_json()SQL function. - array_
to_ string - Return type of the
array_to_string()SQL function. - array_
to_ string_ with_ null_ string - Return type of the
array_to_string_with_null_string()SQL function. - array_
upper - Return type of the
array_upper()SQL function. - avg
- The return type of
avg(expr) - broadcast
- Return type of the
broadcast()SQL function. - cardinality
- Return type of the
cardinality()SQL function. - case_
when - The return type of
case_when() - daterange
- Return type of the
daterange()SQL function. - delete
- Represents the return type of
diesel::delete - exists
- The return type of
exists(expr) - family
- Return type of the
family()SQL function. - first_
value - The return type of
first_value(expr) - host
- Return type of the
host()SQL function. - hostmask
- Return type of the
hostmask()SQL function. - inet_
merge - Return type of the
inet_merge()SQL function. - inet_
same_ family - Return type of the
inet_same_family()SQL function. - insert_
into - Represents the return type of
diesel::insert_into - insert_
or_ ignore_ into - Represents the return type of
diesel::insert_or_ignore_into - int4range
- Return type of the
int4range()SQL function. - int8range
- Return type of the
int8range()SQL function. - isempty
- Return type of the
isempty()SQL function. - json
- Return type of the
json()SQL function. - json_
array_ 0 - Return type of the
json_array_0()SQL function. - json_
array_ 1 - Return type of the
json_array_1()SQL function. - json_
array_ 2 - Return type of the
json_array_2()SQL function. - json_
array_ length - Return type of the
json_array_length()SQL function. - json_
array_ length_ with_ path - Return type of the
json_array_length_with_path()SQL function. - json_
build_ array_ 0 - Return type of the
json_build_array_0()SQL function. - json_
build_ array_ 1 - Return type of the
json_build_array_1()SQL function. - json_
build_ array_ 2 - Return type of the
json_build_array_2()SQL function. - json_
error_ position - Return type of the
json_error_position()SQL function. - json_
extract_ path_ 1 - Return type of the
json_extract_path_1()SQL function. - json_
extract_ path_ 2 - Return type of the
json_extract_path_2()SQL function. - json_
extract_ path_ text_ 1 - Return type of the
json_extract_path_text_1()SQL function. - json_
extract_ path_ text_ 2 - Return type of the
json_extract_path_text_2()SQL function. - json_
group_ array - Return type of the
json_group_array()SQL function. - json_
group_ object - Return type of the
json_group_object()SQL function. - json_
object - Return type of the
json_object()SQL function. - json_
object_ 0 - Return type of the
json_object_0()SQL function. - json_
object_ 1 - Return type of the
json_object_1()SQL function. - json_
object_ 2 - Return type of the
json_object_2()SQL function. - json_
object_ with_ keys_ and_ values - Return type of the
json_object_with_keys_and_values()SQL function. - json_
patch - Return type of the
json_patch()SQL function. - json_
populate_ record - Return type of the
json_populate_record()SQL function. - json_
pretty - Return type of the
json_pretty()SQL function. - json_
pretty_ with_ indentation - Return type of the
json_pretty_with_indentation()SQL function. - json_
quote - Return type of the
json_quote()SQL function. - json_
remove_ 0 - Return type of the
json_remove_0()SQL function. - json_
remove_ 1 - Return type of the
json_remove_1()SQL function. - json_
remove_ 2 - Return type of the
json_remove_2()SQL function. - json_
strip_ nulls - Return type of the
json_strip_nulls()SQL function. - json_
type - Return type of the
json_type()SQL function. - json_
type_ with_ path - Return type of the
json_type_with_path()SQL function. - json_
typeof - Return type of the
json_typeof()SQL function. - json_
valid - Return type of the
json_valid()SQL function. - json_
valid_ with_ flags - Return type of the
json_valid_with_flags()SQL function. - jsonb
- Return type of the
jsonb()SQL function. - jsonb_
array_ 0 - Return type of the
jsonb_array_0()SQL function. - jsonb_
array_ 1 - Return type of the
jsonb_array_1()SQL function. - jsonb_
array_ 2 - Return type of the
jsonb_array_2()SQL function. - jsonb_
array_ length - Return type of the
jsonb_array_length()SQL function. - jsonb_
build_ array_ 0 - Return type of the
jsonb_build_array_0()SQL function. - jsonb_
build_ array_ 1 - Return type of the
jsonb_build_array_1()SQL function. - jsonb_
build_ array_ 2 - Return type of the
jsonb_build_array_2()SQL function. - jsonb_
extract_ path_ 1 - Return type of the
jsonb_extract_path_1()SQL function. - jsonb_
extract_ path_ 2 - Return type of the
jsonb_extract_path_2()SQL function. - jsonb_
extract_ path_ text_ 1 - Return type of the
jsonb_extract_path_text_1()SQL function. - jsonb_
extract_ path_ text_ 2 - Return type of the
jsonb_extract_path_text_2()SQL function. - jsonb_
group_ array - Return type of the
jsonb_group_array()SQL function. - jsonb_
group_ object - Return type of the
jsonb_group_object()SQL function. - jsonb_
insert - Return type of the
jsonb_insert()SQL function. - jsonb_
insert_ with_ insert_ after - Return type of the
jsonb_insert_with_insert_after()SQL function. - jsonb_
object - Return type of the
jsonb_object()SQL function. - jsonb_
object_ 0 - Return type of the
jsonb_object_0()SQL function. - jsonb_
object_ 1 - Return type of the
jsonb_object_1()SQL function. - jsonb_
object_ 2 - Return type of the
jsonb_object_2()SQL function. - jsonb_
object_ with_ keys_ and_ values - Return type of the
jsonb_object_with_keys_and_values()SQL function. - jsonb_
patch - Return type of the
jsonb_patch()SQL function. - jsonb_
populate_ record - Return type of the
jsonb_populate_record()SQL function. - jsonb_
pretty - Return type of the
jsonb_pretty()SQL function. - jsonb_
remove_ 0 - Return type of the
jsonb_remove_0()SQL function. - jsonb_
remove_ 1 - Return type of the
jsonb_remove_1()SQL function. - jsonb_
remove_ 2 - Return type of the
jsonb_remove_2()SQL function. - jsonb_
set - Return type of the
jsonb_set()SQL function. - jsonb_
set_ create_ if_ missing - Return type of the
jsonb_set_create_if_missing()SQL function. - jsonb_
set_ lax - Return type of the
jsonb_set_lax()SQL function. - jsonb_
strip_ nulls - Return type of the
jsonb_strip_nulls()SQL function. - jsonb_
typeof - Return type of the
jsonb_typeof()SQL function. - lag
- The return type of
lag(expr) - lag_
with_ offset - The return type of
lag_with_offset(expr, offset) - lag_
with_ offset_ and_ default - The return type of
lag_with_offset_and_default(expr, offset) - last_
value - The return type of
last_value(expr) - lead
- The return type of
lead(expr) - lead_
with_ offset - The return type of
lead_with_offset(expr, offset) - lead_
with_ offset_ and_ default - The return type of
lead_with_offset_and_default(expr, offset) - lower
- Return type of the
lower()SQL function. - lower_
inc - Return type of the
lower_inc()SQL function. - lower_
inf - Return type of the
lower_inf()SQL function. - masklen
- Return type of the
masklen()SQL function. - max
- The return type of
max(expr) - min
- The return type of
min(expr) - multirange_
merge - Return type of the
multirange_merge()SQL function. - netmask
- Return type of the
netmask()SQL function. - network
- Return type of the
network()SQL function. - not
- The return type of
not(expr) - nth_
value - The return type of
nth_value(expr, n) - numrange
- Return type of the
numrange()SQL function. - range_
merge - Return type of the
range_merge()SQL function. - replace_
into - Represents the return type of
diesel::replace_into - row_
to_ json - Return type of the
row_to_json()SQL function. - select
- Represents the return type of
diesel::select(selection) - set_
masklen - Return type of the
set_masklen()SQL function. - sum
- The return type of
sum(expr) - to_json
- Return type of the
to_json()SQL function. - to_
jsonb - Return type of the
to_jsonb()SQL function. - trim_
array - Return type of the
trim_array()SQL function. - tsrange
- Return type of the
tsrange()SQL function. - tstzrange
- Return type of the
tstzrange()SQL function. - update
- Represents the return type of
diesel::update - upper
- Return type of the
upper()SQL function. - upper_
inc - Return type of the
upper_inc()SQL function. - upper_
inf - Return type of the
upper_inf()SQL function.