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

Method has_change_in_graph

atomic-core/src/pristine/txn/read.rs:464–470  ·  view source on GitHub ↗
(&self, change_id: NodeId)

Source from the content-addressed store, hash-verified

462 }
463
464 fn has_change_in_graph(&self, change_id: NodeId) -> PristineResult<bool> {
465 let table = self.txn.open_multimap_table(GRAPH)?;
466 let start_key = encode_vertex(change_id.get(), 0, 0);
467 let end_key = encode_vertex(change_id.get(), u64::MAX, u64::MAX);
468 let has = graph_presence(table.range::<&[u8; 24]>(&start_key..=&end_key)?)?;
469 Ok(has)
470 }
471}
472
473// ViewTxnT Implementation

Callers 1

was_change_appliedMethod · 0.45

Calls 3

encode_vertexFunction · 0.85
graph_presenceFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected