3085 Commits

Author SHA1 Message Date
Jack Christensen
69e9c33daf Add RegisterConnConfig to stdlib
This restored functionality lost in the v3 to v4 transition when
RegisterDriverConfig was removed.

fixes #617
2019-11-16 11:06:57 -06:00
Jack Christensen
be36a7e14b Fix test and avoid change to array signatures
typed_array.go.erb was not updated back in
a8802b16cc593842f5c69b0f7cfb0de11d5cd3a8 when Value, EncodeBinary,
EncodeText, and MarshalJSON were changed to be defined on T instead of
*T. This has been corrected.
2019-11-14 20:40:41 -06:00
Alex Gaynor
0079108e29 Fixes #11 -- support initializing Array types from a slice of the value 2019-11-08 14:59:19 -05:00
Jack Christensen
f3a3ee1a0e Release v4.1.2 v4.1.2 2019-10-22 20:51:52 -05:00
Jack Christensen
e7c61d382e Upgrade to pgtype v1.0.2
Pull in pointer to pointer scan fix
2019-10-22 20:46:30 -05:00
Jack Christensen
f711de3591 Release 1.0.2 2019-10-22 20:45:14 -05:00
Jack Christensen
3bc1f8ac57
Merge pull request #10 from jaltavilla/pointer-to-custom-type
Scan into nullable custom types (pointers to pointers).
2019-10-22 20:42:19 -05:00
Jack Christensen
78a83eba6a Fix dbSavepoint.Begin recursive self call
It needed to call the inner tx.

fixes #633
2019-10-22 20:38:12 -05:00
jaltavilla
af517d68fc Scan into nullable custom types (pointers to pointers). 2019-10-21 17:21:42 -04:00
Jack Christensen
3da4ea1a97 Release 4.1.1 v4.1.1 2019-10-21 13:57:39 -05:00
Jack Christensen
0d8dcd87b0 Fix pgxpool Rows.CommandTag() 2019-10-21 13:57:39 -05:00
Jack Christensen
f395b32fa6 Added failing test for pointer to custom type 2019-10-19 11:43:24 -05:00
Jack Christensen
9449f4b081
Merge pull request #17 from skipcloud/sgibson/fix-comment
config: fix ValidateConnect comment
2019-10-16 09:21:38 -05:00
Skip Gibson
81b6ad72f6 config: fix ValidateConnect comment 2019-10-16 10:01:16 +01:00
Jack Christensen
aed55f0dee
Merge pull request #626 from tbutts/patch-1
Readme: update pkg paths for pgtype & pgmock
2019-10-14 10:00:58 -05:00
Butters
f41e3ab61f
Readme: update pkg paths for pgtype & pgmock
With the big v4 changes, some libraries that were part of pgx were migrated to standalone packages. The readme has been updated to reflect these new import paths, which will help consumers of the old pgtype/pgmock paths fix their own import statements.
2019-10-13 19:27:31 -04:00
Jack Christensen
e8a20809dd Release v4.1.0 v4.1.0 2019-10-12 11:28:39 -05:00
Jack Christensen
93a2aa5b2f Releasing a busy connection closes the connection
refs #622
2019-10-12 11:26:51 -05:00
Jack Christensen
4df62cf3d0 Release v1.1.0 2019-10-12 11:23:48 -05:00
Jack Christensen
0e52829a07 Clarify Go module requirement 2019-10-12 11:13:24 -05:00
Jack Christensen
10d5f5eaa8 Do not mutate config.Config.OnNotification in connect
fixes #618
2019-10-12 11:06:43 -05:00
Jack Christensen
178b4c1a64 Add test for larger batches 2019-10-12 10:46:09 -05:00
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