#cqrs #event-sourcing #serverless

postgres-es

A Postgres implementation of an event repository for cqrs-es

27 releases

Uses new Rust 2021

0.4.4 Jul 14, 2022
0.4.2 May 18, 2022
0.3.0 Mar 18, 2022
0.2.4 Dec 21, 2021
0.0.18 May 5, 2020

#137 in Database interfaces

Download history 76/week @ 2022-04-17 123/week @ 2022-04-24 145/week @ 2022-05-01 178/week @ 2022-05-08 472/week @ 2022-05-15 141/week @ 2022-05-22 240/week @ 2022-05-29 224/week @ 2022-06-05 63/week @ 2022-06-12 31/week @ 2022-06-19 31/week @ 2022-06-26 36/week @ 2022-07-03 78/week @ 2022-07-10 121/week @ 2022-07-17 147/week @ 2022-07-24 82/week @ 2022-07-31

428 downloads per month

Apache-2.0

45KB
1K SLoC

postgres-es

A Postgres implementation of the PersistedEventRepository trait in cqrs-es.


Usage

Add to your Cargo.toml file:

[dependencies]
cqrs-es = "0.4.4"
postgres-es = "0.4.4"

Requires access to a Postgres DB with existing tables. See:

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:

Crates.io docs docs

Dependencies

~21MB
~475K SLoC