#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

#61 in Finance

Download history 90/week @ 2024-09-18 58/week @ 2024-09-25 28/week @ 2024-10-02 30/week @ 2024-10-09 19/week @ 2024-10-16 44/week @ 2024-10-23 19/week @ 2024-10-30 37/week @ 2024-11-06 32/week @ 2024-11-13 38/week @ 2024-11-20 156/week @ 2024-11-27 45/week @ 2024-12-04 30/week @ 2024-12-11 48/week @ 2024-12-18 36/week @ 2024-12-25 1/week @ 2025-01-01

120 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.2–4MB
~71K SLoC