MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / has_function

Method has_function

nodedb-test-support/src/cluster_harness/node/inspect.rs:168–175  ·  view source on GitHub ↗

Read a function record from this node's local `SystemCatalog` redb (which the applier writes through on every node).

(&self, tenant_id: u64, name: &str)

Source from the content-addressed store, hash-verified

166 /// Read a function record from this node's local `SystemCatalog`
167 /// redb (which the applier writes through on every node).
168 pub fn has_function(&self, tenant_id: u64, name: &str) -> bool {
169 self.shared
170 .credentials
171 .catalog()
172 .as_ref()
173 .and_then(|c| c.get_function(tenant_id, name).ok().flatten())
174 .is_some()
175 }
176
177 /// Read a procedure record from this node's local `SystemCatalog`.
178 pub fn has_procedure(&self, tenant_id: u64, name: &str) -> bool {

Callers 1

Calls 4

get_functionMethod · 0.80
as_refMethod · 0.45
catalogMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected