mysql-es

Crates.iomysql-es
lib.rsmysql-es
version0.4.12
sourcesrc
created_at2021-12-30 19:41:32.722213
updated_at2024-09-13 16:33:29.495199
descriptionA MySql implementation of an event repository for cqrs-es.
homepage
repositoryhttps://github.com/serverlesstechnology/mysql-es
max_upload_size
id505476
size50,780
Serverless Technology (serverlesstechnology)

documentation

https://docs.rs/mysql-es

README

mysql-es

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


Usage

Add to your Cargo.toml file:

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

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

Commit count: 46

cargo fmt