arc-es-postgres
Postgres storage adapters for Arc event sourcing.
This crate implements Arc's EventStore, ReadModelStore, and snapshot persistence on Postgres.
It is intended for production deployments and multi-process Arc applications.
What It Provides
PostgresEventStore: append-only event store with optimistic concurrency.PostgresReadModelStore: JSONB read-model storage for projections.- Self-initializing schema helpers for events, snapshots, and read models.
- Optional HMAC integrity-chain enforcement for persisted events.
Example
use AuditMetadata;
use ;
use ;
use PostgresEventStore;
use json;
# async
Integrity Mode
Use PostgresEventStore::new_with_integrity_key or
PostgresEventStore::with_pool_and_integrity_key to sign new events and verify events on
load/stream. Existing unsigned data must be replayed or migrated before enabling integrity
verification.
Stability
This crate is pre-1.0 and follows arc-core's compatibility line. Breaking changes may ship in
minor versions until 1.0.
License
MIT