#event-sourcing #sqlite #cqrs #events

sqlite-es

An SQLite implementation of an event repository for cqrs-es

3 releases

0.4.10 Oct 19, 2023
0.4.9 Jul 14, 2023
0.4.5 Nov 15, 2022

#12 in #cqrs

Download history 23/week @ 2024-02-26 15/week @ 2024-03-04 67/week @ 2024-03-11 118/week @ 2024-03-18 170/week @ 2024-03-25 60/week @ 2024-04-01 52/week @ 2024-04-08 5/week @ 2024-04-15 167/week @ 2024-04-22 72/week @ 2024-04-29 27/week @ 2024-05-06 57/week @ 2024-05-13 9/week @ 2024-05-20 47/week @ 2024-05-27 40/week @ 2024-06-03 44/week @ 2024-06-10

140 downloads per month

Apache-2.0

45KB
1K SLoC

sqlite-es

An SQLite implementation of the PersistedEventRepository trait in cqrs-es.

Build status Crates.io docs


Usage

Add to your Cargo.toml file:

[dependencies]
cqrs-es = "0.4.5"
sqlite-es = "0.4.5"

A simple configuration example:

let store = default_sqlite_pool("sqlite://my.db");
let cqrs = sqlite_es::sqite_cqrs::<MyAggregate>(pool, vec![], ())

Things that could be helpful:


lib.rs:

sqlite-es

An SQLite implementation of the EventStore trait in cqrs-es.

Dependencies

~32–44MB
~744K SLoC