Struct sql_parser::ast::Select [−][src]
pub struct Select<T: AstInfo> {
pub distinct: Option<Distinct<T>>,
pub projection: Vec<SelectItem<T>>,
pub from: Vec<TableWithJoins<T>>,
pub selection: Option<Expr<T>>,
pub group_by: Vec<Expr<T>>,
pub having: Option<Expr<T>>,
pub options: Vec<SqlOption<T>>,
}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: Option<Distinct<T>>projection: Vec<SelectItem<T>>projection expressions
from: Vec<TableWithJoins<T>>FROM
selection: Option<Expr<T>>WHERE
group_by: Vec<Expr<T>>GROUP BY
having: Option<Expr<T>>HAVING
options: Vec<SqlOption<T>>OPTION
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Select<T> where
<T as AstInfo>::Id: RefUnwindSafe,
<T as AstInfo>::ObjectName: RefUnwindSafe,
impl<T> Unpin for Select<T> where
<T as AstInfo>::ObjectName: Unpin,
impl<T> UnwindSafe for Select<T> where
<T as AstInfo>::Id: UnwindSafe,
<T as AstInfo>::ObjectName: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}) and returns it.
Compare self to key and return true if they are equal.
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more