pub struct StoredView {
pub object_id: [u8; 16],
pub role_owner: String,
pub acl: Option<Vec<TableAclEntry>>,
pub column_acls: BTreeMap<String, Vec<TableAclEntry>>,
pub query: QueryPlan,
pub output_columns: Option<Vec<String>>,
pub persistence: RelationPersistence,
pub options: Vec<(String, String)>,
pub kind: StoredViewKind,
pub materialized_rows: Vec<ResultRow>,
pub materialized_column_types: Vec<Option<ColumnType>>,
pub populated: bool,
}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§
§object_id: [u8; 16]Stable logical relation identity. Renames and replacement preserve it; a zero value marks a legacy catalog row upgraded during initial open.
role_owner: StringDurable SQL-role owner loaded from the typed view catalog row. The query-definition JSON deliberately excludes ownership so catalog definition and authorization state cannot disagree.
acl: Option<Vec<TableAclEntry>>Durable relation-wide ACL loaded from the typed view catalog row.
column_acls: BTreeMap<String, Vec<TableAclEntry>>Durable per-column ACLs loaded from the typed view catalog row.
query: QueryPlan§output_columns: Option<Vec<String>>§persistence: RelationPersistence§options: Vec<(String, String)>§kind: StoredViewKind§materialized_rows: Vec<ResultRow>§materialized_column_types: Vec<Option<ColumnType>>§populated: boolImplementations§
Source§impl StoredView
impl StoredView
pub fn security(&self) -> TableSecurity
pub fn set_security(&mut self, security: TableSecurity)
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: CatalogReadView, resolution: RelationNameResolution, ) -> Result<RowSchema, SQLError>
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<'de> Deserialize<'de> for StoredView
impl<'de> Deserialize<'de> for StoredView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StoredView
impl RefUnwindSafe for StoredView
impl Send for StoredView
impl Sync for StoredView
impl Unpin for StoredView
impl UnsafeUnpin for StoredView
impl UnwindSafe 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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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