Logo
Explore Help
Sign In
go/postgres
1
0
Fork 0
You've already forked postgres
Code Issues Pull Requests Packages Releases 1 Activity
Files
main
postgres/compliance_test.go

10 lines
240 B
Go
Raw Permalink Normal View History

feat(postgres): initial stable release v0.9.0 pgx v5-native PostgreSQL client with launcher lifecycle, health check, unit-of-work via context injection, and structured error mapping. What's included: - Executor / Tx / Client / Component interfaces using pgx native types (pgconn.CommandTag, pgx.Rows, pgx.Row) - New(logger, cfg) constructor; pgxpool initialised in OnInit - Config struct with env-tag support for all pool tuning parameters - UnitOfWork via context injection; GetExecutor(ctx) returns active Tx or pool - HandleError mapping pgerrcode constants to xerrors codes (AlreadyExists, InvalidInput, NotFound, Internal) - health.Checkable at LevelCritical; HealthCheck delegates to pgxpool.Ping Tested-via: todo-api POC integration Reviewed-against: docs/adr/
2026-03-19 13:18:07 +00:00
package postgres_test
import (
"code.nochebuena.dev/go/logz"
"code.nochebuena.dev/go/postgres"
)
// Compile-time check: New returns a valid Component.
var _ postgres.Component = postgres.New(logz.New(logz.Options{}), postgres.Config{})
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 19ms Template: 1ms
English
English
Licenses API