eventsourcing_postgres

Values

pub fn create_event_table(
  postgres_store: @internal PostgresStore(
    entity,
    command,
    event,
    error,
  ),
) -> Result(Nil, eventsourcing.EventSourcingError(error))
pub fn create_snapshot_table(
  postgres_store: @internal PostgresStore(
    entity,
    command,
    event,
    error,
  ),
) -> Result(Nil, eventsourcing.EventSourcingError(error))
pub fn new(
  pgo_config pgo_config: pog.Config,
  event_encoder event_encoder: fn(event) -> String,
  event_decoder event_decoder: decode.Decoder(event),
  event_type event_type: String,
  event_version event_version: String,
  aggregate_type aggregate_type: String,
  entity_encoder entity_encoder: fn(entity) -> String,
  entity_decoder entity_decoder: decode.Decoder(entity),
) -> eventsourcing.EventStore(
  @internal PostgresStore(entity, command, event, error),
  entity,
  command,
  event,
  error,
  pog.Connection,
)
Search Document