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