Represents a Chronicle event sequence.
Use this module when you want to work with a non-default event sequence and keep the event sequence identifier close to the append/query operations.
Summary
Functions
Appends a single event to the event sequence.
Appends multiple events to the event sequence.
Gets events for the given event source from the event sequence.
Gets the tail sequence number for the event sequence.
Checks whether the event sequence has events for the given event source id.
Creates an event sequence wrapper for the given event sequence id.
Gets a transactional view of the event sequence that buffers appends in the current unit of work.
Types
Functions
Appends a single event to the event sequence.
Appends multiple events to the event sequence.
Gets events for the given event source from the event sequence.
@spec get_tail_sequence_number(t(), String.t() | nil, keyword()) :: {:ok, non_neg_integer()} | {:error, term()}
Gets the tail sequence number for the event sequence.
Checks whether the event sequence has events for the given event source id.
Creates an event sequence wrapper for the given event sequence id.
@spec transactional(t()) :: Chronicle.EventSequences.TransactionalEventSequence.t()
Gets a transactional view of the event sequence that buffers appends in the current unit of work.