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

Method exists

nodedb/src/control/synonym/registry.rs:44–48  ·  view source on GitHub ↗

Check whether a synonym group exists.

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

Source from the content-addressed store, hash-verified

42
43 /// Check whether a synonym group exists.
44 pub fn exists(&self, tenant_id: u64, name: &str) -> bool {
45 let key = (tenant_id, name.to_string());
46 let map = self.by_name.read().unwrap_or_else(|p| p.into_inner());
47 map.contains_key(&key)
48 }
49
50 /// Get a synonym group by name.
51 pub fn get(&self, tenant_id: u64, name: &str) -> Option<StoredSynonymGroup> {

Callers 15

recoverFunction · 0.45
openMethod · 0.45
openMethod · 0.45
openMethod · 0.45
openMethod · 0.45
discover_segmentsFunction · 0.45
truncate_segmentsFunction · 0.45
has_sequenceMethod · 0.45
probe_rdma_deviceMethod · 0.45
sweep_orphansFunction · 0.45
pending_segmentsMethod · 0.45

Calls 2

to_stringMethod · 0.80
readMethod · 0.45

Tested by 1

has_sequenceMethod · 0.36