pub struct Progress {
pub hosts: Vec<ProgressHost>,
}Expand description
The record’s PROGRESS ledger: which databases host it.
A ledger is a pair of control tables in the unit’s OWN persist pool — SqliteProgress::new takes
that pool — so its hosts are the declared persist databases, and a record with no persist(…)
has no pool to live in. Nothing else has to be declared for one to exist: what it certifies is the
unit’s close, which every stored record has. Derived from the storage alone, therefore, and never
asked for.
Its hosts are the persist databases that SHIP a ledger, which may be fewer than Persist::backends
and, for a record stored only in MySQL or MongoDB, none — leaving no Progress at all. A
SHORTER list rather than a refusal, because nothing here was asked for: a ledger is bookkeeping the
framework adds wherever a pool can hold it, so a database with no backend for one leaves out
nothing anybody declared.
It carries no root declaration. The ledger is keyed by the WORK’s root, the root column’s DDL
type is <Root as Typed>::COLUMN, and the root is the key’s FIRST column — its leading lineage
step, or the id itself for a root record. Derived, therefore, and a declared one could only
disagree with the key it is minted for.
Fields§
§hosts: Vec<ProgressHost>The Persist::backends that ship a ledger, in that order. Never empty: a record none of whose
databases hosts one has no Progress rather than an empty list.