SPB Git

Repository Public

pg.go 192 B 13 lines go

1package identity23import (4	"errors"56	"github.com/jackc/pgx/v5/pgconn"7)89func isUniqueViolation(err error) bool {10	var pg *pgconn.PgError11	return errors.As(err, &pg) && pg.Code == "23505"12}13
Files main
Menu

Theme