Documentation
¶
Index ¶
Constants ¶
View Source
const ( IntegrityConstraintViolation = "23000" RestrictVioloation = "23001" NotNullViolation = "23502" ForeignKeyViolation = "23503" UniqueViolation = "23505" CheckViolation = "23514" ExclusionViolation = "23P01" TriggerException = "P0000" )
Variables ¶
This section is empty.
Functions ¶
func IsForeignKeyViolation ¶
IsForeignKeyViolation can be used to test if the row to hard delete contains foreign keys references. If this error is detected, then just soft delete.
func IsUniqueViolation ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.