[][src]Struct postgres_parser::nodes::CreateStmt

pub struct CreateStmt {
    pub relation: Option<Box<RangeVar>>,
    pub tableElts: Option<Vec<Node>>,
    pub inhRelations: Option<Vec<Node>>,
    pub partbound: Option<Box<PartitionBoundSpec>>,
    pub partspec: Option<Box<PartitionSpec>>,
    pub ofTypename: Option<Box<TypeName>>,
    pub constraints: Option<Vec<Node>>,
    pub options: Option<Vec<Node>>,
    pub oncommit: OnCommitAction,
    pub tablespacename: Option<String>,
    pub accessMethod: Option<String>,
    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

relation: Option<Box<RangeVar>>tableElts: Option<Vec<Node>>inhRelations: Option<Vec<Node>>partbound: Option<Box<PartitionBoundSpec>>partspec: Option<Box<PartitionSpec>>ofTypename: Option<Box<TypeName>>constraints: Option<Vec<Node>>options: Option<Vec<Node>>oncommit: OnCommitActiontablespacename: Option<String>accessMethod: Option<String>if_not_exists: bool

Trait Implementations

impl Debug for CreateStmt[src]

impl<'de> Deserialize<'de> for CreateStmt[src]

impl Eq for CreateStmt[src]

impl PartialEq<CreateStmt> for CreateStmt[src]

impl Serialize 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.