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 ...]
Variants§
Select(Box<Select>)
Restricted SELECT .. FROM .. HAVING (no ORDER BY or set operations)
Query(Box<Query>)
Parenthesized SELECT subquery, which may include more set operations in its body and an optional ORDER BY / LIMIT.
SetOperation
UNION/EXCEPT/INTERSECT of two queries A set operation combining two query expressions.
Fields
§
op: SetOperatorThe set operator used (e.g. UNION, EXCEPT).
§
set_quantifier: SetQuantifierOptional quantifier (ALL, DISTINCT, etc.).
Values(Values)
VALUES (...)
Insert(Statement)
INSERT statement
Update(Statement)
UPDATE statement
Delete(Statement)
DELETE statement
Merge(Statement)
MERGE statement
Table(Box<Table>)
TABLE command
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SetExpr
impl<'de> Deserialize<'de> for SetExpr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for SetExpr
impl Ord for SetExpr
Source§impl PartialOrd for SetExpr
impl PartialOrd for SetExpr
Source§impl VisitMut for SetExpr
impl VisitMut for SetExpr
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for SetExpr
impl StructuralPartialEq for SetExpr
Auto Trait Implementations§
impl Freeze for SetExpr
impl RefUnwindSafe for SetExpr
impl Send for SetExpr
impl Sync for SetExpr
impl Unpin for SetExpr
impl UnwindSafe for SetExpr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more