Releases: olomix/go-test-pg
Releases · olomix/go-test-pg
v2.1.0
What's Changed
New Features
- Functional options for connection configuration — New
WithPoolConfigoption lets you customize*pgxpool.Configper-test or globally viaPgpool.Options. Per-test options override global ones.
Bug Fixes
- Fix missing error in
t.Fatal()call —createRndDBPoolnow passes the error tot.Fatal(err)instead of callingt.Fatal()with no message. - Fix ConnConfig leak in std cleanup —
stdlib.UnregisterConnConfigis now called viadeferso it runs even when cleanup returns early due to unreleased connections or adb.Close()failure. - Unregister ConnConfig on
sql.Openfailure — Added missingstdlib.UnregisterConnConfigcall on the error path whensql.Openfails.
Dependencies
- Upgrade pgx to v5.8.0 — Drops the transitive
golang.org/x/cryptodependency that carried a CVE. - Minimum Go version bumped to 1.24
CI / Maintenance
- Updated GitHub Actions (
checkout,setup-go,golangci-lint-action) to latest versions. - Test matrix now covers Go 1.24 and 1.25 on
ubuntu-latestinstead of container-based builds. - README rewritten for clarity.
v2.0.1
v2.0.0
v1.0.2
v1.0.1
v1.0.0
v0.0.4
v0.0.3
v0.0.2
First release
v0.0.1 Add WithFixtures & WithSQLs methods to load fixtures. Add posibility …