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),
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)
Update(Statement)
Table(Box<Table>)
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
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl 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