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

Method put_dep

atomic-core/src/pristine/txn/write/mod.rs:1494–1504  ·  view source on GitHub ↗
(&mut self, change_id: NodeId, dep_id: NodeId)

Source from the content-addressed store, hash-verified

1492 }
1493
1494 fn put_dep(&mut self, change_id: NodeId, dep_id: NodeId) -> PristineResult<()> {
1495 {
1496 let mut table = self.txn.open_multimap_table(DEPS)?;
1497 table.insert(change_id.get(), dep_id.get())?;
1498 }
1499 {
1500 let mut table = self.txn.open_multimap_table(REV_DEPS)?;
1501 table.insert(dep_id.get(), change_id.get())?;
1502 }
1503 Ok(())
1504 }
1505
1506 fn put_change_deps(&mut self, change_id: NodeId, deps: &[Hash]) -> PristineResult<()> {
1507 let existing: Vec<[u8; 32]> = {

Callers 3

save_attestationMethod · 0.80
save_provenance_graphMethod · 0.80

Calls 2

getMethod · 0.65
insertMethod · 0.45

Tested by 1