mysql-es
A MySql implementation of the
PersistedEventRepositorytrait in cqrs-es.
Usage
Add to your Cargo.toml file:
[]
= "0.4.12"
= "0.4.12"
Requires access to a MySql DB with existing tables. See:
- Sample database configuration
- Use
docker-composeto quickly setup a local database
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:
- User guide along with an introduction to CQRS and event sourcing.
- Demo application using the warp http server.
- Change log
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-tlsruntime-tokio-rustls(default)runtime-async-std-native-tlsruntime-async-std-rustlsruntime-actix-native-tlsruntime-actix-rustls