Modules§
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§
Enums§
- Cmp
- Comparison operators
- Conflict
Action - Conflict
Target - Join
Type - LogicBi
- Logic binary operators
- LogicUn
- Logic unary operators
- Order
ByNulls - Order
ByOrd - RowLock
Concurrency - RowLock
Strength - Row-level lock strength
- Table
Lock - Table
Lock Mode - Table-level lock mode
- Table
Lock Wait
Traits§
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 theWHERE
clause of aDELETE
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 aINSERT
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 theINSERT
command. - write_
iter - Write a list of values into the sql command.