pub enum AlterAction {
AddColumn {
name: Identifier,
data_type: Option<Arc<str>>,
span: Range<usize>,
},
DropColumn {
name: Identifier,
span: Range<usize>,
},
RenameTo {
new_name: Identifier,
span: Range<usize>,
},
}Expand description
Represents an action in an ALTER TABLE statement.
Variants§
AddColumn
ADD COLUMN action.
Fields
§
name: IdentifierThe name of the column to add.
DropColumn
DROP COLUMN action.
Fields
§
name: IdentifierThe name of the column to drop.
RenameTo
RENAME TO action.
Fields
§
new_name: IdentifierThe new name for the table.
Trait Implementations§
Source§impl AsDocument for AlterAction
Available on crate feature oak-pretty-print only.
impl AsDocument for AlterAction
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl Clone for AlterAction
impl Clone for AlterAction
Source§fn clone(&self) -> AlterAction
fn clone(&self) -> AlterAction
Returns a duplicate of the value. Read more
1.0.0 · 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 AlterAction
impl Debug for AlterAction
Source§impl<'de> Deserialize<'de> for AlterAction
impl<'de> Deserialize<'de> for AlterAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AlterAction
impl RefUnwindSafe for AlterAction
impl Send for AlterAction
impl Sync for AlterAction
impl Unpin for AlterAction
impl UnsafeUnpin for AlterAction
impl UnwindSafe for AlterAction
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