12 Commits

Author SHA1 Message Date
Jack Christensen
76538434cf MarshalJSON should be defined on T not *T
Otherwise "%v" format would be used by json.Marshal(T).
2019-08-27 21:13:45 -05:00
Jack Christensen
432c2951c7 Add a lot of documentation 2019-06-08 19:38:34 -05:00
Jack Christensen
8d43b38287 RowDescription.Name is now []byte
Avoid allocation
2019-04-18 23:12:00 -05:00
Jack Christensen
2acb7b6d4e Reduce mallocs in RowDescription.Decode 2019-04-18 22:33:11 -05:00
Jack Christensen
16176b5151 Add go module support 2019-03-30 12:26:24 -05:00
Jack Christensen
a24d764440 Back out of some over optimization 2019-01-02 18:16:08 -06:00
Jack Christensen
7bd9b776cd Remove another allocation 2019-01-01 13:52:04 -06:00
Jack Christensen
f225b3d4a1 Avoid allocating strings in common message types 2019-01-01 13:47:37 -06:00
Jack Christensen
64b1ecf96f Type modifier should be int32 not uint32 2018-09-22 07:43:18 -05:00
Jack Christensen
d6312305ae Replace MarshalBinary with Encode
This new approach can avoid allocations.
2017-05-26 17:00:44 -05:00
Jack Christensen
eff55451cf Reduce allocations and copies in pgproto3
Altered chunkreader to never reuse memory.

Altered pgproto3 to to copy memory when decoding. Renamed UnmarshalBinary to
Decode because of changed semantics.
2017-04-29 11:55:14 -05:00
Jack Christensen
4e2900b774 Introduce pgproto3 package
pgproto3 will wrap the message encoding and decoding for the PostgreSQL
frontend/backend protocol version 3.
2017-04-29 10:02:38 -05:00