wip: pause checkpoint — P6 feature complete, gate interrupted (not for merge)

This commit is contained in:
swaits committed 2026-10-27 14:41:34 -06:00
1 parent cc4f104f06
commit ce36640874
68 files changed
+4592 -374

No files matched your search

+14 -2
View File
@@ -20,8 +20,8 @@
use ledger_core::Ledger;
use ledger_store::{
Attachment, DiskCheck, JournalLine, Reconciliation, Snapshot, Statement, Store, StoreError,
Subject,
Attachment, DiskCheck, Extraction, JournalLine, Reconciliation, Snapshot, Statement, Store,
StoreError, Subject,
};
/// The books, read-only, as the package reads them.
@@ -47,6 +47,10 @@ pub trait PackageBooks {
/// included, in id order.
fn all_attachments(&self) -> Result<Vec<Attachment>, StoreError>;
/// Every extraction record, in seq order (plan P6): what reading each
/// file found.
fn extractions(&self) -> Result<Vec<Extraction>, StoreError>;
/// The subjects attachment `attachment_id` is linked to beyond the
/// entry it is filed on (an implementation may list that entry too:
/// the package takes the union).
@@ -88,6 +92,10 @@ impl PackageBooks for Store {
Store::list_attachments(self, None)
}
fn extractions(&self) -> Result<Vec<Extraction>, StoreError> {
Store::extractions(self)
}
fn links_of(&self, attachment_id: u64) -> Result<Vec<Subject>, StoreError> {
Store::attachment_links(self, attachment_id)
}
@@ -133,6 +141,10 @@ impl PackageBooks for Snapshot {
Snapshot::attachments(self, None)
}
fn extractions(&self) -> Result<Vec<Extraction>, StoreError> {
Snapshot::extractions(self)
}
fn links_of(&self, attachment_id: u64) -> Result<Vec<Subject>, StoreError> {
Ok(Snapshot::attachment_links(self)?
.into_iter()