EventSourcingDB.IsSubjectPristine (EventSourcingDB v1.0.1)

Copy Markdown View Source

Precondition for writing events to ensure the subject has no existing events.

Useful to introduce a subject – it must be the first event and must not appear multiple times for the same subject.

Summary

Types

t()

@type t() :: %EventSourcingDB.IsSubjectPristine{subject: String.t()}