pub enum AlterTableActionFact {
Show 21 variants
AddColumn {
name: String,
ty: Option<String>,
if_not_exists: bool,
not_null: bool,
default: Option<ExprIr>,
},
DropColumn {
name: String,
if_exists: bool,
},
RenameColumn {
from: Ident,
to: Ident,
},
RenameTo {
new_name: Ident,
},
AddForeignKey {
constraint_name: Option<String>,
references: QualifiedName,
from_columns: Vec<String>,
to_columns: Vec<String>,
not_valid: bool,
},
AlterConstraint {
name: String,
deferrable: bool,
},
RenameConstraint {
old_name: String,
new_name: String,
},
DropConstraint {
name: String,
},
AddCheckConstraint {
constraint_name: Option<String>,
not_valid: bool,
},
AddUniqueConstraint,
AddPrimaryKeyConstraint,
AddExcludeConstraint,
SetNotNull {
column: String,
},
DropNotNull {
column: String,
},
SetType {
column: String,
ty: String,
has_using: bool,
},
SetDefault {
column: String,
default: Option<ExprIr>,
},
ValidateConstraint {
constraint_name: String,
},
AttachPartition {
child: QualifiedName,
},
DetachPartition {
child: QualifiedName,
},
SetStorage {
column: String,
},
SetAccessMethod,
}Variants§
AddColumn
DropColumn
RenameColumn
RenameTo
AddForeignKey
Fields
§
references: QualifiedNameAlterConstraint
RenameConstraint
DropConstraint
AddCheckConstraint
AddUniqueConstraint
AddPrimaryKeyConstraint
AddExcludeConstraint
SetNotNull
DropNotNull
SetType
SetDefault
ValidateConstraint
AttachPartition
Fields
§
child: QualifiedNameDetachPartition
Fields
§
child: QualifiedNameSetStorage
SetAccessMethod
Trait Implementations§
Source§impl Clone for AlterTableActionFact
impl Clone for AlterTableActionFact
Source§fn clone(&self) -> AlterTableActionFact
fn clone(&self) -> AlterTableActionFact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlterTableActionFact
impl Debug for AlterTableActionFact
Source§impl PartialEq for AlterTableActionFact
impl PartialEq for AlterTableActionFact
Source§fn eq(&self, other: &AlterTableActionFact) -> bool
fn eq(&self, other: &AlterTableActionFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlterTableActionFact
Auto Trait Implementations§
impl Freeze for AlterTableActionFact
impl RefUnwindSafe for AlterTableActionFact
impl Send for AlterTableActionFact
impl Sync for AlterTableActionFact
impl Unpin for AlterTableActionFact
impl UnsafeUnpin for AlterTableActionFact
impl UnwindSafe for AlterTableActionFact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more