1862 Commits

Author SHA1 Message Date
Jack Christensen
0648e1c69f Update to latest pgconn 2019-09-10 17:28:31 -05:00
Jack Christensen
856c67a8c8
Merge pull request #556 from DavidArchibald/composite
Register composite types as a `pgtype.Record`.
2019-09-09 21:27:47 -05:00
David
64a0217d01 Merge branch 'master' of https://github.com/jackc/pgx into composite 2019-09-09 11:28:08 -07:00
David
fed099f04a Merge branch 'master' into composite 2019-09-09 11:26:13 -07:00
David
2d89e52d6f Add composite registering to init steps. 2019-09-09 10:52:31 -07:00
Jack Christensen
9b9d433ec5
Merge pull request #594 from ferhatelmas/v4-readme
Fix some typos
2019-09-07 10:04:21 -05:00
Jack Christensen
c32f905920
Merge pull request #581 from damour/fix_user_defined_array_type
Load user-defined array type oids.
2019-09-07 09:40:45 -05:00
ferhat elmas
912b2fcc3a Fix some typos 2019-09-04 12:46:50 +02:00
Jack Christensen
be8ed87408 Update changelog v4.0.0-rc1 2019-09-02 12:27:02 -05:00
Jack Christensen
f26e4c0e69 Update status of v4 2019-09-02 12:20:15 -05:00
Jack Christensen
f6bbf4bc3b Add package docs for pgxpool 2019-09-02 12:18:30 -05:00
Jack Christensen
afa83095a8 Add more docs 2019-09-02 12:14:04 -05:00
Jack Christensen
88e31ea5be Update url_shortener example
No need to explicitly prepare statements now that there is the statement
cache.
2019-09-02 11:58:30 -05:00
Jack Christensen
246baf2746 Update docs 2019-09-02 11:54:24 -05:00
Jack Christensen
bcea1fcd3f Update README.md 2019-09-02 11:48:48 -05:00
Jack Christensen
3b8cd87875 Remove QueryArgs
An external SQL builder like github.com/jackc/pgsql should be used
instead.
2019-09-02 09:58:11 -05:00
Jack Christensen
b5ce0220f8 Add CommandTag to Rows interface
This allows handling queries where it is unknown if there will be a
result set or not. If it is not a result set returning query the
command tag will still be available.
2019-09-02 09:53:26 -05:00
Dmitriy Garanzha
35908df25f Filter automatically created table array types. 2019-09-02 16:57:21 +03:00
Jack Christensen
0ef89ae0b7 Extract pgmock to github.com/jackc/pgmock 2019-08-31 17:07:43 -05:00
Jack Christensen
04a0609876 Remove unused pgmock code 2019-08-31 13:13:45 -05:00
Jack Christensen
c72417a958
Merge pull request #591 from vcabbage/acquireex
Add ConnPool.AcquireEx
2019-08-31 13:01:01 -05:00
Kale Blankenship
78f498fc43 Add ConnPool.AcquireEx 2019-08-31 10:33:20 -07:00
Jack Christensen
53921a0a22 Allow reading a result row multiple times
refs #478
2019-08-31 10:50:14 -05:00
Jack Christensen
f20f026b7d Pool BeforeAcquire hook takes context 2019-08-31 08:57:03 -05:00
Jack Christensen
4d06b1b8ad
Merge pull request #589 from vcabbage/pool-prepare-oids
Include ParameterOIDs when preparing statements on new pool connections
2019-08-28 16:12:36 -05:00
Kale Blankenship
12c6319244 Include ParameterOIDs when preparing statements on new pool connections
ParameterOIDs passed to ConnPool.PrepareEx are used to prepare the statement
on existing connections in the pool. If additional connections are later
created ParameterOIDs are omitted, potentially causing query failures.
2019-08-28 13:07:24 -07:00
Jack Christensen
486d64daed Update pgtype and pgproto v4.0.0-pre2 2019-08-27 21:18:25 -05:00
Jack Christensen
4a320500cf Remove barely used ProtocolError type 2019-08-27 18:31:54 -05:00
Jack Christensen
863b41aaa6 Remove unused sentinal error 2019-08-27 18:29:38 -05:00
Jack Christensen
28d5375b74 Update stdlib for latest pgconn 2019-08-27 18:29:27 -05:00
Jack Christensen
ddd9cf451e Update pgxpool for latest pgconn 2019-08-27 18:29:14 -05:00
Jack Christensen
8170eaf401 Update to latest version of pgconn
- Also remove a few tests of functionality that is handled by pgconn
2019-08-27 18:22:34 -05:00
Jack Christensen
169632e028 Refactor format code choosing 2019-08-25 00:38:50 -05:00
Jack Christensen
8f080dcbb2 Update pgconn for access to min_read_buffer_size param 2019-08-25 00:23:07 -05:00
Jack Christensen
a262126b5c Replace IsAlive with IsClosed
IsAlive is ambiguous because the connection may be dead and we do not
know it. It implies the possibility of a ping. IsClosed is clearer -- it
does not promise the connection is alive only that it hasn't been
closed.
2019-08-24 23:49:59 -05:00
Jack Christensen
d5a6a5e7e0 Remove Results suffix from BatchResults methods 2019-08-24 23:41:28 -05:00
Jack Christensen
64b07f0d66 Batch uses statement cache.
This streamlines Queue's interface as well.
2019-08-24 23:40:21 -05:00
Jack Christensen
6508934508 Rename PreparedStatementCache to StatementCache 2019-08-24 22:19:29 -05:00
Jack Christensen
61f0710101 Add docs and tests for PgBouncer 2019-08-24 22:12:55 -05:00
Jack Christensen
7f5e702d1a Fix benchmarks 2019-08-24 21:04:40 -05:00
Jack Christensen
12c1167147 Fix benchmarks now that date is UTC time 2019-08-24 20:57:15 -05:00
Jack Christensen
b2b949afa4 Rename BeginEx to BeginTx and update docs 2019-08-24 20:50:24 -05:00
Jack Christensen
ebf88b691f Rewrap doc.go 2019-08-24 20:46:36 -05:00
Jack Christensen
3675337e5b Update for rename of pgconn.PreparedStatementDescription 2019-08-24 20:44:56 -05:00
Jack Christensen
0c3e59b07a Add automatic statement cache 2019-08-24 20:29:54 -05:00
Jack Christensen
180dfe6954 Remove bad error check 2019-08-24 16:29:44 -05:00
Jack Christensen
31705e586a Use pgconn.PreparedStatementDescription directly
Instead of having similar pgx.PreparedStatement
2019-08-24 14:29:05 -05:00
Jack Christensen
6972a57421 pgtype.OID type should only be used for scanning and encoding values
It was a mistake to use it in other contexts. This made interop
difficult between pacakges that depended on pgtype such as pgx and
packages that did not like pgconn and pgproto3. In particular this was
awkward for prepared statements.

This is preparation for removing pgx.PreparedStatement in favor of
pgconn.PreparedStatement.
2019-08-24 13:55:57 -05:00
Jack Christensen
7385349950 Refactor Conn.exec 2019-08-24 12:46:04 -05:00
Jack Christensen
e22c023d8a Remove unused struct 2019-08-24 10:52:28 -05:00