Igor V. Kozinov
4043edafe7
Add error field to logger on rows close
2020-05-27 14:44:53 +06:00
Jack Christensen
94ba730bb1
Use simplified pgtype ScanPlan
2020-05-10 14:09:26 -05:00
Jack Christensen
aabe5538a8
Optimize large result sets
2020-05-09 23:57:20 -05:00
Jack Christensen
fd4e692323
Add Rows.Values support for unknown types
2020-01-23 20:50:21 -06:00
Jack Christensen
f6feb39655
Fix Rows.Values() fallback to generic decoder
...
fixes #666
2020-01-23 20:41:22 -06:00
Jack Christensen
15ea38aae5
Document interfaces that may have methods added in the future
2019-10-12 09:35:29 -05:00
Jack Christensen
7d053e4d5c
Replace RowsFromResultReader with ScanRow function
2019-09-10 18:38:10 -05:00
Jack Christensen
76348773bd
Make Conn.ConnInfo private
2019-09-10 18:09:21 -05:00
Jack Christensen
a8691a7066
Add RawValues to Rows
2019-09-10 17:58:24 -05:00
Jack Christensen
b5ce0220f8
Add CommandTag to Rows interface
...
This allows handling queries where it is unknown if there will be a
result set or not. If it is not a result set returning query the
command tag will still be available.
2019-09-02 09:53:26 -05:00
Jack Christensen
53921a0a22
Allow reading a result row multiple times
...
refs #478
2019-08-31 10:50:14 -05:00
Jack Christensen
4a320500cf
Remove barely used ProtocolError type
2019-08-27 18:31:54 -05: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
3028821487
Add context.Context to Logger interface
...
This allows custom logger adapters to add additional fields to log
messages. For example, a HTTP server may with to log the request ID.
fixes #428
2019-08-03 16:16:21 -05:00
Jack Christensen
29f02807b0
Restore simple protocol support
2019-05-20 20:36:03 -05:00
Jack Christensen
583c8d3b25
Use pgproto3.FieldDescription instead of pgx version
...
This allows removing a malloc and memcpy.
2019-05-04 13:47:18 -05:00
Jack Christensen
c7d03eb555
Add RowsFromResultReader
2019-04-24 15:57:50 -05:00
Jack Christensen
a19ca0638f
Reorganize conn and rows
2019-04-24 14:16:52 -05:00