pub enum AlterViewOperation {
As {
columns: Vec<Ident>,
query: Box<Query>,
with_options: Vec<SqlOption>,
},
AlterColumn {
column_name: Ident,
op: AlterColumnOperation,
},
OwnerTo(Owner),
RenameColumn {
old_column_name: Ident,
new_column_name: Ident,
},
RenameTo {
new_name: ObjectName,
},
SetSchema {
schema_name: ObjectName,
},
SetOptions {
options: Vec<SqlOption>,
},
ResetOptions {
options: Vec<Ident>,
},
}Expand description
Operations supported by ALTER VIEW.
See PostgreSQL
Variants§
As
Fields
AlterColumn
ALTER VIEW name ALTER [ COLUMN ] column_name { SET DEFAULT expression | DROP DEFAULT }Fields
OwnerTo(Owner)
ALTER VIEW name OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }RenameColumn
ALTER VIEW name RENAME [ COLUMN ] column_name TO new_column_nameRenameTo
ALTER VIEW name RENAME TO new_nameFields
§
new_name: ObjectNameNew view name.
SetSchema
ALTER VIEW name SET SCHEMA new_schemaFields
§
schema_name: ObjectNameTarget schema name.
SetOptions
ALTER VIEW name SET ( view_option_name [ = view_option_value ] [, ... ] )Fields
§
options: Vec<SqlOption>Options to set, SqlOption::Ident when no value is given.
ResetOptions
ALTER VIEW name RESET ( view_option_name [, ... ] )Trait Implementations§
Source§impl Clone for AlterViewOperation
impl Clone for AlterViewOperation
Source§fn clone(&self) -> AlterViewOperation
fn clone(&self) -> AlterViewOperation
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 AlterViewOperation
impl Debug for AlterViewOperation
Source§impl Display for AlterViewOperation
impl Display for AlterViewOperation
impl Eq for AlterViewOperation
Source§impl Hash for AlterViewOperation
impl Hash for AlterViewOperation
Source§impl Ord for AlterViewOperation
impl Ord for AlterViewOperation
Source§fn cmp(&self, other: &AlterViewOperation) -> Ordering
fn cmp(&self, other: &AlterViewOperation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AlterViewOperation
impl PartialEq for AlterViewOperation
Source§impl PartialOrd for AlterViewOperation
impl PartialOrd for AlterViewOperation
Source§impl Spanned for AlterViewOperation
§partial span
Missing spans:
impl Spanned for AlterViewOperation
§partial span
Missing spans:
impl StructuralPartialEq for AlterViewOperation
Auto Trait Implementations§
impl Freeze for AlterViewOperation
impl RefUnwindSafe for AlterViewOperation
impl Send for AlterViewOperation
impl Sync for AlterViewOperation
impl Unpin for AlterViewOperation
impl UnsafeUnpin for AlterViewOperation
impl UnwindSafe for AlterViewOperation
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