MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / batch_insert

Method batch_insert

src/structures/metadata_index.rs:217–221  ·  view source on GitHub ↗
(&mut self, items: Vec<(u128, MetadataIndexItem)>)

Source from the content-addressed store, hash-verified

215 }
216
217 pub fn batch_insert(&mut self, items: Vec<(u128, MetadataIndexItem)>) {
218 self.tree
219 .batch_insert(items)
220 .expect("Failed to batch insert");
221 }
222
223 pub fn get(&mut self, key: u128) -> Option<MetadataIndexItem> {
224 match self.tree.search(key) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected