MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / typ

Method typ

src/catalog/src/memory/objects.rs:1717–1731  ·  view source on GitHub ↗

Returns a string indicating the type of this catalog entry.

(&self)

Source from the content-addressed store, hash-verified

1715impl CatalogItem {
1716 /// Returns a string indicating the type of this catalog entry.
1717 pub fn typ(&self) -> mz_sql::catalog::CatalogItemType {
1718 match self {
1719 CatalogItem::Table(_) => CatalogItemType::Table,
1720 CatalogItem::Source(_) => CatalogItemType::Source,
1721 CatalogItem::Log(_) => CatalogItemType::Source,
1722 CatalogItem::Sink(_) => CatalogItemType::Sink,
1723 CatalogItem::View(_) => CatalogItemType::View,
1724 CatalogItem::MaterializedView(_) => CatalogItemType::MaterializedView,
1725 CatalogItem::Index(_) => CatalogItemType::Index,
1726 CatalogItem::Type(_) => CatalogItemType::Type,
1727 CatalogItem::Func(_) => CatalogItemType::Func,
1728 CatalogItem::Secret(_) => CatalogItemType::Secret,
1729 CatalogItem::Connection(_) => CatalogItemType::Connection,
1730 }
1731 }
1732
1733 /// Returns the [`GlobalId`]s that reference this item, if any.
1734 pub fn global_ids(&self) -> impl Iterator<Item = GlobalId> + '_ {

Callers 11

index_byMethod · 0.45
import_persistMethod · 0.45
buildMethod · 0.45
check_sink_schemaMethod · 0.45
executeMethod · 0.45
fingerprintMethod · 0.45
item_typeMethod · 0.45
pk_litFunction · 0.45

Calls

no outgoing calls

Tested by 1