pub enum SetExpr {
Select(Box<Select>),
Query(Box<Query>),
SetOperation {
op: SetOperator,
set_quantifier: SetQuantifier,
left: Box<SetExpr>,
right: Box<SetExpr>,
},
Values(Values),
Insert(Statement),
Update(Statement),
Delete(Statement),
Merge(Statement),
Table(Box<Table>),
}Expand description
A node in a tree, representing a “query body” expression, roughly:
SELECT ... [ {UNION|EXCEPT|INTERSECT} SELECT ...]
Restricted SELECT .. FROM .. HAVING (no ORDER BY or set operations)
Parenthesized SELECT subquery, which may include more set operations in its body and an optional ORDER BY / LIMIT.
UNION/EXCEPT/INTERSECT of two queries A set operation combining two query expressions.
Fields
The set operator used (e.g. UNION, EXCEPT).
Optional quantifier (ALL, DISTINCT, etc.).
Left operand of the set operation.
Right operand of the set operation.
VALUES (...)
INSERT statement
UPDATE statement
DELETE statement
MERGE statement
TABLE command