[][src]Struct postgres_parser::nodes::CreateTableAsStmt

pub struct CreateTableAsStmt {
    pub query: Option<Box<Node>>,
    pub into: Option<Box<IntoClause>>,
    pub relkind: ObjectType,
    pub is_select_into: bool,
    pub if_not_exists: bool,
}

CREATE TABLE AS Statement (a/k/a SELECT INTO)

A query written as CREATE TABLE AS will produce this node type natively. A query written as SELECT ... INTO will be transformed to this form during parse analysis. A query written as CREATE MATERIALIZED view will produce this node type, during parse analysis, since it needs all the same data.

The "query" field is handled similarly to EXPLAIN, though note that it can be a SELECT or an EXECUTE, but not other DML statements.

Fields

query: Option<Box<Node>>into: Option<Box<IntoClause>>relkind: ObjectTypeis_select_into: boolif_not_exists: bool

Trait Implementations

impl Debug for CreateTableAsStmt[src]

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

impl Eq for CreateTableAsStmt[src]

impl PartialEq<CreateTableAsStmt> for CreateTableAsStmt[src]

impl Serialize for CreateTableAsStmt[src]

impl StructuralEq for CreateTableAsStmt[src]

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