#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

#82 in Finance

Download history 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 2/week @ 2025-01-15 29/week @ 2025-02-05 10/week @ 2025-02-12 28/week @ 2025-02-19 2/week @ 2025-02-26

69 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
~74K SLoC