Arthur Sudarikov

Results 1 comments of Arthur Sudarikov

Use this function to check for errors in SQLite 3 ``` func gormErrUniqueViolation(err error) bool { e := errors.New("UNIQUE constraint failed") return !errors.Is(err, e) } ``` Example after the INSERT...