split capnp_store.rs into src/store/ module hierarchy

capnp_store.rs (1772 lines) → four focused modules:
  store/types.rs  — types, macros, constants, path helpers
  store/parse.rs  — markdown parsing (MemoryUnit, parse_units)
  store/view.rs   — StoreView trait, MmapView, AnyView
  store/mod.rs    — Store impl methods, re-exports

new_node/new_relation become free functions in types.rs.
All callers updated: capnp_store:: → store::
This commit is contained in:
ProofOfConcept 2026-03-03 12:56:15 -05:00
parent e34c0ccf4c
commit 635da6d3e2
11 changed files with 980 additions and 978 deletions

View file

@ -7,7 +7,7 @@
// connections), but relation type and direction are preserved for
// specific queries.
use crate::capnp_store::{Store, RelationType, StoreView};
use crate::store::{Store, RelationType, StoreView};
use serde::{Deserialize, Serialize};
use std::collections::{HashMap, HashSet, VecDeque};
@ -589,8 +589,8 @@ pub fn health_report(graph: &Graph, store: &Store) -> String {
let cats = store.category_counts();
// Snapshot current metrics and log
let now = crate::capnp_store::now_epoch();
let date = crate::capnp_store::format_datetime_space(now);
let now = crate::store::now_epoch();
let date = crate::store::format_datetime_space(now);
let snap = MetricsSnapshot {
timestamp: now,
date: date.clone(),