Module expr

Source

Modules§

math

Macros§

static_cast
static_columns
static_condition
static_from_tables
static_group_by
Create a valid GROUP BY clause as a &'static str at compile-time.
static_join
static_join_using
Comma separated list of shared column names
static_limit
static_offset
static_order_by
static_row_lock
Row-level lock
static_select
static_table_lock
LOCK sql command
static_tables
write_variadic

Structs§

ColumnExpr
ColumnExprList
Group

Enums§

Cmp
Comparison operators
ConflictAction
ConflictTarget
JoinType
LogicBi
Logic binary operators
LogicUn
Logic unary operators
OrderByNulls
OrderByOrd
RowLockConcurrency
RowLockStrength
Row-level lock strength
TableLock
TableLockMode
Table-level lock mode
TableLockWait

Traits§

BinaryOperator
UnaryOperator

Functions§

binary_rhs
cast
CAST Command
column_list
columns_iter
Write a list of columns from a iterator into the sql command buffer.
continue_condition
cross_join
Writes a CROSS JOIN <table> clause
delete
Writes a DELETE FROM command into the sql command buffer.
delete_from
Writes a DELETE FROM <table> clause to start a delete command with a table.
delete_using
Writes a USING clause for specifying additional tables in the delete clause.
delete_using_iter
Writes a USING <table> clause with a iterator of additional tables to be included in the WHERE clause of a DELETE command.
filter_having
Write a HAVING clause in the sql command.
filter_where
Write a WHERE clause in the sql command.
from_tables
group_by
Writes a GROUP BY clause.
insert
Write a INSERT INTO clause to start a insert sql command.
insert_into
Write an INSERT INTO <table> clause to start an insert command with a table.
item_separator
Puts an item separator ", " into the command buffer
item_separator_optional
Puts an item separator ", " into the command buffer if the sql command does not ends with one.
join
Starts a JOIN clause.
join_on
Starts a join condition.
join_using
Writes a join condition with the USING form.
lhs_binary_rhs
limit
Writes a LIMIT clause into a sql writer.
offset
Writes a offset clause into a sql writer.
on_conflict
Writes a ON CONFLICT <target> DO <action> clause to specify an alternative action during conflict in a INSERT clause.
order_by
Writes a ORDER BY clause.
order_by_expr
Write a ORDER BY order expression.
returning
Write a RETURNING clause to compute the values that will be returned from the query.
row_lock
select
SELECT
select_all
SELECT ALL
select_distinct
SELECT DISTINCT
separator
Puts a separator " " into the command buffer
separator_optional
Puts a separator " " into the command buffer if it does’t already have.
set_column
Write a SET <column> = expression for setting the column value of a update clause.
set_tuple
Write a SET (<column>, ...) = expression for setting the tuple value of a update clause.
table_lock
LOCK sql command
unary_rhs
update
Write a UPDATE command into the sql buffer.
update_table
Write a UPDATE <table> [ AS <alias> ] command with a table and a optional alias into the sql buffer.
values
Write a VALUES clause to start a list of expressions to be used in the INSERT command.
write_iter
Write a list of values into the sql command.