feat(postgres)!: promote to v1.0.0 — BeginTx with pgx options, Stats, bump all deps to v1.0.0

Add BeginTx(ctx, pgx.TxOptions) to Client interface for explicit isolation level and
read-only transaction control; Begin refactored as a convenience wrapper calling
BeginTx(ctx, pgx.TxOptions{}). Add Stats() *pgxpool.Stat to Component interface for
connection pool observability. Bump all micro-lib dependencies (logz, health, launcher,
xerrors) from v0.9.0 to v1.0.0. API committed as stable.
This commit is contained in:
2026-05-11 19:36:47 -06:00
parent 2baafa6a0c
commit 4d6d2f1d62
5 changed files with 71 additions and 17 deletions

8
go.mod
View File

@@ -3,10 +3,10 @@ module code.nochebuena.dev/go/postgres
go 1.25
require (
code.nochebuena.dev/go/health v0.9.0
code.nochebuena.dev/go/launcher v0.9.0
code.nochebuena.dev/go/logz v0.9.0
code.nochebuena.dev/go/xerrors v0.9.0
code.nochebuena.dev/go/health v1.0.0
code.nochebuena.dev/go/launcher v1.0.0
code.nochebuena.dev/go/logz v1.0.0
code.nochebuena.dev/go/xerrors v1.0.0
github.com/jackc/pgerrcode v0.0.0-20250907135507-afb5586c32a6
github.com/jackc/pgx/v5 v5.8.0
)