[][src]Struct postgres_parser::sys::CreateStmt

#[repr(C)]pub struct CreateStmt {
    pub type_: NodeTag,
    pub relation: *mut RangeVar,
    pub tableElts: *mut List,
    pub inhRelations: *mut List,
    pub partbound: *mut PartitionBoundSpec,
    pub partspec: *mut PartitionSpec,
    pub ofTypename: *mut TypeName,
    pub constraints: *mut List,
    pub options: *mut List,
    pub oncommit: OnCommitAction,
    pub tablespacename: *mut c_char,
    pub accessMethod: *mut c_char,
    pub if_not_exists: bool,
}

Create Table Statement

NOTE: in the raw gram.y output, ColumnDef and Constraint nodes are intermixed in tableElts, and constraints is NIL. After parse analysis, tableElts contains just ColumnDefs, and constraints contains just Constraint nodes (in fact, only CONSTR_CHECK nodes, in the present implementation).

Fields

type_: NodeTagrelation: *mut RangeVartableElts: *mut List

relation to create

inhRelations: *mut List

column definitions (list of ColumnDef)

partbound: *mut PartitionBoundSpec

relations to inherit from (list of inhRelation)

partspec: *mut PartitionSpec

FOR VALUES clause

ofTypename: *mut TypeName

PARTITION BY clause

constraints: *mut List

OF typename

options: *mut List

constraints (list of Constraint nodes)

oncommit: OnCommitAction

options from WITH clause

tablespacename: *mut c_char

what do we do at COMMIT?

accessMethod: *mut c_char

table space to use, or NULL

if_not_exists: bool

table access method

Trait Implementations

impl Debug for CreateStmt[src]

impl Default for CreateStmt[src]

impl Eq for CreateStmt[src]

impl Hash for CreateStmt[src]

impl PartialEq<CreateStmt> for CreateStmt[src]

impl StructuralEq for CreateStmt[src]

impl StructuralPartialEq for CreateStmt[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.