pub struct Select {
pub distinct: Distinct,
pub targets: Slice,
pub from: Slice,
pub filter: ExprRef,
pub group_by: Slice,
pub group_by_all: bool,
pub having: ExprRef,
}Expand description
One select block.
Every optional expression is NONE when it is absent rather than an Option<u32>, which keeps
the struct at forty bytes and keeps the absent case spelled the same way it is spelled in the
parse tree arena.
Fields§
§distinct: DistinctThe DISTINCT clause.
targets: SliceThe target list, as a run of Target.
from: SliceThe FROM list, as a run of SourceRef. Several entries mean a cross product.
filter: ExprRefThe WHERE expression, or NONE.
group_by: SliceThe GROUP BY list, as a run of ExprRef.
group_by_all: boolWhether the clause was GROUP BY ALL.
having: ExprRefThe HAVING expression, or NONE.
Implementations§
Trait Implementations§
impl Copy for Select
impl Eq for Select
impl StructuralPartialEq for Select
Auto Trait Implementations§
impl Freeze for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnsafeUnpin for Select
impl UnwindSafe for Select
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