Expand description
The statements the builder renders; Query starts any of them.
SelectStatement, InsertStatement, UpdateStatement and DeleteStatement,
with WITH queries and the clauses they share: conditions, CASE, ORDER BY, window
frames, ON CONFLICT and RETURNING.
Macros§
- all
- Macro to easily create an
Condition::all. - any
- Macro to easily create an
Condition::any.
Structs§
- Case
Statement - Common
Table Expression - A table definition inside a WITH clause (WithClause).
- Condition
- Represents the value of an
Condition::anyorCondition::all: a set of disjunctive or conjunctive conditions. - Condition
Holder - Delete
Statement - Delete existing rows from the table
- Frame
Clause - Frame clause
- Insert
Statement - Insert any new rows into an existing table
- Join
Expr - Join expression used in select statement
- Lock
Clause - OnConflict
- Query
- Where a statement starts:
Query::select(),Query::insert()and so on. - Returning
- Shorthand for constructing
ReturningClause - Select
Expr - Select expression used in select statement
- Select
Into - The INTO clause in SELECT statement
- Select
Statement - Select rows from an existing table
- Update
Statement - Update existing rows in the table
- Window
Statement - Window expression
- With
Clause - A WITH clause can contain one or multiple common table expressions (CommonTableExpression).
- With
Query - A WITH query. A simple SQL query that has a WITH clause (WithClause).
Enums§
- Condition
Holder Contents - Condition
Type - Frame
- frame_start or frame_end clause
- Frame
Type - Frame type
- Lock
Behavior - List of lock behavior can be used in select statement
- Lock
Type - List of lock types that can be used in select statement
- OnConflict
Action - Represents ON CONFLICT (upsert) actions
- OnConflict
Identifier - Represents either a column or an expression in the conflict targets
- OnConflict
Target - Represents ON CONFLICT (upsert) targets
- OnConflict
Update - Represents strategies to update column in ON CONFLICT (upsert) actions
- Query
Statement - One of the four table statements.
- Returning
Clause - RETURNING clause.
- Select
Distinct - List of distinct keywords that can be used in select statement
- Select
Into Table Modifier - The table type of target table of SELECT INTO clause
- SubQuery
Statement - A statement nested in another: an expression’s subquery or a derived table.
- Union
Type - List of union types that can be used in union clause
- Window
Select Type - Window type in
SelectExpr
Traits§
- Conditional
Statement - Into
Condition - A helper trait.
- Ordered
Statement - Over
Statement - Query
Statement Builder - Query
Statement Writer - Select
Expr Trait - Extension methods for building a
SelectExprfrom an expression.