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§
- Postgres
Event Store Error - How
PostgresEventStorefails for its own reasons. - Postgres
Projection Store Error - How
PostgresProjectionStorefails.