pub struct CreateViewStatement {
pub name: String,
pub or_replace: bool,
pub if_not_exists: bool,
pub temporary: bool,
pub columns: Vec<String>,
pub body: SelectStatement,
}Expand description
v7.17.0 Phase 1.2 — CREATE VIEW AST node.
Fields§
§name: String§or_replace: bool§if_not_exists: bool§temporary: bool§columns: Vec<String>Optional (col, col, …) rename list. When non-empty,
these override the body’s projected column names per-
position at SELECT-from-view time.
body: SelectStatementUnderlying SELECT. Re-parsed lazily at SELECT-from-view time to materialise the view as a synthetic CTE.
Trait Implementations§
Source§impl Clone for CreateViewStatement
impl Clone for CreateViewStatement
Source§fn clone(&self) -> CreateViewStatement
fn clone(&self) -> CreateViewStatement
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 CreateViewStatement
impl Debug for CreateViewStatement
Source§impl Display for CreateViewStatement
impl Display for CreateViewStatement
Source§impl PartialEq for CreateViewStatement
impl PartialEq for CreateViewStatement
Source§fn eq(&self, other: &CreateViewStatement) -> bool
fn eq(&self, other: &CreateViewStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateViewStatement
Auto Trait Implementations§
impl Freeze for CreateViewStatement
impl RefUnwindSafe for CreateViewStatement
impl Send for CreateViewStatement
impl Sync for CreateViewStatement
impl Unpin for CreateViewStatement
impl UnsafeUnpin for CreateViewStatement
impl UnwindSafe for CreateViewStatement
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