MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / read_graph_counts

Function read_graph_counts

src/runtime_telemetry.rs:303–307  ·  view source on GitHub ↗
(cg: &crate::tracedecay::TraceDecay)

Source from the content-addressed store, hash-verified

301}
302
303async fn read_graph_counts(cg: &crate::tracedecay::TraceDecay) -> Result<(u64, u64)> {
304 let nodes = scalar_count(cg, "SELECT COUNT(*) FROM nodes").await?;
305 let edges = scalar_count(cg, "SELECT COUNT(*) FROM edges").await?;
306 Ok((nodes, edges))
307}
308
309async fn scalar_count(cg: &crate::tracedecay::TraceDecay, sql: &str) -> Result<u64> {
310 let mut rows = cg

Callers 1

sample_databaseFunction · 0.85

Calls 1

scalar_countFunction · 0.70

Tested by

no test coverage detected