sqlx-ledger 0.8.1

An embeddable double sided accounting ledger built on PG/SQLx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Sqlx-Ledger

This crate provides primitives for double sided accounting built on top of the [sqlx](https://github.com/launchbadge/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](./migrations) into your project and add the crate via `cargo add sqlx-ledger`.

Check out the [docs](https://docs.rs/sqlx-ledger/latest/sqlx_ledger/) for an example of how to use it