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),
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
Values(Values)
Insert(Statement)
Table(Box<Table>)
Trait Implementations§
source§impl Ord for SetExpr
impl Ord for SetExpr
source§impl PartialEq for SetExpr
impl PartialEq for SetExpr
source§impl PartialOrd for SetExpr
impl PartialOrd for SetExpr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SetExpr
impl StructuralEq for SetExpr
impl StructuralPartialEq for SetExpr
Auto Trait Implementations§
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