pub struct CreateMaterializedViewStatement {
pub name: String,
pub if_not_exists: bool,
pub columns: Vec<String>,
pub body: SelectStatement,
pub with_data: bool,
pub as_plain_table: bool,
pub temporary: 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.
as_plain_table: boolv7.38 (read01 P6.49) — when true this node came from
CREATE TABLE … AS <select> (CTAS) / SELECT … INTO, so the
executor creates a plain table and does NOT register it in the
materialized-view registry (no REFRESH semantics).
temporary: boolv7.39 (round 436) — CREATE TEMPORARY TABLE … AS <select>. Only
meaningful together with as_plain_table; the executor puts the
resulting table in the creating session’s namespace.
Trait Implementations§
Source§impl Clone for CreateMaterializedViewStatement
impl Clone for CreateMaterializedViewStatement
Source§fn clone(&self) -> CreateMaterializedViewStatement
fn clone(&self) -> CreateMaterializedViewStatement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more