#cel #sqlx #expression #ledger #accounting #double #sqlx-ledger

bin+lib sqlx-ledger-cel-parser

A parser for the Common Expression Language (CEL)

45 releases

0.11.3 Mar 6, 2024
0.11.2 Nov 10, 2023
0.11.1 Oct 18, 2023
0.9.0 Jul 19, 2023
0.5.8 Mar 31, 2023

#8 in #cel

Download history 30/week @ 2023-12-22 125/week @ 2023-12-29 51/week @ 2024-01-05 33/week @ 2024-01-12 29/week @ 2024-01-19 37/week @ 2024-01-26 20/week @ 2024-02-02 56/week @ 2024-02-09 67/week @ 2024-02-16 68/week @ 2024-02-23 254/week @ 2024-03-01 102/week @ 2024-03-08 65/week @ 2024-03-15 420/week @ 2024-03-22 134/week @ 2024-03-29 24/week @ 2024-04-05

674 downloads per month
Used in 2 crates (via sqlx-ledger-cel-interpret…)

MIT license

8KB
169 lines

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

Dependencies

~2.7–5MB
~79K SLoC