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
Functions
This must dispatch the execution of the query against the read store.
Performs validation on the query prior to execution.
Types
@type t() :: term()
All the types that implement this protocol.
Functions
@spec repo_fn(t()) :: CommandedAggregateless.Query.repo_fn_result()
This must dispatch the execution of the query against the read store.
@spec validate(t()) :: CommandedAggregateless.result( t(), CommandedAggregateless.Query.validation_error() )
Performs validation on the query prior to execution.