Commit 41ae030
Remove github.com/jackc/pgx/v4 dependency
sqlc's own code no longer needs pgx/v4 at build time:
- Delete internal/sqltest/pgx.go — the PostgreSQLPgx helper had no callers.
- Migrate the sqlc-pg-gen internal tool from pgx/v4 to pgx/v5; the
Connect/Query/Scan API surface used here is identical.
pgx/v4 remains a supported code-generation target for sqlc users
(SQLDriverPGXV4 constant and the imports emitted into generated code
are unchanged); only sqlc's own dependency on the library is removed.
go mod tidy also drops chunkreader/v2, pgconn, pgio, pgproto3/v2,
pgtype, and golang.org/x/crypto as transitively unused.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 47cb4f9 commit 41ae030
6 files changed
+3
-238
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 38 | | |
43 | | - | |
44 | 39 | | |
45 | | - | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
| |||
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
58 | | - | |
59 | 52 | | |
60 | 53 | | |
61 | 54 | | |
| |||
0 commit comments