EventSourcingDB.BoundOptions (EventSourcingDB v1.0.1)

Copy Markdown View Source

Reading events within a specific range.

You can use the lower_bound and upper_bound parameters (individually or together) to limit the result. Both bounds can be configured to be :inclusive or :exclusive.

Summary

Types

t()

@type t() :: %EventSourcingDB.BoundOptions{
  id: String.t(),
  type: :inclusive | :exclusive
}

Functions

new(options)

@spec new(keyword()) :: t()