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

Method resolve_item

src/sql/src/plan/statement.rs:781–792  ·  view source on GitHub ↗
(&self, name: RawItemName)

Source from the content-addressed store, hash-verified

779 }
780
781 pub fn resolve_item(&self, name: RawItemName) -> Result<&dyn CatalogItem, PlanError> {
782 match name {
783 RawItemName::Name(name) => {
784 let name = normalize::unresolved_item_name(name)?;
785 Ok(self.catalog.resolve_item(&name)?)
786 }
787 RawItemName::Id(id, _, _) => {
788 let gid = id.parse()?;
789 Ok(self.catalog.get_item(&gid))
790 }
791 }
792 }
793
794 pub fn get_item(&self, id: &CatalogItemId) -> &dyn CatalogItem {
795 self.catalog.get_item(id)

Callers 9

purify_alter_sourceFunction · 0.45
resolve_item_or_typeMethod · 0.45
plan_create_sinkFunction · 0.45
plan_create_connectionFunction · 0.45
plan_alter_connectionFunction · 0.45
resolve_item_or_typeFunction · 0.45

Calls 3

unresolved_item_nameFunction · 0.85
parseMethod · 0.45
get_itemMethod · 0.45

Tested by

no test coverage detected