pub struct CreateMaterializedViewStatement {
pub name: String,
pub if_not_exists: bool,
pub columns: Vec<String>,
pub body: SelectStatement,
pub with_data: bool,
}Expand description
v7.17.0 Phase 1.3 — CREATE MATERIALIZED VIEW AST node.
Fields§
§name: String§if_not_exists: bool§columns: Vec<String>Optional (col, col, …) rename list. Applies to the
backing table at CREATE / REFRESH time.
body: SelectStatementUnderlying SELECT. Re-parsed at REFRESH time to rebuild the cached rows.
with_data: boolWITH DATA (default) = materialise the rows at CREATE
time. WITH NO DATA = create an empty backing table;
callers must REFRESH before SELECT returns rows.
Trait Implementations§
Source§impl Clone for CreateMaterializedViewStatement
impl Clone for CreateMaterializedViewStatement
Source§fn clone(&self) -> CreateMaterializedViewStatement
fn clone(&self) -> CreateMaterializedViewStatement
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 PartialEq for CreateMaterializedViewStatement
impl PartialEq for CreateMaterializedViewStatement
Source§fn eq(&self, other: &CreateMaterializedViewStatement) -> bool
fn eq(&self, other: &CreateMaterializedViewStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateMaterializedViewStatement
Auto Trait Implementations§
impl Freeze for CreateMaterializedViewStatement
impl RefUnwindSafe for CreateMaterializedViewStatement
impl Send for CreateMaterializedViewStatement
impl Sync for CreateMaterializedViewStatement
impl Unpin for CreateMaterializedViewStatement
impl UnsafeUnpin for CreateMaterializedViewStatement
impl UnwindSafe for CreateMaterializedViewStatement
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