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

Method vault_kg_node_count

atomic-repository/src/repository/vault_triples.rs:497–504  ·  view source on GitHub ↗

Count total KG nodes.

(&self)

Source from the content-addressed store, hash-verified

495
496 /// Count total KG nodes.
497 pub fn vault_kg_node_count(&self) -> Result<usize, RepositoryError> {
498 let txn = self
499 .pristine
500 .read_txn()
501 .map_err(|e| RepositoryError::Database(e.to_string()))?;
502 txn.count_kg_nodes()
503 .map_err(|e| RepositoryError::Database(e.to_string()))
504 }
505
506 /// Count total KG edges.
507 pub fn vault_kg_edge_count(&self) -> Result<usize, RepositoryError> {

Callers 1

test_vault_index_kgFunction · 0.80

Calls 2

read_txnMethod · 0.80
count_kg_nodesMethod · 0.45

Tested by 1

test_vault_index_kgFunction · 0.64