Count total KG nodes.
(&self)
| 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> { |