pub struct CreateMaterializedView {
pub if_not_exists: bool,
pub name: FQName,
pub columns: Vec<Identifier>,
pub table: FQName,
pub where_clause: Vec<RelationElement>,
pub key: PrimaryKey,
pub with_clause: Vec<WithItem>,
}
Expand description
the data to create a materialized view
Fields§
§if_not_exists: bool
only create if it does not exist.
name: FQName
the name of the materialized view.
columns: Vec<Identifier>
the columns in the view.
table: FQName
the table to extract the view from.
where_clause: Vec<RelationElement>
the where clause to select. Note: all elements of the primary key must be listed
in the where clause as column ISNOT NULL
key: PrimaryKey
the primary key for the view
with_clause: Vec<WithItem>
the with options.
Trait Implementations§
Source§impl Clone for CreateMaterializedView
impl Clone for CreateMaterializedView
Source§fn clone(&self) -> CreateMaterializedView
fn clone(&self) -> CreateMaterializedView
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 CreateMaterializedView
impl Debug for CreateMaterializedView
Source§impl Display for CreateMaterializedView
impl Display for CreateMaterializedView
Source§impl PartialEq for CreateMaterializedView
impl PartialEq for CreateMaterializedView
impl StructuralPartialEq for CreateMaterializedView
Auto Trait Implementations§
impl Freeze for CreateMaterializedView
impl RefUnwindSafe for CreateMaterializedView
impl Send for CreateMaterializedView
impl Sync for CreateMaterializedView
impl Unpin for CreateMaterializedView
impl UnwindSafe for CreateMaterializedView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more