#money #currency #cash #parser

postgres_money

A library to generate and parse Postgres money types

6 releases (3 breaking)

0.4.1 Dec 1, 2024
0.4.0 Sep 3, 2024
0.3.0 Aug 5, 2020
0.2.0 May 7, 2020
0.1.1 May 7, 2020

#66 in Finance

Download history 8/week @ 2024-08-19 46/week @ 2024-08-26 332/week @ 2024-09-02 26/week @ 2024-09-09 90/week @ 2024-09-16 81/week @ 2024-09-23 15/week @ 2024-09-30 34/week @ 2024-10-07 27/week @ 2024-10-14 45/week @ 2024-10-21 16/week @ 2024-10-28 37/week @ 2024-11-04 28/week @ 2024-11-11 46/week @ 2024-11-18 137/week @ 2024-11-25 61/week @ 2024-12-02

274 downloads per month
Used in elephantry

Custom license

27KB
701 lines

postgres_money

Documentation

Support for PostgreSQL money type

Originally intended for use in rust-postgres.


lib.rs:

Dependencies

By default, this crate depends on the regex crate.

To activate JSON serialization via the serde crate, use syntax like:

[dependencies]
postgres_money = { version = "0.4.1", features = ["serde", "sql"] }

Visit the docs for Money for more info.

Dependencies

~2–4MB
~70K SLoC