{"id":"pgx","name":"pgx","category":"database","modulePath":"github.com/jackc/pgx/v5","importPath":"github.com/jackc/pgx/v5","summary":"PostgreSQL driver and toolkit","capabilities":["postgresql","sql","connection-pool"],"tradeoffs":["Targets PostgreSQL; requires a PostgreSQL server for database operations."],"standardLibrary":false,"source":{"url":"https://github.com/jackc/pgx","kind":"editorial summary of maintainer documentation","reviewedAt":"2026-09-30"},"metadata":{"version":"v5.11.0","goVersion":"1.25.0","licenses":["MIT"],"dependencies":[{"path":"github.com/jackc/pgpassfile","version":"v1.0.0"},{"path":"github.com/jackc/pgservicefile","version":"v0.0.0-20240606120523-5a60cdf6a761"},{"path":"github.com/jackc/puddle/v2","version":"v2.2.2"},{"path":"github.com/stretchr/testify","version":"v1.11.1"},{"path":"golang.org/x/sync","version":"v0.17.0"},{"path":"golang.org/x/text","version":"v0.29.0"},{"path":"github.com/davecgh/go-spew","version":"v1.1.1","indirect":true},{"path":"github.com/kr/pretty","version":"v0.3.0","indirect":true},{"path":"github.com/pmezard/go-difflib","version":"v1.0.0","indirect":true},{"path":"gopkg.in/check.v1","version":"v1.0.0-20201130134442-10cb98267c6c","indirect":true},{"path":"gopkg.in/yaml.v3","version":"v3.0.1","indirect":true}],"goMod":"module github.com/jackc/pgx/v5\n\ngo 1.25.0\n\nrequire (\n\tgithub.com/jackc/pgpassfile v1.0.0\n\tgithub.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761\n\tgithub.com/jackc/puddle/v2 v2.2.2\n\tgithub.com/stretchr/testify v1.11.1\n\tgolang.org/x/sync v0.17.0\n\tgolang.org/x/text v0.29.0\n)\n\nrequire (\n\tgithub.com/davecgh/go-spew v1.1.1 // indirect\n\tgithub.com/kr/pretty v0.3.0 // indirect\n\tgithub.com/pmezard/go-difflib v1.0.0 // indirect\n\tgopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect\n\tgopkg.in/yaml.v3 v3.0.1 // indirect\n)\n","fetchedAt":"2026-09-30T18:11:16.169Z","sourceUrls":["https://proxy.golang.org/github.com/jackc/pgx/v5/@latest","https://proxy.golang.org/github.com/jackc/pgx/v5/@v/v5.11.0.mod","https://api.deps.dev/v3/systems/go/packages/github.com%2Fjackc%2Fpgx%2Fv5/versions/v5.11.0"],"vulnerabilities":{"status":"checked","ids":[],"checkedAt":"2026-09-30T18:11:16.169Z","source":"https://api.deps.dev/v3/systems/go/packages/github.com%2Fjackc%2Fpgx%2Fv5/versions/v5.11.0"},"freshness":"current"},"example":{"id":"pgx","code":"package main\n\nimport (\n    \"fmt\"\n    \"log\"\n    \"github.com/jackc/pgx/v5\"\n)\n\nfunc main() {\n    config, err := pgx.ParseConfig(\"postgres://localhost/example\")\n    if err != nil {\n        log.Fatal(err)\n    }\n    fmt.Println(\"Configured PostgreSQL database:\", config.Database)\n    // Parsing configuration does not connect. Use pgx.ConnectConfig with\n    // a bounded context and application-provided credentials to connect.\n}\n","packageVersion":"v5.11.0","goVersion":"go1.27.1","verification":{"status":"passed","checkedAt":"2026-09-30T18:16:16.306Z","targets":["linux/amd64","windows/amd64"],"cgoEnabled":false},"notes":["Compile verification covers this example only. It does not test runtime behavior or every optional feature."],"goMod":"module example.com/discovery/pgx\n\ngo 1.27.1\n\nrequire github.com/jackc/pgx/v5 v5.11.0\n\nrequire (\n\tgithub.com/jackc/pgpassfile v1.0.0 // indirect\n\tgithub.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect\n\tgolang.org/x/text v0.29.0 // indirect\n)\n","goSum":"github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=\ngithub.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=\ngithub.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=\ngithub.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=\ngithub.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=\ngithub.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=\ngithub.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=\ngithub.com/jackc/pgx/v5 v5.11.0 h1:IzBBtyK9AHqf98cctWFifYSci2hgQR/cd56wB4p+ogg=\ngithub.com/jackc/pgx/v5 v5.11.0/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4=\ngithub.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo=\ngithub.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=\ngithub.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=\ngithub.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=\ngithub.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=\ngithub.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=\ngithub.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=\ngithub.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=\ngithub.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=\ngolang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=\ngolang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=\ngolang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk=\ngolang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4=\ngopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=\ngopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=\ngopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=\ngopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=\n"}}