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

Method put_dep

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

Source from the content-addressed store, hash-verified

971 }
972
973 fn put_dep(&mut self, change_id: NodeId, dep_id: NodeId) -> PristineResult<()> {
974 {
975 let mut table = self.txn.open_multimap_table(DEPS)?;
976 table.insert(change_id.get(), dep_id.get())?;
977 }
978 {
979 let mut table = self.txn.open_multimap_table(REV_DEPS)?;
980 table.insert(dep_id.get(), change_id.get())?;
981 }
982 Ok(())
983 }
984
985 fn put_change_deps(&mut self, change_id: NodeId, deps: &[Hash]) -> PristineResult<()> {
986 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