Current section

Files

Jump to
eventsourcing include eventsourcing@postgres_store_PostgresStore.hrl
Raw

include/eventsourcing@postgres_store_PostgresStore.hrl

-record(postgres_store, {
db :: gleam@pgo:connection(),
empty_aggregate :: eventsourcing:aggregate(any(), any(), any(), any()),
event_encoder :: fun((any()) -> binary()),
event_decoder :: fun((binary()) -> {ok, any()} |
{error, list(gleam@dynamic:decode_error())}),
event_type :: binary(),
event_version :: binary(),
aggregate_type :: binary()
}).