Trait mz_sql::catalog::CatalogCollectionItem
source · pub trait CatalogCollectionItem:
CatalogItem
+ Send
+ Sync {
// Required methods
fn desc(
&self,
name: &FullItemName,
) -> Result<Cow<'_, RelationDesc>, CatalogError>;
fn global_id(&self) -> GlobalId;
}
Expand description
An item in a SessionCatalog
and the specific “collection”/pTVC that it
refers to.
Required Methods§
sourcefn desc(
&self,
name: &FullItemName,
) -> Result<Cow<'_, RelationDesc>, CatalogError>
fn desc( &self, name: &FullItemName, ) -> Result<Cow<'_, RelationDesc>, CatalogError>
Returns a description of the result set produced by the catalog item.
If the catalog item is not of a type that produces data (i.e., a sink or an index), it returns an error.