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<'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 PartialEq<SetExpr> for SetExpr
impl PartialEq<SetExpr> for SetExpr
source§impl PartialOrd<SetExpr> for SetExpr
impl PartialOrd<SetExpr> 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 more