[][src]Struct postgres_parser::sys::CreateTableAsStmt

#[repr(C)]pub struct CreateTableAsStmt {
    pub type_: NodeTag,
    pub query: *mut Node,
    pub into: *mut 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

type_: NodeTagquery: *mut Nodeinto: *mut IntoClause

the query (see comments above)

relkind: ObjectType

destination table

is_select_into: bool

OBJECT_TABLE or OBJECT_MATVIEW

if_not_exists: bool

it was written as SELECT INTO

Trait Implementations

impl Debug for CreateTableAsStmt[src]

impl Default for CreateTableAsStmt[src]

impl Eq for CreateTableAsStmt[src]

impl Hash for CreateTableAsStmt[src]

impl PartialEq<CreateTableAsStmt> 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> 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.