pub enum AlterViewAction {
Rename(TableRef),
OwnerTo(Identifier),
SetSchema(Identifier),
SetAuthorization(String),
AlterColumn {
name: Identifier,
action: AlterColumnAction,
},
AsSelect(Box<Expression>),
SetTblproperties(Vec<(String, String)>),
UnsetTblproperties(Vec<String>),
}Expand description
Actions for ALTER VIEW
Variants§
Rename(TableRef)
Rename the view
OwnerTo(Identifier)
Change owner
SetSchema(Identifier)
Set schema
SetAuthorization(String)
Set authorization (Trino/Presto)
AlterColumn
Alter column
AsSelect(Box<Expression>)
Redefine view as query (SELECT, UNION, etc.)
SetTblproperties(Vec<(String, String)>)
Hive: SET TBLPROPERTIES (‘key’=‘value’, …)
UnsetTblproperties(Vec<String>)
Hive: UNSET TBLPROPERTIES (‘key1’, ‘key2’, …)
Trait Implementations§
Source§impl Clone for AlterViewAction
impl Clone for AlterViewAction
Source§fn clone(&self) -> AlterViewAction
fn clone(&self) -> AlterViewAction
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 AlterViewAction
impl Debug for AlterViewAction
Source§impl<'de> Deserialize<'de> for AlterViewAction
impl<'de> Deserialize<'de> for AlterViewAction
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
Source§impl PartialEq for AlterViewAction
impl PartialEq for AlterViewAction
Source§impl Serialize for AlterViewAction
impl Serialize for AlterViewAction
impl StructuralPartialEq for AlterViewAction
Auto Trait Implementations§
impl Freeze for AlterViewAction
impl RefUnwindSafe for AlterViewAction
impl Send for AlterViewAction
impl Sync for AlterViewAction
impl Unpin for AlterViewAction
impl UnwindSafe for AlterViewAction
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