Returns a string indicating the type of this catalog entry.
(&self)
| 1715 | impl 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> + '_ { |
no outgoing calls