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
2020-12-28 13:02:34 -06:00
2021-08-07 08:23:02 -05:00
2020-06-09 18:31:49 -07:00
2021-03-25 09:08:27 -04:00
2020-02-19 10:48:09 -06:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-07-24 10:50:22 -05:00
2020-02-19 10:48:09 -06:00
2020-02-19 10:48:09 -06:00
2021-05-22 11:33:42 -05:00
2021-03-25 09:08:27 -04:00
2021-07-24 10:48:07 -05:00
2021-07-24 10:48:07 -05:00
2021-07-31 11:06:03 -05:00
2021-07-31 11:06:03 -05:00
2021-07-06 19:59:41 -05:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2020-02-19 10:48:09 -06:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-05-03 22:20:58 +08:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2020-12-28 13:11:36 -06:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-01-09 09:40:43 -06:00
2017-04-03 07:35:19 -05:00
2020-02-19 10:48:09 -06:00
2021-03-25 09:08:27 -04:00
2020-02-19 10:48:09 -06:00

CI

pgtype

pgtype implements Go types for over 70 PostgreSQL types. pgtype is the type system underlying the https://github.com/jackc/pgx PostgreSQL driver. These types support the binary format for enhanced performance with pgx. They also support the database/sql Scan and Value interfaces and can be used with https://github.com/lib/pq.

Description
PostgreSQL driver and toolkit for Go
Readme MIT 7.6 MiB
Languages
Go 98.6%
HTML 1.2%
Shell 0.2%