#cqrs #event-sourcing #serverless

mysql-es

A MySql implementation of an event repository for cqrs-es

9 releases

Uses new Rust 2021

0.4.3 Jun 2, 2022
0.4.2 May 18, 2022
0.4.1 Apr 28, 2022
0.3.2 Apr 19, 2022
0.2.4 Dec 30, 2021

#5 in #cqrs

Download history 4/week @ 2022-03-10 32/week @ 2022-03-17 1/week @ 2022-03-24 2/week @ 2022-03-31 3/week @ 2022-04-07 40/week @ 2022-04-14 11/week @ 2022-04-21 94/week @ 2022-04-28 43/week @ 2022-05-05 135/week @ 2022-05-12 51/week @ 2022-05-19 29/week @ 2022-05-26 100/week @ 2022-06-02 1/week @ 2022-06-09 12/week @ 2022-06-16

152 downloads per month

Apache-2.0

44KB
1K SLoC

mysql-es

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


Usage

Add to your Cargo.toml file:

[dependencies]
cqrs-es = "0.4.3"
mysql-es = "0.4.3"

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

A simple configuration example:

let store = default_mysql_pool("mysql://my_user:my_pass@localhost:3306/my_db");
let cqrs = mysql_es::mysql_cqrs(pool, vec![])

Things that could be helpful:

Crates.io docs docs

Dependencies

~13–20MB
~398K SLoC