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§

source

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.

source

fn global_id(&self) -> GlobalId

The GlobalId for this item.

Implementors§