postgres-es2

Crates.iopostgres-es2
lib.rspostgres-es2
version0.2.3
sourcesrc
created_at2021-08-12 06:57:54.212616
updated_at2021-08-13 18:03:41.558625
descriptionA Postgres implementation of an event store for cqrs-es2.
homepage
repositoryhttps://github.com/brgirgis/postgres-es2
max_upload_size
id435140
size50,136
Bassem Girgis (brgirgis)

documentation

https://docs.rs/postgres-es2

README

postgres-es2

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

Publish Test Crates.io docs


Installation

[dependencies]
cqrs-es2 = "^0.2"
serde = { version = "^1.0.127", features = ["derive"] }
serde_json = "^1.0.66"
postgres-es2 = "0.2.3"
postgres = { version = "^0.19.1", features = ["with-serde_json-1"] }

Usage

use postgres::{Client, NoTls};
use postgres_es2::PostgresCqrs;

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

Change log

v0.2.3

  • Fix license documentation
  • Upgrade dev dependencies

v0.2.2

  • Rename Github repo

v0.2.1

  • Fix documentation

v0.2.0

  • Transfer of ownership
  • Upgrade dependencies
  • Add GitHub CI support
  • Convert to a modular structure
  • Automate GitHub deployment

TODO

  • Some additional framework around GenericQueryRepository to simplify event replay.

Demo

A demo application is available here.

Commit count: 0

cargo fmt