Maestro.Store.Postgres (Maestro v0.5.0)

View Source

Ecto+Postgres implementation of the storage mechanism.

Events are never replayed outside of the aggregate's context, so the implementation doesn't support retrieval without an aggregate ID.

Summary

Functions

commit_all(events, projections)

Callback implementation for Maestro.Store.Adapter.commit_all/2.

commit_events(events)

Callback implementation for Maestro.Store.Adapter.commit_events/1.

commit_snapshot(s)

Callback implementation for Maestro.Store.Adapter.commit_snapshot/1.

get_events(aggregate_id, min_seq, map)

Callback implementation for Maestro.Store.Adapter.get_events/3.

get_snapshot(aggregate_id, min_seq, map)

Callback implementation for Maestro.Store.Adapter.get_snapshot/3.