Function decision_maker

Source
pub fn decision_maker<E: Event + Send + Sync + Clone, S: Serde<E> + Clone + Sync + Send, SN: SnapshotConfig + Clone>(
    event_store: PgEventStore<E, S>,
    snapshot_config: SN,
) -> PgDecisionMaker<E, S, SN>
Expand description

Creates a decision maker specialized for PostgreSQL.

§Arguments

  • event_store: An instance of PgEventStore.
  • snapshot_config: The SnapshotConfig to be used for the snapshotting.

§Returns

A PgDecisionMaker with snapshotting configured according to the provided snapshot_config.