eventcore-postgres 1.0.1

PostgreSQL event store adapter for EventCore event sourcing library
Documentation

PostgreSQL event store backend for EventCore.

This crate provides a production-grade [PostgresEventStore] backed by PostgreSQL, with ACID transactions, advisory locks, and connection pooling via sqlx.

Event immutability is enforced by PostgreSQL triggers. Stream pattern matching follows the conventions described in ADR-0047.

PostgresEventStore implements [EventStore], [EventReader], [CheckpointStore], and [ProjectorCoordinator] from eventcore-types.

Getting Started

use eventcore_postgres::PostgresEventStore;

# async fn example() -> Result<(), Box<dyn std::error::Error>> {
let store = PostgresEventStore::new("postgres://user:pass@localhost/mydb").await?;
# Ok(())
# }