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

Method get_def

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

Get a sequence definition (for SHOW SEQUENCES detail).

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

Source from the content-addressed store, hash-verified

290
291 /// Get a sequence definition (for SHOW SEQUENCES detail).
292 pub fn get_def(&self, tenant_id: u64, name: &str) -> Option<StoredSequence> {
293 let key = registry_key(tenant_id, name);
294 let map = self.sequences.read().unwrap_or_else(|p| p.into_inner());
295 map.get(&key).map(|h| h.def.clone())
296 }
297
298 /// Reset all sequences attached to a collection back to their start values.
299 ///

Callers 8

allocate_chunkMethod · 0.45
create_streaming_mvFunction · 0.45
drop_streaming_mvFunction · 0.45
describe_sequenceFunction · 0.45
alter_restartFunction · 0.45
alter_formatFunction · 0.45
materialized_view_existsFunction · 0.45

Calls 4

registry_keyFunction · 0.85
readMethod · 0.45
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected