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

Method get_index

nodedb/src/engine/kv/index.rs:285–287  ·  view source on GitHub ↗

Get an index by field name.

(&self, field: &str)

Source from the content-addressed store, hash-verified

283
284 /// Get an index by field name.
285 pub fn get_index(&self, field: &str) -> Option<&KvFieldIndex> {
286 self.indexes.iter().find(|i| i.field == field)
287 }
288
289 /// Add a composite index on multiple fields. Returns false if already exists.
290 pub fn add_composite_index(

Callers 2

statsMethod · 0.45
scanMethod · 0.45

Calls 2

findMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected