pub enum CompoundOp {
Union,
UnionAll,
Intersect,
Except,
}Expand description
A compound-operator — the four SQLite has, and no more.
From https://www.sqlite.org/syntax/compound-operator.html:
UNION | UNION ALL | INTERSECT | EXCEPTALL belongs to the operator here rather than being a separate flag, because
SQLite offers it on UNION alone: INTERSECT ALL and EXCEPT ALL are
rejected by SQLite’s own parser as well as by the engine. Folding it into the
enum is how “there is no INTERSECT ALL” is said in a way that cannot be
written by accident — the shape PostgreSQL needs, a SetOp plus an all flag,
would make it representable.
Variants§
Union
UNION — rows of either, duplicates removed.
UnionAll
UNION ALL — rows of either, duplicates kept.
Intersect
INTERSECT — rows of both.
Except
EXCEPT — rows of the left that are not in the right.
Implementations§
Trait Implementations§
Source§impl Clone for CompoundOp
impl Clone for CompoundOp
Source§fn clone(&self) -> CompoundOp
fn clone(&self) -> CompoundOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompoundOp
Source§impl Debug for CompoundOp
impl Debug for CompoundOp
impl Eq for CompoundOp
Source§impl PartialEq for CompoundOp
impl PartialEq for CompoundOp
impl StructuralPartialEq for CompoundOp
Auto Trait Implementations§
impl Freeze for CompoundOp
impl RefUnwindSafe for CompoundOp
impl Send for CompoundOp
impl Sync for CompoundOp
impl Unpin for CompoundOp
impl UnsafeUnpin for CompoundOp
impl UnwindSafe for CompoundOp
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