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

Method delete

nodedb-vector/src/collection/lifecycle_insert_ops.rs:78–84  ·  view source on GitHub ↗

Soft-delete a vector by global ID.

(&mut self, id: u32)

Source from the content-addressed store, hash-verified

76
77 /// Soft-delete a vector by global ID.
78 pub fn delete(&mut self, id: u32) -> bool {
79 let ok = self.delete_inner(id);
80 if ok && let Some(s) = self.surrogate_map.remove(&id) {
81 self.surrogate_to_local.remove(&s);
82 }
83 ok
84 }
85
86 pub(super) fn delete_inner(&mut self, id: u32) -> bool {
87 if id >= self.growing_base_id {

Callers 3

delete_multi_vectorMethod · 0.45
delete_innerMethod · 0.45
delete_by_surrogateMethod · 0.45

Calls 2

delete_innerMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected