Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

GaloyMoney/sqlx-ledger

Repository files navigation

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