9 Commits

Author SHA1 Message Date
Jack Christensen
e45a42c7ef Do not create empty slices in Bind.Decode 2017-05-19 15:50:27 -05:00
Jack Christensen
c6aef15181 Add basic pgmock support
Primarily useful for testing pgx itself. Design is still subject to change.
2017-05-13 17:56:54 -05:00
Jack Christensen
80edb27dee Fix Bind Decode to advance rp 2017-05-13 16:19:55 -05:00
Jack Christensen
61d4386931 Update pgproto3 to enable pgmock 2017-05-06 08:48:40 -05:00
Jack Christensen
eb9fc6e7a5 Fix queries with more than 32 columns
fixes #270
2017-05-01 19:46:37 -05:00
Jack Christensen
d25abf5674 Add pgproto3.Backend 2017-05-01 18:11:55 -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
de9bb7e6d8 Use flyweight pattern for pgproto3 messages 2017-04-29 11:01:54 -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