pub struct Select {
pub from: Vec<RelNamed>,
pub selection: Option<Expr>,
pub group_by: Vec<Expr>,
pub distinct: Option<Distinct>,
pub projection: Vec<SelectItem>,
pub having: Option<Expr>,
}Expand description
A restricted variant of SELECT (without CTEs/ORDER BY), which may
appear either as the only body item of a Query, or as an operand
to a set operation like UNION.
Fields§
§from: Vec<RelNamed>FROM
selection: Option<Expr>WHERE
group_by: Vec<Expr>GROUP BY
distinct: Option<Distinct>SELECT [DISTINCT] ...
projection: Vec<SelectItem>projection expressions
having: Option<Expr>HAVING
Trait Implementations§
Source§impl Ord for Select
impl Ord for Select
Source§impl PartialOrd for Select
impl PartialOrd 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