[][src]Struct squawk_parser::ast::CreateStmt

pub struct CreateStmt {
    pub relation: RelationKind,
    pub table_elts: Vec<TableElt>,
    pub inh_relations: Vec<Value>,
    pub partbound: Option<Value>,
    pub partspec: Option<Value>,
    pub of_typename: Option<Value>,
    pub constraints: Vec<Constraint>,
    pub options: Vec<Value>,
    pub oncommit: OnCommitAction,
    pub tablespacename: Option<String>,
    pub if_not_exists: bool,
}

Fields

relation: RelationKind

relation to create

table_elts: Vec<TableElt>

column definitions (list of ColumnDef)

inh_relations: Vec<Value>

relations to inherit from (list of inhRelation)

partbound: Option<Value>

FOR VALUES clause

partspec: Option<Value>

PARTITION BY clause

of_typename: Option<Value>

OF typename

constraints: Vec<Constraint>

constraints (list of Constraint nodes)

options: Vec<Value>

options from WITH clause

oncommit: OnCommitAction

what do we do at COMMIT?

tablespacename: Option<String>

table space to use, or NULL

if_not_exists: bool

just do nothing if it already exists?

Trait Implementations

impl Debug for CreateStmt[src]

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

impl Serialize 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.