pub enum SetExpr {
Select(Box<Select>),
Query(Box<Query>),
SetOperation {
op: SetOperator,
all: bool,
left: Box<SetExpr>,
right: Box<SetExpr>,
},
Values(Values),
Insert(Statement),
}
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)
Trait Implementations
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more