Skip to main content

Module error

Module error 

Expand description

The failure modes a Postgres adapter actually has.

Two enums rather than one, because the two ports have independent Error associated types and merging them would force every event-store caller to match on projection-store variants it can never see.

Neither enum carries a ConditionViolated variant. An append-condition violation is not an adapter failure — the contract reports it through AppendError::ConditionViolated, so that a caller can tell “rebuild the decision model and retry” from “something broke” without knowing which adapter it holds.

Enums§

PostgresEventStoreError
How PostgresEventStore fails for its own reasons.
PostgresProjectionStoreError
How PostgresProjectionStore fails.