Pau Sanchez
8ad672475a
Make ScanArgError public to allow identification of offending column
...
fixes #931
2021-02-13 08:56:11 -06:00
Jack Christensen
922508c785
Replace Travis with Github CI
2021-01-30 17:17:42 -06:00
Jack Christensen
9cf5752625
Change Github CI to run on master
2021-01-30 16:48:51 -06:00
Jack Christensen
609cd81d64
Remove obsolete Travis badge
2021-01-30 16:47:51 -06:00
Jack Christensen
ed0090f610
Use race detector on Github CI
2021-01-30 16:44:17 -06:00
Jack Christensen
c10c60cad5
Add build matrix for Go and PG
2021-01-30 16:38:58 -06:00
Jack Christensen
c107f909a2
Create user for Unix domain socket
2021-01-30 16:28:27 -06:00
Jack Christensen
eb32285906
Use native PostgreSQL package
...
Also remove travis integration.
2021-01-30 16:22:38 -06:00
Jack Christensen
94608a2482
Merge branch 'master' into github-ci-wip
2021-01-30 13:05:59 -06:00
Jack Christensen
74517d7315
Fix test when PGSSLMODE=disable
...
When PGSSLMODE=disable no fallback config was created which would cause
the check that fallbacks are deep copied to crash on:
copied.Fallbacks[0].Port = uint16(5433)
2021-01-30 13:03:56 -06:00
Jack Christensen
a9c2b5c3cb
Revert "Try to debug failing CI test"
...
This reverts commit 6c2a423dbc25d634270b04ecaac7a1d644037945.
2021-01-30 13:01:27 -06:00
Jack Christensen
6c2a423dbc
Try to debug failing CI test
2021-01-30 12:58:25 -06:00
Jack Christensen
63bcdfde61
Fix CI link
2021-01-30 12:48:58 -06:00
Jack Christensen
7d8845a9d8
Initial import from pgtype
2021-01-30 12:47:34 -06:00
Fabrice Aneche
14050e286d
fix data map
2021-01-27 16:36:58 -06:00
Fabrice Aneche
9b59dd0346
added a kitlog level log adapter
2021-01-27 16:36:58 -06:00
davidsbond
aa8604b5c2
Add Ping method to pgxpool.Conn
...
Adds the Ping method to pgxpool.Conn, returning the result of calling Ping on
the underlying pgx.Conn.
2021-01-26 20:46:57 -06:00
Jack Christensen
120139a206
Add link to PG docs for connString format
...
fixes #62
2021-01-14 18:22:21 -06:00
Stephane Martin
6830cc0984
Fix: also consider \r, \f, \t as whitespace ( jackc/pgtype#86 )
2021-01-14 18:10:48 -06:00
Stephane Martin
59b79a2e49
Fix: escaped strings when they start or end with a newline char ( jackc/pgtype#86 )
2021-01-14 18:10:48 -06:00
Vasilii Novikov
1e141d8c32
Add tsrange array type.
2021-01-09 09:40:43 -06:00
Moshe Katz
724bf94515
use proper pgpass location on Windows
2021-01-09 09:36:36 -06:00
Robert Froehlich
210a217818
Add BeforeConnect callback to pgxpool.Config.
...
This allows for connection settings to be updated without having to create
a new pool. The callback is passed a copy of the pgx.ConnConfig and will
not impact existing live connections.
2021-01-02 15:08:59 -08:00
Jack Christensen
b23d41c399
Add CI badge
2020-12-28 13:11:36 -06:00
Jack Christensen
6e11216708
Yet another CI tweak
2020-12-28 13:02:34 -06:00
Jack Christensen
be67555d02
Another CI tweak
2020-12-28 12:56:41 -06:00
Jack Christensen
e2115310b7
More CI
2020-12-28 12:50:42 -06:00
Jack Christensen
ea92194719
Add PostgreSQL service to CI
2020-12-28 12:35:01 -06:00
Jack Christensen
97f8f6a25a
Begin CI with Github Actions
2020-12-28 12:22:56 -06:00
Yuli Khodorkovskiy
1213b69774
Add support to ErrorResponse for unlocalized severity
...
Add missing 'V' field for unlocalized severity added in PG versions 9.6
and greater. See https://www.postgresql.org/docs/current/protocol-error-fields.html
2020-12-28 10:22:55 -06:00
Jack Christensen
e276d9b832
Add more documentation to TxStatus
2020-12-23 12:21:34 -06:00
Jack Christensen
b77cee2a28
Fix scanning int into **sql.Scanner implementor
...
See https://github.com/jackc/pgx/issues/897 .
2020-12-23 11:17:02 -06:00
Musbah Sinno
b664891853
Updated CopyFromSlice example in doc.go
...
The example had a syntax error and didn't explain what user was to begin with. Fixed it.
2020-12-23 10:42:48 -06:00
Jack Christensen
fc4d50f6c2
Release v4.10.1
v4.10.1
2020-12-19 10:18:49 -06:00
Jack Christensen
9b0e57c4a9
Fix panic on query error with nil stmtcache
...
fixes #895
2020-12-19 10:17:41 -06:00
Jack Christensen
e8f959e0e1
Add QueryFunc
...
refs #821
2020-12-12 09:39:58 -06:00
Jack Christensen
0cbbf55dde
Fix typo
2020-12-12 08:28:55 -06:00
ip.novikov
e0d22c1100
improve regexp
...
get shortest sequence between : and @
2020-12-05 22:11:52 +03:00
ip.novikov
a581247a12
Add check for url with broken password
...
replace broken password in parseConfigError message
2020-12-05 15:28:01 +03:00
Jack Christensen
e14638e125
Release v4.10.0
v4.10.0
2020-12-03 19:50:07 -06:00
Jack Christensen
8c7667376e
Update dependencies
2020-12-03 19:43:27 -06:00
Jack Christensen
82bac82213
stdlib: consider any Ping failure as fatal
...
refs #672
2020-12-03 19:41:03 -06:00
Jack Christensen
880863b70a
Release v1.6.2
2020-12-03 19:20:11 -06:00
Jack Christensen
7a47d60bbd
Update missing changelog entries for v1.6.0 and v1.6.1
2020-12-03 19:18:40 -06:00
Jack Christensen
3742d6209e
Release v1.8.0
2020-12-03 19:12:18 -06:00
Jack Christensen
0a2b67c5c5
CopyFromSlice should remember error
2020-12-02 09:32:01 -06:00
Egon Elbre
e23c5bec24
add pgx.CopyFromSlice
...
Using CopyFromRows can often be inconvenient to use, because you would
need to convert a typed array to an [][]interface{}. Similarly,
implementing a custom CopyFromSource is too verbose for one-off things.
Add CopyFromSlice that allows to more easily convert a slice to a
CopyFromSource. Example:
copyCount, err := conn.CopyFrom(
context.Background(),
pgx.Identifier{"people"},
[]string{"first_name", "last_name", "age"},
pgx.CopyFromSlice(len(rows), func(i int) ([]interface{}, error) {
return []interface{user.FirstName, user.LastName, user.Age}, nil
}),
)
2020-12-02 11:16:36 +02:00
Jack Christensen
00d516f5c4
Fix panic on assigning empty array to non-slice or array
...
See https://github.com/jackc/pgx/issues/881
2020-11-27 11:56:21 -06:00
Roman Tkachenko
88b6398594
Add CopyData and CopyDone messages support to Backend
2020-11-17 16:57:05 -06:00
Ethan Pailes
1df45d758d
fix stmtcache invalidation
...
This patch fixes jackc/pgx#841. The meat of the fix lives
in [a PR to the pgconn repo][1]. This change just checks
for errors after executing a prepared statement and informs
the underlying stmtcache about them so that it can properly
clean up. We don't try to get fancy with retries or anything
like that, just return the error and allow the application to handle it.
I had to make [some][1] [changes][2] to to the jackc/pgconn package as well
as this package.
Fixes #841
[1]: https://github.com/jackc/pgconn/pull/56
[2]: https://github.com/jackc/pgconn/pull/55
2020-11-12 08:15:13 -05:00