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

Method register_collection

nodedb/src/engine/document/store/engine/batch.rs:41–43  ·  view source on GitHub ↗

Register a collection configuration with index paths.

(&mut self, config: CollectionConfig)

Source from the content-addressed store, hash-verified

39
40 /// Register a collection configuration with index paths.
41 pub fn register_collection(&mut self, config: CollectionConfig) {
42 self.configs.insert(config.name.clone(), config);
43 }
44
45 pub(super) fn is_bitemporal(&self, collection: &str) -> bool {
46 self.configs.get(collection).is_some_and(|c| c.bitemporal)

Calls 2

insertMethod · 0.45
cloneMethod · 0.45