Documentation
¶
Index ¶
Constants ¶
View Source
const (
UniqueViolationCode = "23505"
)
Variables ¶
This section is empty.
Functions ¶
func IsUniqueViolationError ¶
IsUniqueViolationError checks if the error is a unique violation error
Parameters:
- err: the error to check
Returns:
- bool: true if the error is a unique violation error, false otherwise
- string: the name of the constraint that was violated, empty string if not a unique violation error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.