10 releases

0.0.20 Nov 28, 2020
0.0.18 May 5, 2020
0.0.14 Apr 30, 2020

#185 in Database interfaces

Download history 21/week @ 2020-12-18 7/week @ 2021-01-01 4/week @ 2021-01-08 17/week @ 2021-01-15 6/week @ 2021-01-22 4/week @ 2021-01-29 5/week @ 2021-02-05 51/week @ 2021-02-12 16/week @ 2021-02-19 9/week @ 2021-02-26 23/week @ 2021-03-05 4/week @ 2021-03-12 23/week @ 2021-03-19 26/week @ 2021-03-26 22/week @ 2021-04-02

56 downloads per month

Custom license

28KB
549 lines

postgres-es

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

Build tag Crates.io docs

Installation

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

Usage

use postgres::{Connection, TlsMode};
use postgres_es::PostgresCqrs;

let connection = Connection::connect("postgresql://demo_user:demo_pass@localhost:5432/demo", TlsMode::None).unwrap();
let cqrs = postgres_es::postgres_cqrs(connection, vec![Box::new(my_query)])

TODOs

  • Some additional framework around GenericQueryRepository to simplify event replay.

Demo

A demo application is available here.

Dependencies

~5.5MB
~128K SLoC