Trogon.Commanded.ConsistencyPolicy.VersionedData (Trogon.Commanded v0.39.0)

Copy Markdown View Source

Wraps query result data with its version number.

The version represents the projection's event stream version at the time of the read, indicating how up-to-date the data is.

Summary

Types

t()

Wraps query result data with its projection version.

Event stream version at read time.

Types

t()

@type t() :: %Trogon.Commanded.ConsistencyPolicy.VersionedData{
  data: term(),
  version: version()
}

Wraps query result data with its projection version.

version()

@type version() :: non_neg_integer()

Event stream version at read time.

Functions

new(version, data)

@spec new(version(), term()) :: t()