A Postgres implementation of the
EventStore
trait in cqrs-es.
Add to your Cargo.toml file:
[dependencies]
cqrs-es = "0.2.5"
persist-es = "0.2.5"
postgres-es = "0.2.5"
Requires access to a Postgres DB with existing tables. See:
- Sample database configuration
- Use
docker-compose
to quickly setup a local database
A simple configuration example:
let store = default_postgress_pool("postgresql://my_user:my_pass@localhost:5432/my_db");
let cqrs = postgres_es::postgres_cqrs(pool, vec![])
Things that could be helpful:
- User guide along with an introduction to CQRS and event sourcing.
- Demo application using the warp http server.
- Change log