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

Function sample_def

nodedb/src/event/cdc/registry.rs:213–228  ·  view source on GitHub ↗
(name: &str, collection: &str)

Source from the content-addressed store, hash-verified

211 use crate::event::cdc::stream_def::*;
212
213 fn sample_def(name: &str, collection: &str) -> ChangeStreamDef {
214 ChangeStreamDef {
215 tenant_id: 1,
216 name: name.into(),
217 collection: collection.into(),
218 op_filter: OpFilter::all(),
219 format: StreamFormat::Json,
220 retention: RetentionConfig::default(),
221 compaction: CompactionConfig::default(),
222 webhook: crate::event::webhook::WebhookConfig::default(),
223 late_data: LateDataPolicy::default(),
224 kafka: crate::event::kafka::KafkaDeliveryConfig::default(),
225 owner: "admin".into(),
226 created_at: 0,
227 }
228 }
229
230 #[test]
231 fn register_and_lookup() {

Callers 4

register_and_lookupFunction · 0.70
find_matching_collectionFunction · 0.70
unregisterFunction · 0.70

Calls

no outgoing calls

Tested by 4

register_and_lookupFunction · 0.56
find_matching_collectionFunction · 0.56
unregisterFunction · 0.56