Closed prochac closed 2 weeks ago
The integtest pkg uses github.com/jackc/pgx/v4/stdlib, while we actually use v5 in production. The versions are mostly compatible, but may have some small nuances.
integtest
github.com/jackc/pgx/v4/stdlib
v5
The tested versions should be:
github.com/lib/pq
github.com/jackc/pgx/v5/stdlib
Import pgx driver using driverName with version included https://github.com/jackc/pgx/issues/1480
pgx
driverName
Keep the usage of drivers inside integrtest pkg, this helps Go reduce dependencies. Go 1.21 (I think) does some smart "dependency-shaking"
integrtest
The
integtest
pkg usesgithub.com/jackc/pgx/v4/stdlib
, while we actually usev5
in production. The versions are mostly compatible, but may have some small nuances.The tested versions should be:
github.com/lib/pq
github.com/jackc/pgx/v4/stdlib
github.com/jackc/pgx/v5/stdlib
Import
pgx
driver usingdriverName
with version included https://github.com/jackc/pgx/issues/1480Keep the usage of drivers inside
integrtest
pkg, this helps Go reduce dependencies. Go 1.21 (I think) does some smart "dependency-shaking"