Skip to content

A Postgres implementation of a cqrs event store.

License

Notifications You must be signed in to change notification settings

inosion/postgres-es

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postgres-es

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

Build tag Crates.io docs

Installation

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

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.

About

A Postgres implementation of a cqrs event store.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 99.3%
  • Other 0.7%