CommandedAggregateless.Query.QueryOps protocol (commanded_aggregateless v1.0.0)

Copy Markdown

Defines common functionality for the execution of queries against the read store

While the CommandedAggregateless.Query module can be used to define query modules, you can also use any data type for which you have provided an implementation of this protocol.

Summary

Types

t()

All the types that implement this protocol.

Functions

This must dispatch the execution of the query against the read store.

Performs validation on the query prior to execution.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

repo_fn(query)

This must dispatch the execution of the query against the read store.

validate(query)

@spec validate(t()) ::
  CommandedAggregateless.result(
    t(),
    CommandedAggregateless.Query.validation_error()
  )

Performs validation on the query prior to execution.