Jack Christensen a8802b16cc Value, EncodeBinary, EncodeText, and MarshalJSON on T instead of *T
Methods defined on T are also available on *T. This change makes Value
consistent with database/sql Value implementations. It also makes Value,
EncodeBinary, and EncodeText more convenient to use because you can
pass T or *T as an argument to a query.

The MarshalJSON change is even more significant because without it
json.Marshal would generate the "%v" format instead of the implemented
MarshalJSON.

Thought this technically changes the interface, because *T will be
automatically dereferenced as needed it shouldn't be a breaking change.

See: https://github.com/jackc/pgx/issues/538 for initial discussion.
2019-08-27 20:46:16 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-08-24 13:59:25 -05:00
2019-08-24 13:59:25 -05:00
2019-05-20 16:26:58 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-06-08 11:45:47 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 19:14:08 -05:00
2019-08-25 00:32:11 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2017-03-23 18:41:52 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 17:43:44 -05:00
2017-04-03 07:35:19 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
Description
PostgreSQL driver and toolkit for Go
MIT 7.8 MiB
Languages
Go 98.6%
HTML 1.2%
Shell 0.2%