pub struct CreateViewQuery {
pub name: String,
pub query: Box<QueryExpr>,
pub materialized: bool,
pub if_not_exists: bool,
pub or_replace: bool,
pub refresh_every_ms: Option<u64>,
pub retention_duration_ms: Option<u64>,
}Fields§
§name: String§query: Box<QueryExpr>Parsed SELECT ... body. Stored as a boxed QueryExpr so the
runtime can substitute the tree directly when a query references
this view (no re-parsing per read).
materialized: bool§if_not_exists: bool§or_replace: boolCREATE OR REPLACE VIEW — overwrites any existing definition.
refresh_every_ms: Option<u64>REFRESH EVERY <duration> clause — only valid on materialized
views. When set, a background scheduler ticks the view at this
cadence. None means refresh-on-demand only (slice 9 behaviour).
Issue #583 slice 10.
retention_duration_ms: Option<u64>WITH RETENTION <duration> clause — only valid on materialized
views (issue #584 slice 12). Opts the view’s backing storage
into a retention policy independent of the source. Persisted on
the view definition; the physical sweep is applied to the
MV’s backing rows once slice-9’s row-storage follow-up lands.
None means the view is unaffected by source retention.
Trait Implementations§
Source§impl Clone for CreateViewQuery
impl Clone for CreateViewQuery
Source§fn clone(&self) -> CreateViewQuery
fn clone(&self) -> CreateViewQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CreateViewQuery
impl RefUnwindSafe for CreateViewQuery
impl Send for CreateViewQuery
impl Sync for CreateViewQuery
impl Unpin for CreateViewQuery
impl UnsafeUnpin for CreateViewQuery
impl UnwindSafe for CreateViewQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request