sqlx-ledger

Crates.iosqlx-ledger
lib.rssqlx-ledger
version0.11.5
sourcesrc
created_at2023-01-20 12:10:34.158527
updated_at2024-11-26 16:34:31.696508
descriptionAn embeddable double sided accounting ledger built on PG/SQLx
homepage
repositoryhttps://github.com/GaloyMoney/sqlx-ledger
max_upload_size
id763331
size128,440
Justin Carter (bodymindarts)

documentation

https://docs.rs/sqlx-ledger

README

Sqlx-Ledger

This crate provides primitives for double sided accounting built on top of the sqlx Postgres integration.

It features:

  • Accounts can have balances on multiple journals
  • Multi currency / multi layer support
  • Template based transaction inputs for consistency
  • CEL based template interpolation
  • Event streaming to be notified of changes

The CEL interpreter is not complete but provides enough to support basic use cases. More will be added as the need arises.

To use it copy the migrations into your project and add the crate via cargo add sqlx-ledger.

Check out the docs for an example of how to use it

Commit count: 284

cargo fmt