github.com/jackc/pgconn.PgError.Code (field)
8 uses
github.com/jackc/pgconn (current package)
errors.go#L37: Code string
errors.go#L56: return pe.Severity + ": " + pe.Message + " (SQLSTATE " + pe.Code + ")"
errors.go#L61: return pe.Code
pgconn.go#L157: if pgerr.Code == ERRCODE_INVALID_PASSWORD || pgerr.Code == ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION {
pgconn.go#L802: Code: string(msg.Code),
github.com/jackc/pgconn/stmtcache
lru.go#L98: pgErr.Code == "0A000" &&
golang.org/x/pkgsite/internal/database
database.go#L231: if errors.As(err, &gerr) && gerr.Code == serializationFailureCode {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |