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

sqlx-ledger-cel-interpreter

An interpreter for the Common Expression Language (CEL)

45 releases

0.11.5 Nov 26, 2024
0.11.4 Jun 21, 2024
0.11.3 Mar 6, 2024
0.11.2 Nov 10, 2023
0.5.8 Mar 31, 2023

#1971 in Parser implementations

39 downloads per month
Used in sqlx-ledger

MIT license

41KB
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

~4.5–8.5MB
~143K SLoC