MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_change_deps

Method get_change_deps

atomic-core/src/pristine/txn/write/graph.rs:249–258  ·  view source on GitHub ↗
(&self, change_id: NodeId)

Source from the content-addressed store, hash-verified

247 }
248
249 fn get_change_deps(&self, change_id: NodeId) -> PristineResult<Vec<Hash>> {
250 let table = self.txn.open_multimap_table(CHANGE_DEPS)?;
251 let mut result = Vec::new();
252 let iter = table.get(change_id.get())?;
253 for item in iter {
254 let value = item?;
255 result.push(Hash::from_bytes(*value.value()));
256 }
257 Ok(result)
258 }
259
260 fn change_deps_indexed_count(&self, change_id: NodeId) -> PristineResult<Option<u64>> {
261 let table = self.txn.open_table(CHANGE_DEPS_INDEXED)?;

Calls 3

valueMethod · 0.80
getMethod · 0.65
pushMethod · 0.45

Tested by 1