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

Function graph_rows

atomic-repository/tests/span_storage_guard.rs:24–37  ·  view source on GitHub ↗
(repo: &Repository)

Source from the content-addressed store, hash-verified

22}
23
24fn graph_rows(repo: &Repository) -> (u64, u64) {
25 let db = repo.pristine().shared_database().unwrap();
26 let txn = db.begin_read().unwrap();
27 (
28 txn.open_multimap_table(atomic_core::pristine::tables::GRAPH)
29 .unwrap()
30 .len()
31 .unwrap(),
32 txn.open_multimap_table(atomic_core::pristine::tables::INODE_GRAPH)
33 .unwrap()
34 .len()
35 .unwrap(),
36 )
37}
38
39fn semantic_rows(repo: &Repository) -> (u64, u64, u64) {
40 let db = repo.pristine().shared_database().unwrap();

Callers 1

storage_guardFunction · 0.70

Calls 5

shared_databaseMethod · 0.80
pristineMethod · 0.80
begin_readMethod · 0.80
unwrapMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected