Jack Christensen
e5685a34fc
Simplify encoding extended query arguments
2022-03-05 20:16:57 -06:00
Jack Christensen
39d2e3dc3f
Move chooseParameterFormatCode
2022-03-05 15:16:12 -06:00
Jack Christensen
1f2f239d09
Renamed pgtype.ConnInfo to pgtype.Map
2022-02-21 09:13:09 -06:00
Jack Christensen
bda10b2ec9
Rename pgtype.DataType to pgtype.Type
2022-02-21 09:01:48 -06:00
Jack Christensen
2b395f3730
pgtype.DataType.Codec can never be nil
2022-01-22 12:21:16 -06:00
Jack Christensen
db95cee40c
Remove pgtype.Value interface
2022-01-22 12:18:40 -06:00
Jack Christensen
3a90c6c879
Removed TextEncoder and BinaryEncoder
...
Restructured / fixed a lot of tests along the way.
2022-01-22 12:07:35 -06:00
Jack Christensen
dcaf102f8e
Introduce PlanEncode
2022-01-05 08:59:21 -06:00
Jack Christensen
9fc8f9b3a8
Initial passing tests for main pgx package
2021-12-30 18:12:47 -06:00
Jack Christensen
72cc95e4dd
Bump module version to v5
2021-12-11 13:29:03 -06:00
Jack Christensen
7e13db4538
Finish import of pgtype repo
...
Fix some tests that broke by merging repos
Tweak readme wording
2021-12-04 13:45:57 -06:00
Jack Christensen
a457da8bff
Unpin extendedQueryBuilder memory immediately after use
...
refs #1110
2021-11-13 17:12:09 -06:00
Jack Christensen
38dd42de4b
Support new pgtype format preferences
2020-05-10 14:09:02 -05:00
Jack Christensen
a66b09fbd8
Improve simple protocol / text format
...
Increased data type support for simple protocol. Improved test
coverage of simple protocol. This has the additional advantage of
exercising the text encoders and decoders.
2020-05-08 16:20:15 -05:00
Jack Christensen
f18351f61c
Use ++ instead of += 1
2020-05-07 22:28:46 -05:00
jaltavilla
9e94aa87b1
Move the second part of the nil check earlier in the function. This fixes a panic under certain conditions.
...
1. arg is a pointer to nil
2. The type of arg implements BinaryEncoder or TextEncoder
3. The implementation of that interface uses a non-pointer receiver
2019-10-03 18:31:55 -04:00
Jack Christensen
6972a57421
pgtype.OID type should only be used for scanning and encoding values
...
It was a mistake to use it in other contexts. This made interop
difficult between pacakges that depended on pgtype such as pgx and
packages that did not like pgconn and pgproto3. In particular this was
awkward for prepared statements.
This is preparation for removing pgx.PreparedStatement in favor of
pgconn.PreparedStatement.
2019-08-24 13:55:57 -05:00
Jack Christensen
be89cce214
Fix NULL with extendedQueryBuilder
2019-06-01 17:30:38 -05:00
Jack Christensen
ea31df3b50
Extract extendedQueryBuilder
2019-05-04 12:32:21 -05:00