postgres-es
A Postgres implementation of the
EventStore
trait in cqrs-es.
Installation
[]
= "0.1.2"
= "0.1.2"
Usage
use postgres_es::{postgres_cqrs, PostgresStore, Connection};
let connection = Connection::new("postgresql://demo_user:demo_pass@localhost:5432/demo");
let cqrs = postgres_es::postgres_cqrs(connection, vec![Box::new(my_query)])
Change log
v0.1.2
Require queries to also use Send & Sync.
v0.1.1
Use r2d2_postgres crate to support Send + Sync
for multi-threaded applications.
TODOs
- Add support for TLS.
- Additional framework around
GenericQueryRepository
to simplify event replay.
Demo
A demo application is available here.