Crates.io | cqrs-es2-sql |
lib.rs | cqrs-es2-sql |
version | 0.1.0 |
source | src |
created_at | 2021-08-14 22:01:03.753617 |
updated_at | 2021-08-14 22:01:03.753617 |
description | A SQL implementation of an event store for cqrs-es2. |
homepage | |
repository | https://github.com/brgirgis/cqrs-es2-sql |
max_upload_size | |
id | 436999 |
size | 46,837 |
A SQL implementation of the cqrs-es2 stores.
[dependencies]
cqrs-es2 = "^0.3"
serde = { version = "^1.0.127", features = ["derive"] }
serde_json = "^1.0.66"
cqrs-es2-sql = "0.1.0"
postgres = { version = "^0.19.1", features = ["with-serde_json-1"] }
use postgres::{Client, NoTls};
use cqrs_es2_sql::postgres_cqrs;
let connection = Client::connect("postgresql://demo_user:demo_pass@localhost:5432/demo", NoTls).unwrap();
let cqrs = postgres_cqrs(connection, vec![Box::new(my_query)])
v0.1.0
cqrs-es2
version 0.4.0GenericQueryRepository
to simplify event replay.A demo application is available here.