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
Modulesยง
- case ๐
- condition ๐
- delete ๐
- insert ๐
- on_
conflict ๐ - ordered ๐
- returning ๐
- select ๐
- traits ๐
- update ๐
- window ๐
- with ๐
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.
- 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
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 - A helper trait.
- Ordered
Statement - Over
Statement - Query
Statement Builder - Query
Statement Writer