Crates.io | mysql-es |
lib.rs | mysql-es |
version | 0.4.12 |
source | src |
created_at | 2021-12-30 19:41:32.722213 |
updated_at | 2024-09-13 16:33:29.495199 |
description | A MySql implementation of an event repository for cqrs-es. |
homepage | |
repository | https://github.com/serverlesstechnology/mysql-es |
max_upload_size | |
id | 505476 |
size | 50,780 |
A MySql implementation of the
PersistedEventRepository
trait in cqrs-es.
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:
docker-compose
to quickly setup a local databaseA 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:
User guide along with an introduction to CQRS and event sourcing.
Demo application using the warp http server.
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