eventsourcing_postgres

Types

pub opaque type PostgresStore(entity, command, event, error)

Functions

pub fn create_event_table(
  postgres_store: PostgresStore(a, b, c, d),
) -> Result(Returned(Nil), QueryError)
pub fn new(
  pgo_config pgo_config: Config,
  event_encoder event_encoder: fn(a) -> String,
  event_decoder event_decoder: fn(String) ->
    Result(a, List(DecodeError)),
  event_type event_type: String,
  event_version event_version: String,
  aggregate_type aggregate_type: String,
) -> EventStore(PostgresStore(b, c, a, d), b, c, a, d)
Search Document