Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnbcodes/sqlite-es
An SQLite implementation of a cqrs event store.
https://github.com/johnbcodes/sqlite-es
Last synced: about 1 month ago
JSON representation
An SQLite implementation of a cqrs event store.
- Host: GitHub
- URL: https://github.com/johnbcodes/sqlite-es
- Owner: johnbcodes
- License: other
- Created: 2022-11-15T01:09:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T14:47:49.000Z (11 months ago)
- Last Synced: 2024-04-25T17:41:22.023Z (5 months ago)
- Language: Rust
- Size: 37.1 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlite-es
> An SQLite implementation of the `PersistedEventRepository` trait in cqrs-es.
[![Build status](https://github.com/johnbcodes/sqlite-es/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/johnbcodes/sqlite-es/actions/workflows/ci.yml)
[![Crates.io](https://img.shields.io/crates/v/sqlite-es)](https://crates.io/crates/sqlite-es)
[![docs](https://img.shields.io/badge/API-docs-blue.svg)](https://docs.rs/sqlite-es)---
## Usage
Add to your Cargo.toml file:```toml
[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::(pool, vec![], ())
```Things that could be helpful:
- [User guide](https://doc.rust-cqrs.org) along with an introduction to CQRS and event sourcing.
- [Demo application](https://github.com/johnbcodes/cqrs-es-demo-sqlite) using [axum](https://github.com/tokio-rs/axum) web application framework.