#accounting #expression-language #interpreter #event-streaming #cel #input #postgresql

sqlx-ledger-cel-interpreter

An interpreter for the Common Expression Language (CEL)

43 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

#1315 in Parser implementations

Download history 27/week @ 2023-12-22 124/week @ 2023-12-29 47/week @ 2024-01-05 31/week @ 2024-01-12 24/week @ 2024-01-19 34/week @ 2024-01-26 20/week @ 2024-02-02 54/week @ 2024-02-09 65/week @ 2024-02-16 67/week @ 2024-02-23 254/week @ 2024-03-01 114/week @ 2024-03-08 65/week @ 2024-03-15 344/week @ 2024-03-22 130/week @ 2024-03-29 21/week @ 2024-04-05

590 downloads per month
Used in sqlx-ledger

MIT license

37KB
1K SLoC

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

~5–8.5MB
~142K SLoC