EventSourcingDB.IsEventQLQueryTrue (EventSourcingDB v1.0.1)

Copy Markdown View Source

Precondition for writing events based on an EventQL query.

Sometimes, you want to ensure that an event is only written if a more complex condition holds – for example, if no similar event has ever been recorded before. The IsEventQLQueryTrue precondition lets you define such conditions using EventQL.

Summary

Types

t()

@type t() :: %EventSourcingDB.IsEventQLQueryTrue{query: String.t()}