Expand description
Query statements (select, insert, update & delete).
§Usage
- Query Select, see
SelectStatement
- Query Insert, see
InsertStatement
- Query Update, see
UpdateStatement
- Query Delete, see
DeleteStatement
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::any
orCondition::all
: a set of disjunctive or conjunctive conditions. - Condition
Holder - Cycle
- For recursive WithQuery WithClauses the CYCLE sql clause can be specified to avoid creating an infinite traversals that loops on graph cycles indefinitely. You specify an expression that identifies a node in the graph and that will be used to determine during the iteration of the execution of the query when appending of new values whether the new values are distinct new nodes or are already visited and therefore they should be added again into the result.
- 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
- Shorthand for constructing any table query
- Returning
- Shorthand for constructing
ReturningClause
- Search
- For recursive WithQuery WithClauses the traversing order can be specified in some databases that support this functionality.
- Select
Expr - Select expression used 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
Expression - Represents anything that can be passed to an
Condition::any
orCondition::all
’sCondition::add
method. - 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
Target - Represents ON CONFLICT (upsert) targets
- OnConflict
Update - Represents strategies to update column in ON CONFLICT (upsert) actions
- Query
Statement - All available types of table query
- Returning
Clause - RETURNING clause.
- Search
Order - For recursive WithQuery WithClauses the traversing order can be specified in some databases that support this functionality.
- Select
Distinct - List of distinct keywords that can be used in select statement
- SubQuery
Statement - 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 - Ordered
Statement - Over
Statement - Query
Statement Builder - Query
Statement Writer