dataddo/pgq

Test with multiple drivers

Opened this issue · 0 comments

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.

The tested versions should be:

  • github.com/lib/pq
  • github.com/jackc/pgx/v4/stdlib
  • github.com/jackc/pgx/v5/stdlib
  • ... next releases of pgx

Import pgx driver using driverName with version included
jackc/pgx#1480

Keep the usage of drivers inside integrtest pkg, this helps Go reduce dependencies. Go 1.21 (I think) does some smart "dependency-shaking"