MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / graph_stats_impl

Method graph_stats_impl

nodedb-client/src/remote/client/graph.rs:149–157  ·  view source on GitHub ↗
(
        &self,
        collection: Option<&str>,
        as_of: Option<i64>,
    )

Source from the content-addressed store, hash-verified

147 }
148
149 pub(super) async fn graph_stats_impl(
150 &self,
151 collection: Option<&str>,
152 as_of: Option<i64>,
153 ) -> NodeDbResult<Vec<GraphStats>> {
154 let sql = build_graph_stats_sql(collection, as_of);
155 let (columns, rows) = self.simple_query_raw(&sql).await?;
156 parse_graph_stats_response(&columns, &rows)
157 }
158
159 pub(super) async fn graph_pagerank_impl(
160 &self,

Callers 1

graph_statsMethod · 0.45

Calls 3

build_graph_stats_sqlFunction · 0.85
simple_query_rawMethod · 0.80

Tested by

no test coverage detected