Enum sql_ast::ast::AlterTableOperation [−][src]
pub enum AlterTableOperation {
AddColumn(ColumnDef),
AddConstraint(TableConstraint),
DropColumn {
column: Ident,
if_exists: bool,
cascade: bool,
},
DropConstraint {
name: Ident,
},
}Expand description
An ALTER TABLE (Statement::AlterTable) operation
Variants
AddColumn(ColumnDef)AddConstraint(TableConstraint)ADD <table_constraint>
TODO: implement DROP CONSTRAINT <name>
Show fields
Fields of DropConstraint
name: IdentTrait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for AlterTableOperationimpl Send for AlterTableOperationimpl Sync for AlterTableOperationimpl Unpin for AlterTableOperationimpl UnwindSafe for AlterTableOperationBlanket Implementations
Mutably borrows from an owned value. Read more