Jack Christensen
2d20ba7ba4
Add doc for pool_max_conn_idle_time option
2020-02-01 09:45:20 -06:00
Jack Christensen
0ab69ce885
Merge branch 'freb-json_marshaling'
2020-01-29 09:26:45 -06:00
Patrick Ellul
5082e30c4c
Implement maximum connection idle time (MaxConnIdleTime) for pgxpool.
...
If a connection has been idle for longer than maxConnIdleTime, the health check will destroy it.
2020-01-28 16:36:34 +11:00
Jeffrey Stiles
5f363cb1f0
Add JSON marshalling for Bool, Date, JSON/B, Timestamptz
2020-01-27 16:19:43 -08:00
Jack Christensen
c9abb86f21
Ensure write failure in CopyFrom closes connection
2020-01-25 20:40:21 -06:00
Jack Christensen
67f2418279
Make copyErrChan buffered so goroutine can always terminate
...
It is possible the goroutine that is reading from copyErrChan will not
read in case of error.
2020-01-25 20:39:18 -06:00
Jack Christensen
139342081e
Fix CopyFrom deadlock when multiple NoticeResponse received during copy
...
fixes #21
2020-01-25 20:32:42 -06:00
Jack Christensen
53a5c14d50
Merge pull request #17 from freb/null_unmarshaljson
...
Support Null Status in UnmarshalJSON
2020-01-25 14:13:00 -06:00
Jack Christensen
366c926137
Merge pull request #668 from HowJMay/fix_typo
...
fix: Fix typo
2020-01-25 14:11:59 -06:00
HowJMay
8e88d70eb3
fix: Fix typo
...
Fix some typos in codebase
2020-01-25 15:36:19 +08:00
Jeffrey Stiles
06942241c4
Support Null Status in UnmarshalJSON
2020-01-24 16:38:15 -08:00
Jack Christensen
cf87e34792
Add JSON to shopspring-numeric extension
2020-01-24 17:07:41 -06:00
Jack Christensen
b01b35f466
Fix typo in docs
2020-01-24 14:58:59 -06:00
Jack Christensen
0bbaad1348
Add zeronull package for easier NULL <-> zero conversion
2020-01-24 11:23:28 -06:00
Jack Christensen
1059288751
Update changelog
v4.3.0
2020-01-23 21:05:53 -06:00
Jack Christensen
3a1f0bafbe
Update pgconn to 1.3.0
2020-01-23 21:00:24 -06:00
Jack Christensen
6124b07bb1
Update changelog
2020-01-23 20:57:13 -06:00
Jack Christensen
f909a64ff5
Update pgproto3 to v2.0.1
2020-01-23 20:55:52 -06: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
07b32353a4
Merge pull request #665 from alex/driver-context
...
Fixes #664 -- implement DriverContext for stdlib
2020-01-23 20:08:21 -06:00
Alex Gaynor
efbbde0487
Fixes #664 -- implement DriverContext for stdlib
2020-01-23 14:19:40 -06:00
Jack Christensen
a4375eb53f
Add test that Hijack'ed conn is no longer usable.
2020-01-17 17:42:20 -06:00
Jack Christensen
5952524511
Add Hijack and Construct
...
fixes #9
2020-01-17 17:38:56 -06:00
Jack Christensen
8be01d690f
Make Host comment more precise
2020-01-17 17:38:07 -06:00
Jack Christensen
595780be0f
Map io.EOF errors to io.ErrUnexpectedEOF
...
io.EOF is never expected during valid usage. In addition, database/sql
uses io.EOF as a sentinal value that all rows from a query have been
received.
See https://github.com/jackc/pgx/issues/662 .
2020-01-17 16:55:05 -06:00
Jack Christensen
69048c281c
Update changelog
v4.2.1
2020-01-13 08:51:08 -06:00
Jack Christensen
4ec6ee76fe
Update to pgconn v1.2.1
2020-01-13 08:50:28 -06:00
Jack Christensen
e7dd01e064
Update changelog
2020-01-13 08:48:32 -06:00
Jack Christensen
2582879459
Fix typo - rename ayncClose to asyncClose
2020-01-12 16:28:56 -06:00
Jack Christensen
0df97353b8
Fix racy usage of pgConn.contextWatcher in ayncClose
2020-01-12 16:27:46 -06:00
Jack Christensen
7a394d5c78
Update changelog
v4.2.0
2020-01-11 19:25:23 -06:00
Jack Christensen
fce41c0b24
Update pgconn and pgtype
2020-01-11 19:23:53 -06:00
Jack Christensen
186f4b3539
Update changelog
2020-01-11 19:15:23 -06:00
Jack Christensen
a48e9bf63c
Update changelog
2020-01-11 19:07:39 -06:00
Jack Christensen
fd2093cef8
Add statement type convenience methods to CommandTag and optimize
...
Added convenient way to check whether a statement was a select, insert,
update, or delete. These methods do not allocate.
RowsAffected now does not allocate even when a large number of rows are
affected. It also is multiple times faster, though the absolute change
is inconsequential.
2020-01-11 18:42:31 -06:00
Jack Christensen
b6669ae6dd
Add PgError.SQLState method
...
fixes #15
2020-01-11 18:23:41 -06:00
Jack Christensen
70bb7ab6cb
Merge branch 'bakape-master'
2020-01-11 18:10:33 -06:00
Jack Christensen
ed1391568c
Merge branch 'master' of git://github.com/bakape/pgconn into bakape-master
2020-01-11 18:08:34 -06:00
bakape
9decdbc2ec
Revert nil context support
2020-01-11 16:53:50 +02:00
Jack Christensen
98b3c57584
Try to cancel any in-progress query when a conn is closed by ctx cancel
...
See https://github.com/jackc/pgx/issues/659
2020-01-08 10:03:54 -06:00
Jack Christensen
be13c7ac54
Merge pull request #657 from malstoun/panicfix
...
Add arguments count check to execParamsAndPreparedPrefix
2020-01-04 08:29:19 -06:00
malstoun
8dc8431ef9
Add arguments count check to execParamsAndPreparedPrefix
2020-01-04 12:41:49 +03:00
bakape
9372218107
Don't synchronize with context.Background()
2020-01-01 19:34:56 +02:00
bakape
4d345164f1
Branch tests for nil context
2020-01-01 14:36:38 +02:00
bakape
7196234521
Benchmark nil context execution
2020-01-01 14:01:30 +02:00
bakape
89416dd805
Enable passing nil context
2020-01-01 13:09:50 +02:00
Jack Christensen
9cb58fc969
Fix large objects functionality when PreferSimpleProtocol = true
...
fixes #651
2019-12-27 11:17:12 -06:00
Jack Christensen
be1a8e51bc
Add PG 12 to Travis test matrix
2019-12-23 11:08:21 -06:00
Jack Christensen
eb360b07be
Tweak test for PG 12 compatibility
2019-12-23 11:08:21 -06:00