Commit Graph

2708 Commits (dcaf102f8e211f69b39f90125da25388b394b6de)

Author SHA1 Message Date
Jack Christensen 19ec4d505f Import to pgx main repo in pgconn subdir 2021-12-04 13:51:24 -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 7aeb42b80c Merge branch 'pgtypeimport' into v5-dev 2021-12-04 13:10:07 -06:00
Jack Christensen 44214b7854 Import to pgx main repo in pgtype subdir 2021-12-04 13:07:54 -06:00
Jack Christensen 550cc7b529 wip 2021-12-04 12:53:20 -06:00
Jack Christensen e22675d20b ValueTranscoder uses new interfaces 2021-12-04 12:45:20 -06:00
Jack Christensen 8f454e4cd6 Add initial ParamEncoder and ResultDecoder support to core types 2021-12-04 11:36:50 -06:00
Jack Christensen 2226a5e14e Remove explicit https://github.com/gofrs/uuid integration
Better integration is now enabled by github.com/jackc/pgx-gofrs-uuid.
2021-11-29 12:55:23 -05:00
Jack Christensen 0d9bd0366b Add Numeric.MarshalJSON 2021-11-29 12:55:23 -05:00
Jack Christensen 55195b3a64 Add Numeric.Getter 2021-11-29 12:55:23 -05:00
Jack Christensen 1a3e5b0266 Remove explicit shopspring/decimal integration
Better integration is now enabled by github.com/jackc/pgx-shopspring-decimal.
2021-11-29 12:55:23 -05:00
Jack Christensen 55ad9007cd Finish Numeric changes for easy integration with 3rd party types 2021-11-29 12:55:23 -05:00
Jack Christensen c0eae32e8b Remove ConnInfo.DeepCopy() 2021-11-29 12:55:23 -05:00
Jack Christensen 63a8fe12d7 Add hooks for efficiently integrating with 3rd party types 2021-11-29 12:55:23 -05:00
Jack Christensen 2886673a3c Add full query decoding benchmarks 2021-11-29 12:55:23 -05:00
Jack Christensen 11d351dd75 Replace Status with Valid to conform to database/sql style
https://github.com/jackc/pgx/issues/1060
2021-11-29 12:55:19 -05:00
Jack Christensen 37044f47f5 Remove tests against github.com/lib/pq 2021-11-29 12:54:23 -05:00
Jack Christensen cf0de913ee Use pgtype.UUID for test instead of ext UUID 2021-11-29 12:29:02 -05:00
Jack Christensen 9fdaf7da81 Release v4.14.1 2021-11-28 22:46:52 -05:00
Jack Christensen 5b91cac132 Update to pgtype v1.9.1 2021-11-28 22:43:59 -05:00
Jack Christensen e95ebc02d9 Release v1.9.1 2021-11-28 16:29:42 -06:00
Jack Christensen 84bb47fb26 Fix: Timestamp DecodeBinary is in UTC
Preserve previously existing behavior.

fixes #138
2021-11-24 07:57:51 -06:00
Jille Timmermans 1d606a91b8 Change constant definition syntax so they show up in godoc
for TxAccessMode, TxDeferrableMode and TxIsoLevel

After this commit, Godoc understands these are the valid values of these
types and shows them together in the documentation.
2021-11-22 09:47:15 -06:00
Jack Christensen 058f346079 Start pgxpool background health check after initial connections
Otherwise the health check and the create initial connection(s) may both
create connections. While this generally wouldn't be a real problem it
did cause TestPoolBackgroundChecksMinConns to flicker on CI.
2021-11-20 11:19:10 -06:00
Jack Christensen a55e88ee48 Do not run CI with verbose
Makes it very difficult to see what is actually failing.
2021-11-20 10:53:51 -06:00
Jack Christensen 9da0a7aef7 Release v4.14.0 2021-11-20 10:48:31 -06:00
Jack Christensen 968a00094e Further increase wait times on timing tests for CI 2021-11-20 10:43:13 -06:00
Jack Christensen 885f39c368 Increase wait time in timing sensitive test 2021-11-20 10:28:52 -06:00
Jack Christensen 09c360f8aa Update supported / tested platforms 2021-11-20 10:25:10 -06:00
Jack Christensen a9f8400b01 Upgrade pgx dependency
Fix test that was comparing times directly instead of using Equal.
2021-11-20 10:20:02 -06:00
Jack Christensen e80bc75409 Release v1.9.0 2021-11-20 10:09:43 -06:00
Jack Christensen 662ecb496f Release v1.10.1 2021-11-20 09:56:46 -06:00
Jack Christensen a457da8bff Unpin extendedQueryBuilder memory immediately after use
refs #1110
2021-11-13 17:12:09 -06:00
Jack Christensen 851091fdf4 Improve Query docs regarding error detection 2021-11-13 04:42:28 -06:00
Jack Christensen 146268e829 Move context test above bad statement cleanup 2021-11-13 04:12:35 -06:00
Georges Varouchas cd7dcd5802 have lru.Get() always check if context is already expired 2021-11-13 04:10:45 -06:00
Georges Varouchas 141f132ae7 add a unit test on LRU context check
TestLRUContext highlights the lack of context check when querying for a cached value
2021-11-13 04:10:45 -06:00
Jack Christensen 162dc65eff Make ContextWatcher concurrency safe
fixes #94
2021-11-06 08:57:49 -05:00
Jim Tsao decb75f242 Add numeric tests for infinity encoding/decoding 2021-11-01 07:28:13 -05:00
Jim Tsao 14c515db82 Add infinity support for Numeric Binary Encode/Decode 2021-11-01 07:28:13 -05:00
Jim Tsao 8890a746d7 Add infinity support for Numeric Text Encode/Decode 2021-11-01 07:28:13 -05:00
Jim Tsao 001b3166b9 Add infinity support for Numeric AssignTo 2021-11-01 07:28:13 -05:00
Jim Tsao e0f9fc5212 Add infinity support for Numeric Set/Get 2021-11-01 07:28:13 -05:00
Daniel 6cd6c43dcb Fix failing test 2021-11-01 07:26:49 -05:00
Daniel 8bc6aa6b49 Fix goroutine leak and unclosed connections 2021-10-30 10:25:09 -05:00
Daniel 36708a1cc6 Eager initialize minpoolsize on connect 2021-10-30 10:25:09 -05:00
Jack Christensen a29019de9d Fix binary decoding of very large numerics.
fixes #133
2021-10-30 10:17:58 -05:00
Jack Christensen 2caf113f1b Fix parsing text array with negative bounds
e.g. '[-4:-2]={1,2,3}'

fixes #132
2021-10-30 09:00:48 -05:00
urso 044ba47522 Add zerologadapter.NewContextLogger
This change introduces a new zerologadapter that allows
users to pass the actual logger via context.Context. Especially HTTP
middleware might choose to use `(*zerolog.Logger).WithContext` and
`zerolog.Ctx`. Allowing users to extract the logger from the context
keeps the full enriched logger available when pgx emits logs.
2021-10-30 08:52:59 -05:00
Adrian Sieger b72f8084b5 implement nullable values for hstore maps 2021-10-30 08:38:48 -05:00