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

Method exists

nodedb/src/control/sequence/registry.rs:285–289  ·  view source on GitHub ↗

Check if a sequence exists.

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

Source from the content-addressed store, hash-verified

283
284 /// Check if a sequence exists.
285 pub fn exists(&self, tenant_id: u64, name: &str) -> bool {
286 let key = registry_key(tenant_id, name);
287 let map = self.sequences.read().unwrap_or_else(|p| p.into_inner());
288 map.contains_key(&key)
289 }
290
291 /// Get a sequence definition (for SHOW SEQUENCES detail).
292 pub fn get_def(&self, tenant_id: u64, name: &str) -> Option<StoredSequence> {

Callers 2

load_from_diskMethod · 0.45
allocate_chunkMethod · 0.45

Calls 2

registry_keyFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected