Skip to content

Commit a8e5229

Browse files
zepatrikory-bot
authored andcommitted
chore: remove github.com/lib/pq dependency
GitOrigin-RevId: 0a949f3055e763a1c16b3f8aaa909fbe233ab5a7
1 parent 7b08393 commit a8e5229

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ require (
4141
github.com/knadh/koanf/v2 v2.2.2
4242
github.com/laher/mergefs v0.1.1
4343
github.com/lestrrat-go/jwx v1.2.31
44-
github.com/lib/pq v1.12.0
4544
github.com/mailhog/data v1.0.1
4645
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
4746
github.com/ory/analytics-go/v5 v5.0.1
4847
github.com/ory/dockertest/v4 v4.0.0-beta.4
4948
github.com/ory/herodot v0.10.9-0.20260330111132-da75ef0fbc22
5049
github.com/ory/jsonschema/v3 v3.0.9-0.20250317235931-280c5fc7bf0e
51-
github.com/ory/pop/v6 v6.4.2-0.20260506111808-5dbeab0cb08b
50+
github.com/ory/pop/v6 v6.4.2-0.20260507161217-89126558d369
5251
github.com/pelletier/go-toml v1.9.5
5352
github.com/peterhellberg/link v1.2.0
5453
github.com/pkg/errors v0.9.1
@@ -156,6 +155,7 @@ require (
156155
github.com/lestrrat-go/httpcc v1.0.1 // indirect
157156
github.com/lestrrat-go/iter v1.0.2 // indirect
158157
github.com/lestrrat-go/option v1.0.1 // indirect
158+
github.com/lib/pq v1.12.0 // indirect
159159
github.com/mailru/easyjson v0.9.0 // indirect
160160
github.com/mattn/go-colorable v0.1.14 // indirect
161161
github.com/mattn/go-isatty v0.0.20 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ github.com/ory/herodot v0.10.9-0.20260330111132-da75ef0fbc22 h1:xSbAB0yH2CUPqf9t
356356
github.com/ory/herodot v0.10.9-0.20260330111132-da75ef0fbc22/go.mod h1:by6EjQDF4bDC2OuWOBd9EBRrTjtl0+kxSzyvuizM0Iw=
357357
github.com/ory/jsonschema/v3 v3.0.9-0.20250317235931-280c5fc7bf0e h1:4tUrC7x4YWRVMFp+c64KACNSGchW1zXo4l6Pa9/1hA8=
358358
github.com/ory/jsonschema/v3 v3.0.9-0.20250317235931-280c5fc7bf0e/go.mod h1:XWLxVK4un/iuIcrw+6lCeanbF3NZwO5k6RdLeu/loQk=
359-
github.com/ory/pop/v6 v6.4.2-0.20260506111808-5dbeab0cb08b h1:oG3rmvXLs1PAZoTinOe+xn3PglATFeCimtJAnRJ4mTg=
360-
github.com/ory/pop/v6 v6.4.2-0.20260506111808-5dbeab0cb08b/go.mod h1:vd8H2inBRK+ZF+r5jDdx/fYPwqWrbVoAD4t7vAfXeA4=
359+
github.com/ory/pop/v6 v6.4.2-0.20260507161217-89126558d369 h1:ThuxYV66E8HKj36IFVZIDxBNya/ETeXeO7KCwl5hwgo=
360+
github.com/ory/pop/v6 v6.4.2-0.20260507161217-89126558d369/go.mod h1:vd8H2inBRK+ZF+r5jDdx/fYPwqWrbVoAD4t7vAfXeA4=
361361
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
362362
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
363363
github.com/peterhellberg/link v1.2.0 h1:UA5pg3Gp/E0F2WdX7GERiNrPQrM1K6CVJUUWfHa4t6c=

sqlcon/error.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010

1111
"github.com/go-sql-driver/mysql"
1212
"github.com/jackc/pgx/v5/pgconn"
13-
"github.com/lib/pq"
1413
"github.com/pkg/errors"
1514
"google.golang.org/grpc/codes"
1615
"modernc.org/sqlite"
@@ -98,9 +97,6 @@ func HandleError(err error) error {
9897
if e, ok := stderrs.AsType[stater](err); ok {
9998
return errors.WithStack(handlePostgres(err, e.SQLState()))
10099
}
101-
if e, ok := stderrs.AsType[*pq.Error](err); ok {
102-
return errors.WithStack(handlePostgres(err, string(e.Code)))
103-
}
104100
if e, ok := stderrs.AsType[*pgconn.PgError](err); ok {
105101
return errors.WithStack(handlePostgres(err, e.Code))
106102
}

0 commit comments

Comments
 (0)