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

Function graph_rows

atomic-core/src/pristine/txn/write/native_derived.rs:473–483  ·  view source on GitHub ↗
(txn: &ReadTxn)

Source from the content-addressed store, hash-verified

471 }
472
473 fn graph_rows(txn: &ReadTxn) -> Vec<(Vec<u8>, Vec<u8>)> {
474 let table = txn.txn.open_multimap_table(GRAPH).unwrap();
475 let mut rows = Vec::new();
476 for row in table.iter().unwrap() {
477 let (key, values) = row.unwrap();
478 for value in values {
479 rows.push((key.value().to_vec(), value.unwrap().value().to_vec()));
480 }
481 }
482 rows
483 }
484
485 fn inode_graph_rows(txn: &ReadTxn) -> Vec<(Vec<u8>, Vec<u8>)> {
486 let table = txn.txn.open_multimap_table(INODE_GRAPH).unwrap();

Calls 4

valueMethod · 0.80
unwrapMethod · 0.45
iterMethod · 0.45
pushMethod · 0.45