Skip to content

Commit

Permalink
Add comment for postgresql docs reference
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsenay authored and a631807682 committed May 8, 2024
1 parent 29f4c15 commit d1db251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions error_translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/jackc/pgx/v5/pgconn"
)

// 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.
var errCodes = map[string]error{
"23505": gorm.ErrDuplicatedKey,
"23503": gorm.ErrForeignKeyViolated,
Expand Down

0 comments on commit d1db251

Please sign in to comment.