33 releases
| 0.4.12 | Sep 13, 2024 |
|---|---|
| 0.4.11 | Feb 20, 2024 |
| 0.4.10 | Aug 27, 2023 |
| 0.4.9 | May 27, 2023 |
| 0.0.18 | May 5, 2020 |
#375 in Database interfaces
292 downloads per month
47KB
1K
SLoC
postgres-es
A Postgres implementation of the
PersistedEventRepositorytrait in cqrs-es.
Usage
Add to your Cargo.toml file:
[dependencies]
cqrs-es = "0.4.11"
postgres-es = "0.4.11"
Requires access to a Postgres DB with existing tables. See:
- Sample database configuration
- Use
docker-composeto 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
Runtime and TLS configuration
This package defaults to expect the Tokio runtime and the Rustls library for TLS. If a different combination is desired the appropriate feature flag should be used:
runtime-tokio-native-tlsruntime-tokio-rustls(default)runtime-async-std-native-tlsruntime-async-std-rustlsruntime-actix-native-tlsruntime-actix-rustls
Dependencies
~13–24MB
~335K SLoC