MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / batch_insert

Method batch_insert

graphlite/src/storage/persistent/memory.rs:93–99  ·  view source on GitHub ↗
(&self, entries: &[(&[u8], &[u8])])

Source from the content-addressed store, hash-verified

91 }
92
93 fn batch_insert(&self, entries: &[(&[u8], &[u8])]) -> StorageResult<()> {
94 let mut data = self.data.write();
95 for (key, value) in entries {
96 data.insert(key.to_vec(), value.to_vec());
97 }
98 Ok(())
99 }
100
101 fn batch_remove(&self, keys: &[&[u8]]) -> StorageResult<()> {
102 let mut data = self.data.write();

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected