Add new error for "Violation Check Constraint"

This commit is contained in:
Anıl Şenay 2024-04-25 21:29:09 +03:00
parent 207f1ac68f
commit c18bcd70d7

View File

@ -49,4 +49,6 @@ var (
ErrDuplicatedKey = errors.New("duplicated key not allowed")
// ErrForeignKeyViolated occurs when there is a foreign key constraint violation
ErrForeignKeyViolated = errors.New("violates foreign key constraint")
// ErrCheckConstraintViolated occurs when there is a check constraint violation
ErrCheckConstraintViolated = errors.New("violates check constraint")
)