Skip to content

Commit d1db251

Browse files
anilsenaya631807682
authored andcommitted
Add comment for postgresql docs reference
1 parent 29f4c15 commit d1db251

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

error_translator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/jackc/pgx/v5/pgconn"
99
)
1010

11+
// The error codes to map PostgreSQL errors to gorm errors, here is the PostgreSQL error codes reference https://www.postgresql.org/docs/current/errcodes-appendix.html.
1112
var errCodes = map[string]error{
1213
"23505": gorm.ErrDuplicatedKey,
1314
"23503": gorm.ErrForeignKeyViolated,

0 commit comments

Comments
 (0)