feat: add postgres connection helper

Add a thin wrapper around pgx to open and verify a Postgres connection from a URL or individual parameters.
This commit is contained in:
2026-04-01 09:00:00 -05:00
parent 69ea51a8b6
commit 438b6afa1c
4 changed files with 59 additions and 3 deletions

10
go.mod
View File

@@ -3,8 +3,16 @@ module git.ksdemosapps.com/kylesoda/go-migrate
go 1.25.7
require (
github.com/jackc/pgx/v5 v5.9.1
github.com/joho/godotenv v1.5.1
github.com/sirupsen/logrus v1.9.4
)
require golang.org/x/sys v0.13.0 // indirect
require (
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.2 // indirect
golang.org/x/sync v0.17.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.29.0 // indirect
)