Skip to main content

Crate ckg_storage

Crate ckg_storage 

Source
Expand description

Storage layer over CozoDB (RocksDB engine). Phase 02 implements all ops.

Re-exports§

pub use manifest::Manifest;
pub use manifest::with_lock as manifest_with_lock;
pub use repo_lock::with_repo_lock;
pub use store::RegistryStorage;
pub use store::Storage;

Modules§

cozo_compat
Cozo error compatibility — typed-shape facade over cozo-ce-0.7.x.
manifest
manifest.json at ~/.ckg/manifest.json — index of all known repos.
queries
Pre-baked Datalog queries (blast-radius, call-chain, dead-code).
repo_lock
Per-repo advisory flock — used to serialise destructive operations (ckg index write phases vs ckg remove’s remove_dir_all) on the same per-repo Cozo DB.
schema
Cozo Datalog DDL. Run on first open; subsequent opens swallow relation exists.
store
Storage facade over CozoDB. One DB per repo, plus a shared registry DB.