Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
HandleError logs an error with an extra description and masks the error if it's an SQL one. The function ensures we never return plain SQL errors and leak anything. The function should be used for every database query error.
func IsErrUniqueViolation ¶
IsErrUniqueViolation determines is the given error is a unique contraint violation.
func QueryPersist ¶
func QueryString ¶
size of key and array should be both greater than 0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.