1806 Commits

Author SHA1 Message Date
Jack Christensen
b8c5857880 Release v4.8.0 v4.8.0 2020-07-22 06:49:50 -05:00
Jack Christensen
4ebf1d2e0b Passthrough all parameters directly to pgx 2020-07-18 08:44:57 -05:00
Jack Christensen
42cbd0fa46 Release v4.7.2 v4.7.2 2020-07-14 12:07:51 -05:00
Jack Christensen
47cc8bb43e Update pgconn and pgtype dependencies 2020-07-14 12:03:00 -05:00
Jack Christensen
9b480f4785 Terminate connection when Commit fails and leaves tx open
refs #787
2020-07-13 22:49:35 -05:00
Jack Christensen
c8a9da960c Revert "stdlib: close connection on Tx commit or rollback that doesn't end Tx"
This reverts commit 2583134306da7d77427188acc1163aa636e28904.

This fix should actually be on the main Tx implementation.
2020-07-13 22:48:28 -05:00
Jack Christensen
2583134306 stdlib: close connection on Tx commit or rollback that doesn't end Tx
refs #787
2020-07-13 22:40:42 -05:00
Jack Christensen
5b498c4529 Link to https://github.com/georgysavva/scany
refs #788
2020-07-13 07:18:36 -05:00
Jack Christensen
11428bbc02 Document methods on Rows allowed to be called after Close() 2020-07-02 18:35:47 -05:00
Jack Christensen
eeda0368e6
Merge pull request #784 from zikaeroh/fix-column-perf
Cache column names in stdlib Rows
2020-06-29 14:40:23 -05:00
zikaeroh
84510c4590 Cache column names in stdlib Rows 2020-06-29 10:20:13 -07:00
Jack Christensen
3568b908c0 Release v4.7.1 v4.7.1 2020-06-29 10:43:18 -05:00
Jack Christensen
bf47a3d0a4 Fix stdlib decoding error with certain order and combination of fields
fixes #781
2020-06-29 09:38:53 -05:00
Jack Christensen
34cbb61138 Release v4.7.0 v4.7.0 2020-06-27 12:31:13 -05:00
Jack Christensen
8de0c48af0 Update dependencies 2020-06-27 12:30:58 -05:00
Jack Christensen
f8a5bc8273 Do not kill connection on transaction commit failure
fixes #780
2020-06-27 12:10:33 -05:00
Jack Christensen
1f68908da6 Update changelog 2020-06-06 11:09:32 -05:00
Jack Christensen
59a28af6de Update dependencies 2020-06-06 11:00:22 -05:00
Jack Christensen
2758cbc0c4 Remove unnecessary allocation in rows.Values()
This was originally done to fix #386. But subsequent changes to pgtype
render the allocation unnecessary. Tests put in place with the original
fix still pass.
2020-06-06 10:39:33 -05:00
Jack Christensen
4e50623069 Fix stdlib number size conversions 2020-06-06 09:54:19 -05:00
Jack Christensen
81140f6c27 Improve stdlib performance with large results 2020-06-06 09:49:14 -05:00
Jack Christensen
73d0ac206c
Merge pull request #768 from georgysavva/fix-exposed-config
Fix exposed config
2020-06-06 07:05:13 -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
0e04d8187e Add raw benchmark 2020-06-01 08:53:45 -05: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
8dee3382f7 Improve unknown type support for database/sql
- Return unknown type OID instead of empty string for type name.
- ScanType is string instead of empty interface for unknown types.

fixes #759
2020-05-30 13:27:25 -05:00
Jack Christensen
837704dc7d Update stdlib docs to point to Conn.Raw instead of AcquireConn 2020-05-30 13:27:25 -05:00
Jack Christensen
2bd26ec7fa Expose stdlib.Conn.Conn() to enable database/sql.Conn.Raw() 2020-05-30 13:27:25 -05:00
Jack Christensen
e6c101413b
Merge pull request #761 from ikozinov/rows-close-logger
Added err field because log output is a bit confusing since it is not clear what error occurred
2020-05-27 08:48:22 -05:00
Igor V. Kozinov
4043edafe7 Add error field to logger on rows close 2020-05-27 14:44:53 +06:00
Jack Christensen
9e1a67c1bc Wait longer in timing sensitive test
Less likely to fail on CI.
2020-05-25 12:04:01 -05:00
Jack Christensen
e318c27e26 Merge branch 'jordanlewis-send-batch-simple' 2020-05-25 11:37:52 -05:00
Jack Christensen
72bba7fb42 Move batch simple protocol test to batch_test.go 2020-05-25 11:36:18 -05:00
Jack Christensen
8bad186207 Avoid race between close conn and cancel ctx 2020-05-25 11:35:20 -05:00
Jack Christensen
3ec395d4ef Merge branch 'send-batch-simple' of git://github.com/jordanlewis/pgx into jordanlewis-send-batch-simple 2020-05-25 11:26:16 -05:00
Jack Christensen
bcdbb9f657 Tweak benchmarks to account for slow binary formats
See https://www.postgresql.org/message-id/CAMovtNoHFod2jMAKQjjxv209PCTJx5Kc66anwWvX0mEiaXwgmA%40mail.gmail.com
2020-05-25 11:18:11 -05:00
Jordan Lewis
25099e6f89 Permit SendBatch with Simple Protocol
This commit adds support for sending batches of queries via the Simple
protocol with SendBatch. The result appears identically to how it would
if it were created with the extended protocol.
2020-05-25 01:37:48 -04:00
Jack Christensen
8faa1f5096 Fix off by one error with number of rows benchmark 2020-05-16 18:43:22 -05:00
Jack Christensen
b19811bbeb Merge branch 'georgysavva-store-connection-string' 2020-05-16 18:14:24 -05:00
Jack Christensen
ac6c49c39d Require access to ConnString via Config
A Config object may be created via ParseConfig and then further
modified. Requiring access to the original ConnString via the Config
helps indicate that the Config is the source of truth as to how the
connection was actually established.
2020-05-16 18:12:04 -05:00
Jack Christensen
59a2185dfb Merge branch 'store-connection-string' of git://github.com/georgysavva/pgx into georgysavva-store-connection-string 2020-05-16 18:07:27 -05:00
georgysavva
20c6c44f9f Expose Conn.Config() and Pool.Config(). 2020-05-16 19:53:08 +03:00
georgysavva
33cbec368f rename ConnStr -> ConnString 2020-05-16 19:24:57 +03:00
Jack Christensen
0d82849554 Link directly to geeting started guide 2020-05-16 10:50:30 -05:00
georgysavva
7c73e608ff go mod tidy. 2020-05-16 18:12:22 +03:00
georgysavva
a62de87342 Add ConnStr getter to Pool and Conn structs. 2020-05-16 18:10:29 +03:00
Jack Christensen
173227a6e3 Link to wiki from README. 2020-05-16 10:10:07 -05:00
Jack Christensen
b1fc2870e5 go mod tidy 2020-05-16 08:21:04 -05:00
Jack Christensen
f19b08628e Tweak docs to make conn / conn pool distinction clearer 2020-05-16 08:20:40 -05:00