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

Method put_dep

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

Source from the content-addressed store, hash-verified

1444 }
1445
1446 fn put_dep(&mut self, change_id: NodeId, dep_id: NodeId) -> PristineResult<()> {
1447 {
1448 let mut table = self.txn.open_multimap_table(DEPS)?;
1449 table.insert(change_id.get(), dep_id.get())?;
1450 }
1451 {
1452 let mut table = self.txn.open_multimap_table(REV_DEPS)?;
1453 table.insert(dep_id.get(), change_id.get())?;
1454 }
1455 Ok(())
1456 }
1457
1458 fn put_change_deps(&mut self, change_id: NodeId, deps: &[Hash]) -> PristineResult<()> {
1459 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