Reports if the item has columns.
(&self)
| 2663 | |
| 2664 | /// Reports if the item has columns. |
| 2665 | pub fn has_columns(&self) -> bool { |
| 2666 | match self.item() { |
| 2667 | CatalogItem::Type(Type { details, .. }) => { |
| 2668 | matches!(details.typ, CatalogType::Record { .. }) |
| 2669 | } |
| 2670 | _ => self.relation_desc_latest().is_some(), |
| 2671 | } |
| 2672 | } |
| 2673 | |
| 2674 | /// Returns the [`mz_sql::func::Func`] associated with this `CatalogEntry`. |
| 2675 | pub fn func(&self) -> Result<&'static mz_sql::func::Func, SqlCatalogError> { |
no test coverage detected