(root: &Path, name: &str)
| 11 | use std::{collections::BTreeMap, fs, path::Path}; |
| 12 | |
| 13 | pub fn view_id(root: &Path, name: &str) -> Result<u64> { |
| 14 | let repo = Repository::open_readonly(root)?; |
| 15 | let txn = repo.pristine().read_txn()?; |
| 16 | Ok(txn.get_view(name)?.ok_or("view missing")?.id) |
| 17 | } |
| 18 | pub fn storage(root: &Path, id: Option<u64>) -> Result<Value> { |
| 19 | // Diagnostic only: inspect physical rows without a write handle. |
| 20 | let db = redb::Builder::new().open_read_only(root.join(".atomic/atomic.redb"))?; |