Struct sql_ast::ast::Select [−][src]
pub struct Select {
pub distinct: bool,
pub projection: Vec<SelectItem>,
pub from: Vec<TableWithJoins>,
pub selection: Option<Expr>,
pub group_by: Vec<Expr>,
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 an SQLQuery, or as an operand
to a set operation like UNION.
Fields
distinct: boolprojection: Vec<SelectItem>projection expressions
from: Vec<TableWithJoins>FROM
selection: Option<Expr>WHERE
group_by: Vec<Expr>GROUP BY
having: Option<Expr>HAVING
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Selectimpl UnwindSafe for SelectBlanket Implementations
Mutably borrows from an owned value. Read more