pub struct StoredView {
pub security: BoundTableSecurity,
pub definition: StoredViewDefinition,
}Expand description
One bound view query together with the fixed public column names captured when the view was created. None exists only while the catalog-opening migration reads formats written before column metadata was persisted.
Fields§
§security: BoundTableSecuritySecurity is loaded independently from the durable catalog row.
definition: StoredViewDefinitionImplementations§
Source§impl StoredView
impl StoredView
pub fn security(&self) -> BoundTableSecurity
pub fn set_security(&mut self, security: BoundTableSecurity)
pub fn security_invoker(&self) -> bool
Source§impl StoredView
impl StoredView
pub fn rewrite_definition(&self) -> ViewRewriteDefinition
pub fn row_schema( &self, routines: &dyn RoutineResolution, catalog: Arc<dyn AnalysisCatalog>, resolution: RelationNameResolution, ) -> Result<RowSchema, SQLError>
Methods from Deref<Target = StoredViewDefinition>§
pub fn rewrite_definition_ref(&self) -> ViewRewriteDefinitionRef<'_>
Sourcepub fn restore_materialized_collations(
&mut self,
query_schema: &RowSchema,
) -> Result<(), SQLError>
pub fn restore_materialized_collations( &mut self, query_schema: &RowSchema, ) -> Result<(), SQLError>
Initial-open migration recovers missing collations from the stored query without changing its fixed column types or values.
pub fn materialized_schema(&self) -> Result<RowSchema, SQLError>
Sourcepub fn relation_oids(&self) -> RelationCatalogOids
pub fn relation_oids(&self) -> RelationCatalogOids
The view’s public OIDs: the recorded ones, or those its identity derives.
Trait Implementations§
Source§impl Clone for StoredView
impl Clone for StoredView
Source§fn clone(&self) -> StoredView
fn clone(&self) -> StoredView
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 Debug for StoredView
impl Debug for StoredView
Source§impl Deref for StoredView
impl Deref for StoredView
Source§type Target = StoredViewDefinition
type Target = StoredViewDefinition
The resulting type after dereferencing.
Source§impl DerefMut for StoredView
impl DerefMut for StoredView
Source§impl Serialize for StoredView
impl Serialize for StoredView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StoredView
impl !UnwindSafe for StoredView
impl Freeze for StoredView
impl Send for StoredView
impl Sync for StoredView
impl Unpin for StoredView
impl UnsafeUnpin for StoredView
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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