What Ramal.merge/2 returns on success.
branch- the branch, now with status:mergedrecords- what the replay wrote, keyed like an overlay (Ramal.Overlay):{:created, record},{:updated, record}or:deletedper{resource, key}, with the records as the real actions returned themreplayed- how many log entries were replayed; entries written by a hook of another action are not counted, because replaying that action ran the hook againstale- the rows that had changed under the branch and thaton_stalelet through, each%{resource: module, key: term, reason: :changed | :deleted}
Example
%Ramal.Merge.Result{replayed: 2, stale: []} = result
Summary
Types
@type t() :: %Ramal.Merge.Result{ branch: Ramal.Branch.t(), records: Ramal.Overlay.t(), replayed: non_neg_integer(), stale: [stale_row()] }