[][src]Struct sqlparser::ast::Select

pub struct Select {
    pub distinct: bool,
    pub top: Option<Top>,
    pub projection: Vec<SelectItem>,
    pub from: Vec<TableWithJoins>,
    pub selection: Option<Expr>,
    pub group_by: Vec<Expr>,
    pub having: Option<Expr>,
}

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: booltop: Option<Top>

MSSQL syntax: TOP (<N>) [ PERCENT ] [ WITH TIES ]

projection: Vec<SelectItem>

projection expressions

from: Vec<TableWithJoins>

FROM

selection: Option<Expr>

WHERE

group_by: Vec<Expr>

GROUP BY

having: Option<Expr>

HAVING

Trait Implementations

impl Clone for Select[src]

impl Debug for Select[src]

impl Display for Select[src]

impl Eq for Select[src]

impl Hash for Select[src]

impl PartialEq<Select> for Select[src]

impl StructuralEq for Select[src]

impl StructuralPartialEq for Select[src]

Auto Trait Implementations

impl RefUnwindSafe for Select

impl Send for Select

impl Sync for Select

impl Unpin for Select

impl UnwindSafe for Select

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.