Module esrs::store[][src]

Structs

A StoreEvent contains the payload (the original event) alongside the event’s metadata.

Traits

An EraserStore is responsible for wiping an aggregate isntance from history: it should delete the aggregate instance, along with all of its events, or fail.

An EventStore is responsible for persisting events that an aggregate emits into a database, and loading the events that represent an aggregate’s history from the database.

A ProjectorStore is responsible for projecting an event (that has been persisted to the database) into a form that is better suited to being read by other parts of the application.