Jack Christensen
4484831550
Prefer binary format for arrays
...
This improves performance decoding text[].
2023-02-10 20:21:25 -06:00
Jack Christensen
1f43e2e490
Fix text format array decoding with a string of "NULL"
...
It was incorrectly being treated as NULL instead of 'NULL'.
fixes https://github.com/jackc/pgx/issues/1494
2023-02-10 19:59:03 -06:00
Jack Christensen
c875abea84
Fix encode []any to array
...
https://github.com/jackc/pgx/issues/1488
2023-02-04 07:28:52 -06:00
Jack Christensen
c3258b7f52
Fix scan pointer to pointer to nil slice
...
https://github.com/jackc/pgx/issues/1263
2022-07-30 09:10:50 -05:00
Jack Christensen
cc7de81d3b
Make array helpers private
2022-04-16 14:21:40 -05:00
Jack Christensen
f1a4ae3070
Add Array and FlatArray container types
2022-04-16 11:33:45 -05:00
Jack Christensen
f14fb3d692
Replace interface{} with any
2022-04-09 09:12:55 -05:00
Jack Christensen
d13f651810
Finish importing pgio as internal package
2022-02-21 14:35:20 -06:00
Jack Christensen
9c538cd4a9
Remove actualTarget argument
2022-02-21 09:30:01 -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
1334d45d71
Parse array header to empty slices instead of nils
2022-02-08 11:35:40 -06:00
Jack Christensen
7193e48923
Restore multi-dimensional slices
...
Move ArrayCode to use pgtype wrapper pattern as well
2022-02-08 10:07:40 -06:00
Jack Christensen
28ea2cd190
Better error messages
2022-02-05 13:05:23 -06:00
Jack Christensen
ef7114a8ce
Add DecodeValue and DecodeDatabaseSQLValue for ArrayCodec
2022-01-31 20:39:50 -06:00
Jack Christensen
558748ef9c
ArrayCodec contains element DataType
2022-01-29 16:41:07 -06:00
Jack Christensen
47345e0d1e
ArrayHeader.EncodeBinary doesn't need ci parameter
2022-01-25 20:21:28 -06:00
Jack Christensen
551d26ca41
Change ArrayHeader.ElementOID to uint32
2022-01-25 20:19:02 -06:00
Jack Christensen
5ed95dcd1c
Expose wrap functions on ConnInfo
...
- Remove rarely used ScanPlan.Scan arguments
- Plus other refactorings and fixes that fell out of this change.
- Plus rows Scan now handles checking for changed type.
2022-01-22 17:50:19 -06:00
Jack Christensen
ad79dccd99
Builtin types are automatically wrapped if necessary
2022-01-08 23:44:53 -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
58b7486343
Initial codec support for int2 and int2[]
2021-12-23 13:12:54 -06:00