A Postgres implementation of the EventStore
trait in cqrs-es2.
toml
[dependencies]
postgres-es2 = "0.2.0"
``` use postgres::{Client, NoTls}; use postgres_es2::PostgresCqrs;
let connection = Client::connect("postgresql://demouser:demopass@localhost:5432/demo", NoTls).unwrap(); let cqrs = postgreses2::postgrescqrs(connection, vec![Box::new(my_query)]) ```
v0.2.0
GenericQueryRepository
to simplify event replay.A demo application is available here.