eventsourcing/postgres_store
Types
pub opaque type PostgresStore(entity, command, event, error)
Functions
pub fn new(
pgo_config pgo_config: Config,
emtpy_entity empty_entity: a,
handle_command_function handle: fn(a, b) -> Result(List(c), d),
apply_function apply: fn(a, c) -> a,
event_encoder event_encoder: fn(c) -> String,
event_decoder event_decoder: fn(String) ->
Result(c, List(DecodeError)),
event_type event_type: String,
event_version event_version: String,
aggregate_type aggregate_type: String,
) -> EventStore(PostgresStore(a, b, c, d), a, b, c, d)