-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Description
Describe the feature
A new error type like gorm.ErrUniqueViolation
would allow handling errors related to unique violation.
Motivation
Since GORM allows handling common DB errors, it would be nice to support handling errors related to unique violation too.
Related Issues
- How to check if error type is DUPLICATE KEY #4037
- POSTGRES How to check if error type is DUPLICATE KEY #4135
Also this at StackOverflow:
evantkchong, morigs, GauthierHacout, Guy922, Hyldegaard and 3 more