Skip to main content

refresh_wrapper

Function refresh_wrapper 

Source
pub fn refresh_wrapper(
    store: &Store,
    raw_wrapper: &str,
) -> Result<RefreshWrapperReport>
Expand description

Reconcile every asset declaration in one wrapper and write the canonical manifest once. This is for bounded generators that own one wrapper with a changing set of assets: it avoids a full-store scan and avoids N manifest rewrites through repeated refresh calls.

Existing rows declared by other wrappers are preserved. If the requested wrapper stops declaring a path, only its association is removed; the row survives when another live wrapper still declares it. Missing bytes may be preserved only when the exact path already has a manifest row. Asset supersession remains a one-coordinate refresh operation because its append-only provenance semantics are deliberately not batchable.