Commit Graph

3065 Commits (a89a400b6998f5831bbea9e29301dd54f1203861)

Author SHA1 Message Date
Jack Christensen a89a400b69 Fix documentation for Rows.RawValues and test new behavior 2022-04-30 08:27:57 -05:00
Jack Christensen 81d55568f6 Clarify v5 supported Go version plans
fixes https://github.com/jackc/pgx/issues/1197
2022-04-28 08:13:51 -05:00
Jack Christensen e8f81bb7de Merge branch 'master' into v5-dev
Rewrite fix for https://github.com/jackc/pgx/issues/1196 for pgx v5.
2022-04-28 08:06:34 -05:00
Jack Christensen d9622f438d Merge remote-tracking branch 'pgconn/master' into v5-dev 2022-04-28 08:01:26 -05:00
Jack Christensen 7ceeea6fe6 Fix explicitly prepared statements with describe statement cache mode
fixes https://github.com/jackc/pgx/issues/1196
2022-04-28 07:58:24 -05:00
Jack Christensen 0c6266ef30 Fix scanning null did not overwrite slice 2022-04-26 14:52:01 -05:00
sireax 84e8238fa0 Fix: setting krbspn and krbsrvname did'n work 2022-04-26 08:54:24 -05:00
Jack Christensen 7427820aba Scan binary UUID to string
https://github.com/jackc/pgx/issues/1191
2022-04-26 08:37:10 -05:00
Jack Christensen d13bdbbd35 NamedArgs allows underscore 2022-04-25 10:16:47 -05:00
Jack Christensen c093c4af21 Update changelog 2022-04-23 18:56:38 -05:00
Jack Christensen 107196ab0c Add NamedArgs
https://github.com/jackc/pgx/issues/1186
https://github.com/jackc/pgx/issues/387
2022-04-23 18:45:38 -05:00
Jack Christensen b72b0daa5a Add QueryRewriter interface 2022-04-23 17:26:42 -05:00
Jack Christensen f9857b73d9 Skip multirange tests on PG < 14 2022-04-23 16:55:24 -05:00
Jack Christensen dfb681d716 Build / rewrite / port multirange support 2022-04-23 12:50:18 -05:00
Jack Christensen 126b582f19 Make range helpers private 2022-04-23 11:10:04 -05:00
Jack Christensen 1f4b34f932 Merge branch 'master' into v5-dev 2022-04-23 11:05:24 -05:00
Jack Christensen cb45e85954 Merge remote-tracking branch 'pgtype/master' into v5-dev 2022-04-23 11:00:07 -05:00
Jack Christensen c323ab6662 Merge remote-tracking branch 'pgconn/master' into v5-dev 2022-04-23 10:48:44 -05:00
Jack Christensen a92f1df1df Merge remote-tracking branch 'pgproto3/master' into v5-dev
Pull in pgproto3 changes and update for pgx v5
2022-04-23 10:43:48 -05:00
Jack Christensen 468b793282 Skip tests with unsupported types on CockroachDB 2022-04-23 10:34:53 -05:00
Jack Christensen 791176f4fe Add link to github.com/vgarvardt/pgx-google-uuid 2022-04-23 10:26:41 -05:00
Jack Christensen c6335a30d0 Add link to github.com/vgarvardt/pgx-google-uuid 2022-04-23 10:25:08 -05:00
Jack Christensen 8c1815e02e Release v4.16.0 2022-04-21 20:15:18 -05:00
Jack Christensen c74f3f058f Add link to https://github.com/otan/gopgkrb5 2022-04-21 20:08:28 -05:00
Jack Christensen e012ea0bed Upgrade pgconn, pgtype, and pgproto3 2022-04-21 20:05:32 -05:00
Jack Christensen c5a0faca99 Release v1.11.0 2022-04-21 19:58:17 -05:00
Jack Christensen 49a860125f Try to pacify finicky timing test on CI 2022-04-21 19:52:34 -05:00
Jack Christensen 9bb49f990f Release v1.12.0 2022-04-21 19:49:01 -05:00
Jack Christensen 1b244eec5d Upgrade to pgproto3 v2.3.0 2022-04-21 19:48:43 -05:00
Jack Christensen 097b6aacb7 Add time to logging failed Exec
fixes #1189
2022-04-21 19:26:25 -05:00
Jack Christensen c63f912615 Hstore.Set accepts map[string]Text 2022-04-21 19:19:32 -05:00
Jack Christensen cc7de81d3b Make array helpers private 2022-04-16 14:21:40 -05:00
Jack Christensen 1c90746cf5 Update CHANGELOG 2022-04-16 14:14:59 -05:00
Jack Christensen e94cf1fbaa Remove AcquireConn and ReleaseConn
Superseded by (*sql.Conn) Raw()
2022-04-16 14:07:59 -05:00
Jack Christensen a01a9ee6df Automatically register Array and FlatArray 2022-04-16 14:04:25 -05:00
Jack Christensen fccaebc93d Add pgtype.Map.SQLScanner
This enables compatibility with database/sql for types that cannot
implement Scan themselves.
2022-04-16 13:38:27 -05:00
Jack Christensen f1a4ae3070 Add Array and FlatArray container types 2022-04-16 11:33:45 -05:00
Jack Christensen d4abe83edb Revert use generics for RangeCodec
Reverted almost all of 976b1e0.

Still may consider a way to get DecodeValue to be strongly typed but
that feature isn't worth the complications of generics. Especially in
that applying this style to ArrayCodec would make Conn.LoadType
impossible for arrays.
2022-04-16 10:39:12 -05:00
Jack Christensen 8b483e4223 Use generic / type safe puddle for pgxpool 2022-04-16 09:28:46 -05:00
Jack Christensen beb4e2cfbc SQLCODE 42501 is fatal connect error
Don't try fallback configs. Match libpq behavior.

fixes https://github.com/jackc/pgconn/issues/108
2022-04-16 07:26:56 -05:00
Jack Christensen 25558de3bd Add UnmarshalJSON to pgtype.Int2
fixes https://github.com/jackc/pgtype/issues/153
2022-04-16 07:07:31 -05:00
Oliver Tan 90ef5bba3f add GSSAPI authentication
This commit adds the GSSAPI authentication to pgx. This roughly follows
the lib/pq implementation:
* We require registering a provider to avoid mass dependency inclusions
  that may not be desired (https://github.com/lib/pq/issues/971).
* Requires the pgproto3 package be updated. I've included my custom fork
  for now.
2022-04-15 08:17:48 -05:00
Jack Christensen b03b1666a6 Add Hijack to pgxpool.Conn 2022-04-14 11:50:12 -05:00
Oliver Tan 175856ffd3 add GSS authentication to pgproto3 2022-04-12 07:13:21 -05:00
Jack Christensen bb8c52f7e8 Add doc regarding default pgxpool.Config.MaxConns
refs #1183
2022-04-11 18:49:11 -05:00
Jack Christensen 1ef2cee36e Update changelog 2022-04-09 10:26:45 -05:00
Jack Christensen 976b1e03a9 Use generics for RangeCodec
This allows DecodeValue to return a more strongly typed value.
2022-04-09 10:21:17 -05:00
Jack Christensen c8025fd79a Use generics for Range values 2022-04-09 09:34:37 -05:00
Jack Christensen f14fb3d692 Replace interface{} with any 2022-04-09 09:12:55 -05:00
Jack Christensen 95265a7421 Use Go 1.18 2022-04-09 09:11:19 -05:00