15 releases

0.4.11 Feb 20, 2024
0.4.10 Aug 27, 2023
0.4.9 May 27, 2023
0.4.8 Mar 7, 2023
0.2.4 Dec 30, 2021

#785 in Database interfaces

Download history 115/week @ 2024-02-16 34/week @ 2024-02-23 9/week @ 2024-03-01 1/week @ 2024-03-08 1/week @ 2024-03-15 108/week @ 2024-03-29

110 downloads per month

Apache-2.0

46KB
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.11"
mysql-es = "0.4.11"

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:

Runtime and TLS configuration

This package defaults to expect the Tokio runtime and the Rustls library for TLS. If a different combination is desired the appropriate feature flag should be used:

  • runtime-tokio-native-tls
  • runtime-tokio-rustls (default)
  • runtime-async-std-native-tls
  • runtime-async-std-rustls
  • runtime-actix-native-tls
  • runtime-actix-rustls

Crates.io docs docs

Dependencies

~18–31MB
~545K SLoC