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:498–505  ·  view source on GitHub ↗

Count total KG nodes.

(&self)

Source from the content-addressed store, hash-verified

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