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

Count total KG nodes.

(&self)

Source from the content-addressed store, hash-verified

723
724 /// Count total KG nodes.
725 pub fn vault_kg_node_count(&self) -> Result<usize, RepositoryError> {
726 let txn = self
727 .pristine
728 .read_txn()
729 .map_err(|e| RepositoryError::Database(e.to_string()))?;
730 txn.count_kg_nodes()
731 .map_err(|e| RepositoryError::Database(e.to_string()))
732 }
733
734 /// Count total KG edges.
735 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