Expand description
The write pipeline every write tool ends in: find what the call changed, validate written blocks with the CMS, and stage the call, or on a dry run tell what staging it would do.
Re-exportsΒ§
pub use report::WriteReport;
ModulesΒ§
- page_
writes π - Full page snapshots for the pages a call changed, with the exercises that follow their blocks.
- report π
- What a write call reports back: the staging summary and the hints that follow it.
- validation π
- Validating the blocks a call changed with the CMS, and writing back their normalised form.
StructsΒ§
- Derived
Writes π - What a write call stages, found from its
WriteSource. - Write
Request - One write call for
commit.
EnumsΒ§
- Write
Mode - Whether a write call stages its changes or only tells what staging them would do.
- Write
Source - Where a write callβs entity writes come from.
FunctionsΒ§
- commit
- Runs the pipeline from the userβs staged state to
after: validate, find the written entities and stage them as one call, or on a dry run tell what staging them would do. Holds no pooled connection while the validator runs. - derive_
writes π - live_
snapshots π - The live state of each written entity the user has no staged changes to, as the call read it. Pages were read twice, as blocks with the view and in full when their snapshots were built; a page that changed in between is a stale read.
- staged_
state_ πread - The staged state
writeswere built on: the changeset rows of the view and the live state of the other entities. - stale_
read π