[][src]Struct postgres_parser::sys::SelectStmt

#[repr(C)]pub struct SelectStmt {
    pub type_: NodeTag,
    pub distinctClause: *mut List,
    pub intoClause: *mut IntoClause,
    pub targetList: *mut List,
    pub fromClause: *mut List,
    pub whereClause: *mut Node,
    pub groupClause: *mut List,
    pub havingClause: *mut Node,
    pub windowClause: *mut List,
    pub valuesLists: *mut List,
    pub sortClause: *mut List,
    pub limitOffset: *mut Node,
    pub limitCount: *mut Node,
    pub lockingClause: *mut List,
    pub withClause: *mut WithClause,
    pub op: SetOperation,
    pub all: bool,
    pub larg: *mut SelectStmt,
    pub rarg: *mut SelectStmt,
}

Fields

type_: NodeTagdistinctClause: *mut List

These fields are used only in "leaf" SelectStmts.

intoClause: *mut IntoClause

NULL, list of DISTINCT ON exprs, or lcons(NIL,NIL) for all (SELECT DISTINCT)

targetList: *mut List

target for SELECT INTO

fromClause: *mut List

the target list (of ResTarget)

whereClause: *mut Node

the FROM clause

groupClause: *mut List

WHERE qualification

havingClause: *mut Node

GROUP BY clauses

windowClause: *mut List

HAVING conditionalexpression

valuesLists: *mut List

In a "leaf" node representing a VALUES list, the above fields are all null, and instead this field is set. Note that the elements of the sublists are just expressions, without ResTarget decoration. Also note that a list element can be DEFAULT (represented as a SetToDefault node), regardless of the context of the VALUES list. It's up to parse analysis to reject that where not valid.

sortClause: *mut List

These fields are used in both "leaf" SelectStmts and upperlevel SelectStmts.

limitOffset: *mut Node

sort clause (a list of SortBy's)

limitCount: *mut NodelockingClause: *mut ListwithClause: *mut WithClause

FOR UPDATE (list of LockingClause's)

op: SetOperation

These fields are used only in upperlevel SelectStmts.

all: bool

type of set op

larg: *mut SelectStmt

ALL specified?

rarg: *mut SelectStmt

left child

Trait Implementations

impl Debug for SelectStmt[src]

impl Default for SelectStmt[src]

impl Eq for SelectStmt[src]

impl Hash for SelectStmt[src]

impl PartialEq<SelectStmt> for SelectStmt[src]

impl StructuralEq for SelectStmt[src]

impl StructuralPartialEq for SelectStmt[src]

Auto Trait Implementations

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, 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.