Skip to main content

apply_worker_delta

Function apply_worker_delta 

Source
pub fn apply_worker_delta(
    adapter: &dyn DatabaseOperations,
    config: &DbBackendConfig,
    schema: &AppSchema,
    before: &Value,
    after: &Value,
) -> Result<Value, DatabaseError>
Expand description

Persists only rows changed by one worker tick. An unrelated account, receipt, or delivery written after the worker read its snapshot is never rewritten.