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

Method humanize_column

src/repr/src/explain.rs:556–564  ·  view source on GitHub ↗
(&self, id: GlobalId, column: usize)

Source from the content-addressed store, hash-verified

554 }
555
556 fn humanize_column(&self, id: GlobalId, column: usize) -> Option<String> {
557 match self.items.get(&id) {
558 Some(item) => match &item.column_names {
559 Some(column_names) => Some(column_names[column].clone()),
560 None => None,
561 },
562 None => self.inner.humanize_column(id, column),
563 }
564 }
565
566 fn id_exists(&self, id: GlobalId) -> bool {
567 self.items.contains_key(&id) || self.inner.id_exists(id)

Callers 1

humanizeMethod · 0.45

Calls 2

getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected