Decree.Store.AppendResult (decree v0.1.0)

Copy Markdown View Source

What an append wrote, answered by Decree.Store.append_to_stream/4 and Decree.Store.append_to_streams/2 when called with returning: :append_result.

Fields

  • position - the last $all position the append wrote. An append's events take contiguous positions, so this and the event count give every one of them. It stands for the whole append, over the 1,000-event split of Decree.Store.append_to_stream/4 as well.
  • stream_versions - %{stream_uuid => version}, each stream's version after the append.

Summary

Types

t()

@type t() :: %Decree.Store.AppendResult{
  position: non_neg_integer(),
  stream_versions: %{required(String.t()) => non_neg_integer()}
}