Jack Christensen
8b483e4223
Use generic / type safe puddle for pgxpool
2022-04-16 09:28:46 -05:00
Jack Christensen
95265a7421
Use Go 1.18
2022-04-09 09:11:19 -05:00
Jack Christensen
d13f651810
Finish importing pgio as internal package
2022-02-21 14:35:20 -06:00
Jack Christensen
032ea5f5c0
Finish import of chunkreader
2022-02-21 14:29:39 -06:00
Jack Christensen
95cbbfe441
Import pgproto3
...
Also copy in pgmock as an internal package.
2022-02-21 13:22:42 -06:00
Jack Christensen
7c5dbde59e
Upgrade remaining dependencies
2021-12-11 14:54:25 -06:00
Jack Christensen
8e2e8a7009
Remove external log adapters
2021-12-11 14:52:31 -06:00
Jack Christensen
ef2b70edad
Remove github.com/gofrs/uuid test dependency
2021-12-11 14:37:02 -06:00
Jack Christensen
731312fea8
Remove github.com/shopspring/decimal test dependency
2021-12-11 14:32:32 -06:00
Jack Christensen
9ab821620f
Remove github.com/Masterminds/semver/v3 test dependency
2021-12-11 14:27:00 -06:00
Jack Christensen
8c9646dbfe
Remove github.com/cockroachdb/apd test dependency
2021-12-11 13:45:37 -06:00
Jack Christensen
81168a61d1
Update go.mod go version to 1.17
2021-12-11 13:32:50 -06:00
Jack Christensen
72cc95e4dd
Bump module version to v5
2021-12-11 13:29:03 -06:00
Jack Christensen
0e293b966c
Finish import of pgconn
2021-12-04 14:06:57 -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
5b91cac132
Update to pgtype v1.9.1
2021-11-28 22:43:59 -05: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
b31b6d7a1a
Upgrade github.com/jackc/puddle
2021-09-11 11:20:28 -05:00
Jack Christensen
24f1d26fde
Upgrade pgconn and pgtype
2021-07-24 10:55:24 -05:00
Jack Christensen
640aa07df1
Temporary step to clean up go.sum
2021-07-24 10:39:13 -05:00
KeiichiHirobe
1470d69c58
go mod tidy
2021-07-17 08:39:31 -05:00
KeiichiHirobe
48f39340b3
switch from github.com/go-kit/kit/log to github.com/go-kit/log
2021-07-17 08:39:31 -05:00
Jack Christensen
785f279272
Upgrade dependencies
2021-07-10 10:02:16 -05:00
Jack Christensen
2114ca9458
Update pgconn and pgtype
2021-03-25 09:59:38 -04:00
Jack Christensen
a49f4bb135
Use errors instead of golang.org/x/xerrors
2021-03-25 09:55:12 -04:00
Jack Christensen
00704ce8b7
Skip test on too old PostgreSQL
2021-03-13 07:18:26 -06:00
Fabrice Aneche
9b59dd0346
added a kitlog level log adapter
2021-01-27 16:36:58 -06:00
Jack Christensen
8c7667376e
Update dependencies
2020-12-03 19:43:27 -06:00
Ethan Pailes
1df45d758d
fix stmtcache invalidation
...
This patch fixes jackc/pgx#841. The meat of the fix lives
in [a PR to the pgconn repo][1]. This change just checks
for errors after executing a prepared statement and informs
the underlying stmtcache about them so that it can properly
clean up. We don't try to get fancy with retries or anything
like that, just return the error and allow the application to handle it.
I had to make [some][1] [changes][2] to to the jackc/pgconn package as well
as this package.
Fixes #841
[1]: https://github.com/jackc/pgconn/pull/56
[2]: https://github.com/jackc/pgconn/pull/55
2020-11-12 08:15:13 -05:00
Jack Christensen
d660c48ffc
Upgrade pgconn to 1.7.2 to fix slice capacity issue
...
fixes #859
2020-11-03 19:23:01 -06:00
Jack Christensen
59a40dbf84
Upgrade pgconn and pgtype
2020-10-31 17:30:27 -05:00
Jack Christensen
f23bd4824d
Upgrade pgtype to v1.5.0
2020-09-26 11:56:52 -05:00
Jack Christensen
3e9614fdb4
Upgrade pgconn to v1.7.0
2020-09-26 11:56:52 -05:00
Jack Christensen
f9204b4c10
Upgrade puddle to v1.1.2
2020-09-26 11:56:52 -05:00
Jack Christensen
d4a300bd58
Fix: FieldDescriptions are available on Rows before calling Next
2020-09-05 13:24:57 -05:00
Jack Christensen
2ec377350b
Update Rows.Scan documentation to reflect reality.
...
Previously, the Scan documentation stated that scanning into a []byte
will skip the decoding process and directly copy the raw bytes received
from PostgreSQL.
This has not been true for at least 2 months. It is also undesirable
behavior in some cases such as a binary formatted jsonb. In that case
the '1' prefix needs to be stripped to have valid JSON. If the raw
bytes are desired this can easily be accomplished by scanning into
pgtype.GenericBinary or using Rows.RawValues.
In light of the fact that the new behavior is superior, and that it has
been in place for a significant amount of time, I have decided to
document the new behavior rather than change back to the old behavior.
2020-09-05 11:26:19 -05:00
Jack Christensen
997a16dbc5
Update pgconn for renamed CleanupChan
2020-08-20 22:09:50 -05:00
Jack Christensen
39b096d01e
pgxpool waits for connection cleanup to finish before making room in pool
...
refs #679
2020-08-20 22:04:56 -05:00
Jack Christensen
cce1d671f4
Update pgconn to v1.6.4
2020-07-29 22:18:05 -05:00
Jack Christensen
b8c5857880
Release v4.8.0
2020-07-22 06:49:50 -05:00
Jack Christensen
47cc8bb43e
Update pgconn and pgtype dependencies
2020-07-14 12:03:00 -05:00
Jack Christensen
8de0c48af0
Update dependencies
2020-06-27 12:30:58 -05:00
Jack Christensen
59a28af6de
Update dependencies
2020-06-06 11:00:22 -05:00
Jack Christensen
81140f6c27
Improve stdlib performance with large results
2020-06-06 09:49:14 -05:00
georgysavva
e29ce9f6d6
Add Config.Copy() in pgx and pgxpool packages. Conn.Config() and Pool.Config() return copy of the original config.
2020-06-02 13:35:05 +03:00
georgysavva
608451a215
Store original config in Conn before updating it.
2020-06-01 19:38:12 +03:00
Jack Christensen
4b95a747d7
Use pgtype.NewValue instead of reflect for Values()
...
This is both cleaner and necessary for pgtype.TypeValue types.
2020-05-30 13:32:15 -05:00
Jack Christensen
b1fc2870e5
go mod tidy
2020-05-16 08:21:04 -05:00
Jack Christensen
38dd42de4b
Support new pgtype format preferences
2020-05-10 14:09:02 -05:00
Jack Christensen
aabe5538a8
Optimize large result sets
2020-05-09 23:57:20 -05:00