[][src]Enum sql_ast::ast::AlterTableOperation

pub enum AlterTableOperation {
    AddColumn(ColumnDef),
    AddConstraint(TableConstraint),
    DropColumn {
        column: Ident,
        if_exists: bool,
        cascade: bool,
    },
    DropConstraint {
        name: Ident,
    },
}

An ALTER TABLE (Statement::AlterTable) operation

Variants

AddColumn(ColumnDef)
AddConstraint(TableConstraint)

ADD <table_constraint>

DropColumn

Fields of DropColumn

column: Identif_exists: boolcascade: bool
DropConstraint

TODO: implement DROP CONSTRAINT <name>

Fields of DropConstraint

name: Ident

Trait Implementations

impl Clone for AlterTableOperation[src]

impl Debug for AlterTableOperation[src]

impl Display for AlterTableOperation[src]

impl Eq for AlterTableOperation[src]

impl Hash for AlterTableOperation[src]

impl PartialEq<AlterTableOperation> for AlterTableOperation[src]

impl StructuralEq for AlterTableOperation[src]

impl StructuralPartialEq for AlterTableOperation[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.