Mix.EventStoreLite (EventStoreLite v0.1.0)

Copy Markdown View Source

Conveniences for writing EventStoreLite related Mix tasks.

Summary

Functions

Ensures the given module is an EventStoreLite.

Returns true if module implements behaviour.

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

Functions

ensure_event_store!(event_store, args)

@spec ensure_event_store!(module(), list()) :: EventStoreLite.t()

Ensures the given module is an EventStoreLite.

implements?(module, behaviour)

Returns true if module implements behaviour.

parse_event_store(args)

@spec parse_event_store([term()]) :: [EventStoreLite.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.