View Source Mix.EventStore (EventStore v1.4.1)

Conveniences for writing EventStore related Mix tasks.

Link to this section Summary

Functions

Ensures the given module is an EventStore.

Returns true if module implements behaviour.

Parses the event store option from the given command line args list.

Link to this section Functions

Link to this function

ensure_event_store!(event_store, args)

View Source
@spec ensure_event_store!(module(), list()) :: EventStore.t()

Ensures the given module is an EventStore.

Link to this function

implements?(module, behaviour)

View Source

Returns true if module implements behaviour.

@spec parse_event_store([term()]) :: [EventStore.t()]

Parses the event store option from the given command line args list.

If no event store option is given, it is retrieved from the application environment.