Enum sql_parser::ast::defs::query::SetExpr [−][src]
pub enum SetExpr<T: AstInfo> {
Select(Box<Select<T>>),
Query(Box<Query<T>>),
SetOperation {
op: SetOperator,
all: bool,
left: Box<SetExpr<T>>,
right: Box<SetExpr<T>>,
},
Values(Values<T>),
}
Expand description
A node in a tree, representing a “query body” expression, roughly:
SELECT ... [ {UNION|EXCEPT|INTERSECT} SELECT ...]
Variants
Select(Box<Select<T>>)
Restricted SELECT .. FROM .. HAVING (no ORDER BY or set operations)
Query(Box<Query<T>>)
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<T>)
Tuple Fields
0: Values<T>
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for SetExpr<T> where
<T as AstInfo>::Id: RefUnwindSafe,
<T as AstInfo>::ObjectName: RefUnwindSafe,
impl<T> Unpin for SetExpr<T> where
<T as AstInfo>::ObjectName: Unpin,
impl<T> UnwindSafe for SetExpr<T> where
<T as AstInfo>::Id: UnwindSafe,
<T as AstInfo>::ObjectName: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more