pgx/ext
Eli Treuherz db84905b7f Add NullDecimal to shopspring-numeric
The shopspring/decimal package provides a NullDecimal struct intended
for use with nullable SQL NUMERICs and numbers. It has Scanner and
Valuer implementations already, but adding it to this package allows
it to be used with the binary encoding as well.

The implementation is very straightforward, but the tests have been made
slightly more complicated. The previous version wasn't testing the
decimal.Decimal cases, and this change adds those as well as new
NullDecimal cases. I've added some logic to the test harness to catch
these as you need to use the Equals method to properly compare Decimals.
2021-08-07 08:23:02 -05:00
..
gofrs-uuid Revert "Temporarily delete tests and pgxtype to break recursive dependency with pgx" 2021-07-24 10:40:30 -05:00
shopspring-numeric Add NullDecimal to shopspring-numeric 2021-08-07 08:23:02 -05:00