Jack Christensen
e92a2daef2
Merge pull request #623 from jaltavilla/move-nil-check
...
Fix panic in certain circumstances
2019-10-12 10:24:33 -05:00
Jack Christensen
fcfd7d09a9
Add PgConn.IsBusy() method
2019-10-12 10:21:46 -05:00
Jack Christensen
15ea38aae5
Document interfaces that may have methods added in the future
2019-10-12 09:35:29 -05:00
Jack Christensen
143bc3165d
Add Conn() to Tx interface.
...
This is necessary to allow code using a Tx to access the *Conn (and
pgconn.PgConn) on which the Tx is executing.
2019-10-12 09:35:29 -05:00
Jack Christensen
c0a1f9976a
Conn.Begin and Conn.BeginTx return a Tx interface
...
This is necessary for the Conn.Begin method to signature as other
methods that begin a transaction. This is technically a breaking change
but practically is just a bug fix that is extremely unlikely to break
any existing code.
2019-10-12 09:35:29 -05:00
Jack Christensen
0077ff0474
Merge pull request #16 from F21/patch-1
...
Fix minor errors and reword some sentences for readability
2019-10-07 13:37:34 -05:00
Jack Christensen
931bae46a2
Merge pull request #620 from dairlair/patch-1
...
Fix typo in README
2019-10-07 12:56:59 -05:00
jaltavilla
9e94aa87b1
Move the second part of the nil check earlier in the function. This fixes a panic under certain conditions.
...
1. arg is a pointer to nil
2. The type of arg implements BinaryEncoder or TextEncoder
3. The implementation of that interface uses a non-pointer receiver
2019-10-03 18:31:55 -04:00
Francis Chuang
6c195c17b2
Fix minor errors and reword some sentences for readability
2019-10-03 09:49:12 +10:00
dairlair
5d8189e22a
Fix typo in README
2019-09-30 16:06:21 +03:00
Jack Christensen
fa5c331c78
Add text format support to bit
...
fixes #7
2019-09-26 21:12:42 -05:00
Jack Christensen
90d22fb483
Add basic README.md
2019-09-26 21:08:20 -05:00
Jack Christensen
51e58f842b
Merge pull request #5 from quillchat/master
...
Add tstzrange data type
2019-09-26 21:00:43 -05:00
Jack Christensen
d3b475212c
Merge pull request #4 from alex/patch-1
...
Added a license -- fixes #3
2019-09-25 09:21:56 -05:00
Alex Gaynor
eb20ab8219
Added a license -- fixes #3
2019-09-20 10:14:48 -04:00
Jack Christensen
3f377acc1e
Merge pull request #14 from furdarius/resolve-hostnames-into-addrs
...
Validate all addresses resolved from hostname
2019-09-20 08:51:22 -05:00
Jack Christensen
0a50ae89be
Release 4.0.1
v4.0.1
2019-09-19 23:03:52 -05:00
Jack Christensen
e16bfa9af5
Add docs regarding closing BatchResults
2019-09-19 22:46:43 -05:00
Jack Christensen
9d3a4b5736
Update pgconn and pgtype
2019-09-19 22:34:10 -05:00
Jack Christensen
67a09e3a1f
Add more transaction docs
2019-09-19 22:34:10 -05:00
Jack Christensen
21c89003af
Check if dbSavepoint is already closed
2019-09-19 22:34:10 -05:00
Jack Christensen
cb841782a7
Fix spelling
2019-09-19 22:34:10 -05:00
Jack Christensen
585fac4561
Rollback should mark tx as closed
2019-09-19 22:34:10 -05:00
Jack Christensen
9b9df4abdf
Merge pull request #608 from DavidArchibald/readme-fixes
...
Punctuation and word fixes.
2019-09-19 22:30:49 -05:00
Luke Abby
7f221e5f75
Remove periods on bullet points.
2019-09-19 20:04:03 -07:00
Jack Christensen
9dc453458c
Release v1.0.1
2019-09-19 21:57:09 -05:00
Jack Christensen
52ae698572
Fix daterange oid
2019-09-19 21:43:18 -05:00
Jack Christensen
d6b0287fcd
Release v1.0.1
2019-09-19 21:41:20 -05:00
Jack Christensen
f5eead90fc
Fix statement cache reuse bug
2019-09-19 21:04:14 -05:00
Andrew Huang
f517670ba5
Add tstzrange data type
2019-09-18 15:01:37 -07:00
David Archibald
0fc6545486
Punctuation and word fixes.
2019-09-18 10:52:08 -07:00
Jack Christensen
28ad4873d3
Final v4 doc changes
v4.0.0
2019-09-14 20:45:50 -05:00
Jack Christensen
251c1cb106
Merge branch 'master' into v4
...
Crazy merge to make v4 into the master branch.
Done with git merge -s ours
https://stackoverflow.com/a/56945250
2019-09-14 20:40:56 -05:00
Jack Christensen
2799739ef3
Update underlying packages to final release versions
2019-09-14 20:31:06 -05:00
Jack Christensen
bbc7f67a6f
Update to pgproto3 v2.0.0
2019-09-14 20:22:50 -05:00
Jack Christensen
c73e7d7506
Release v3.6.0
v3.6.0
2019-09-14 20:14:24 -05:00
Jack Christensen
cf8fe4a477
uuid extension switched to gofrs from satori
...
Do not encourage library use that has serious outstanding bug:
https://github.com/satori/go.uuid/issues/73
2019-09-14 19:58:54 -05:00
Jack Christensen
f36a695259
Merge branch 'heedson-pgtype-ext-gofrs-uuid'
2019-09-14 19:53:23 -05:00
Jack Christensen
6918e89b3a
Merge branch 'pgtype-ext-gofrs-uuid' of https://github.com/heedson/pgx into heedson-pgtype-ext-gofrs-uuid
2019-09-14 19:49:30 -05:00
Jack Christensen
6e0acb04d3
Fix flickering test
...
--- FAIL: TestPoolWithAcquireExContextTimeoutSet (2.03s)
conn_pool_test.go:353: Expected connection allocation time to be at least 2s, instead it was '1.999691391s'
These failures were caused by setting the timeout and then measuring how
long an acquire took.
2019-09-14 18:55:06 -05:00
Jack Christensen
99f22ac8e4
Port DSN parser from pgx v3
...
Original implementation: 2d9d8dc52ac211c6191c08e050c03588aa633038 by
Joshua Barone <joshua.barone@gmail.com>.
Also changed DSN tests to use "dbname" as key rather than "database" as
that is what the PostgreSQL documentation specifies. "database" still
actually works but it should not be encouraged as it is non-standard.
2019-09-14 18:37:33 -05:00
Jack Christensen
b3305b36c3
Merge pull request #598 from jbarone/master
...
Fixes #376
2019-09-14 18:13:01 -05:00
Artemiy Ryabinkov
17d3d592e9
add test for custom lookup func
...
Signed-off-by: Artemiy Ryabinkov <getlag@ya.ru>
2019-09-14 19:11:26 +03:00
David Hudson
d52bd74254
pgtype: Add ext type for gofrs uuid implementation
...
Add ext type for https://github.com/gofrs/uuid uuid type.
Change test and README from github.com/satori/go.uuid to
github.com/gofrs/uuid. The reason is due to this issue:
https://github.com/satori/go.uuid/issues/73 . This was taken on board and
fixed in the community project of gofrs. The gofrs implementation has
the same interface as the original.
2019-09-13 16:50:15 +01:00
Artemiy Ryabinkov
e538885fa7
skip resolve for unix sockets
...
Signed-off-by: Artemiy Ryabinkov <getlag@ya.ru>
2019-09-13 17:52:01 +03:00
Artemiy Ryabinkov
b2ca5d8f52
validate all addresses resolved from hostname
...
Signed-off-by: Artemiy Ryabinkov <getlag@ya.ru>
2019-09-13 17:26:09 +03:00
Artemiy Ryabinkov
51cf0d5480
Merge pull request #2 from jackc/master
...
Sync
2019-09-13 17:20:09 +03:00
Joshua Barone
2d9d8dc52a
replace dsn parser with simple parser, rather than regex
2019-09-12 10:13:13 -05:00
Jack Christensen
7d053e4d5c
Replace RowsFromResultReader with ScanRow function
v4.0.0-rc2
2019-09-10 18:38:10 -05:00
Jack Christensen
76348773bd
Make Conn.ConnInfo private
2019-09-10 18:09:21 -05:00