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

Method get

nodedb/src/event/cdc/registry.rs:108–111  ·  view source on GitHub ↗

Get a stream definition by name.

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

Source from the content-addressed store, hash-verified

106
107 /// Get a stream definition by name.
108 pub fn get(&self, tenant_id: u64, name: &str) -> Option<ChangeStreamDef> {
109 let key = (tenant_id, name.to_string());
110 self.read().by_name.get(&key).map(|a| (**a).clone())
111 }
112
113 /// Find all streams matching `(tenant_id, collection)`. Returns shared
114 /// `Arc<ChangeStreamDef>` handles so the router hot path is

Callers 15

diff_objectsFunction · 0.45
partition_watermarkMethod · 0.45
loadMethod · 0.45
extract_i64Function · 0.45
compactMethod · 0.45
extract_key_valueFunction · 0.45
consume_streamFunction · 0.45
remove_stream_cleans_upFunction · 0.45
spawn_compaction_taskFunction · 0.45
find_matchingMethod · 0.45
get_or_create_bufferMethod · 0.45
get_bufferMethod · 0.45

Calls 3

to_stringMethod · 0.80
readMethod · 0.45
cloneMethod · 0.45

Tested by 1

remove_stream_cleans_upFunction · 0.36