#sqlite #event-sourcing #cqrs

sqlite-es

An SQLite implementation of an event repository for cqrs-es

4 releases

0.4.12 Aug 20, 2024
0.4.10 Oct 19, 2023
0.4.9 Jul 14, 2023
0.4.5 Nov 15, 2022

#396 in Database interfaces

Download history 220/week @ 2024-07-23 53/week @ 2024-07-30 41/week @ 2024-08-06 72/week @ 2024-08-13 250/week @ 2024-08-20 46/week @ 2024-08-27 74/week @ 2024-09-03 42/week @ 2024-09-10 54/week @ 2024-09-17 131/week @ 2024-09-24 78/week @ 2024-10-01 124/week @ 2024-10-08 225/week @ 2024-10-15 112/week @ 2024-10-22 192/week @ 2024-10-29 202/week @ 2024-11-05

737 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

~33–45MB
~750K SLoC