pub struct MaterializedViewDescriptor {
pub name: String,
pub source_sql: String,
pub source_collections: Vec<String>,
pub refresh_every_ms: Option<u64>,
pub retention_duration_ms: Option<u64>,
}Expand description
Persisted shape of a single CREATE MATERIALIZED VIEW.
The descriptor stores the original SQL source so the body AST can be recovered by re-parsing at boot — this avoids embedding a version-dependent AST serialization in the on-disk catalog, and keeps the rehydrate path symmetric with the user-facing CREATE.
Fields§
§name: StringView name as declared in CREATE MATERIALIZED VIEW <name>.
source_sql: StringVerbatim SQL source of the CREATE MATERIALIZED VIEW
statement. The rehydrate path re-parses this string to recover
the body AST.
source_collections: Vec<String>Source collections referenced by the view body — populated
from collect_table_refs(&q.query) at creation time.
refresh_every_ms: Option<u64>REFRESH EVERY <duration> clause in milliseconds, or None
for refresh-on-demand views.
retention_duration_ms: Option<u64>WITH RETENTION <duration> clause in milliseconds, or None
when no retention policy was declared on the view.
Trait Implementations§
Source§impl Clone for MaterializedViewDescriptor
impl Clone for MaterializedViewDescriptor
Source§fn clone(&self) -> MaterializedViewDescriptor
fn clone(&self) -> MaterializedViewDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MaterializedViewDescriptor
impl Debug for MaterializedViewDescriptor
Source§impl PartialEq for MaterializedViewDescriptor
impl PartialEq for MaterializedViewDescriptor
Source§fn eq(&self, other: &MaterializedViewDescriptor) -> bool
fn eq(&self, other: &MaterializedViewDescriptor) -> bool
self and other values to be equal, and is used by ==.impl Eq for MaterializedViewDescriptor
impl StructuralPartialEq for MaterializedViewDescriptor
Auto Trait Implementations§
impl Freeze for MaterializedViewDescriptor
impl RefUnwindSafe for MaterializedViewDescriptor
impl Send for MaterializedViewDescriptor
impl Sync for MaterializedViewDescriptor
impl Unpin for MaterializedViewDescriptor
impl UnsafeUnpin for MaterializedViewDescriptor
impl UnwindSafe for MaterializedViewDescriptor
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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