eventsourcing_postgres

Values

pub fn main() -> Nil

Main CLI entry point for managing eventsourcing_postgres database Supports database table creation, migration, and maintenance commands Use gleam run help to see all available commands and usage examples

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