Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnWithAlias ¶
ColumnWithAlias returns the column prefixed with the table alias if provided. For example: ColumnWithAlias("name", "u") returns "u.name".
func IsDuplicateKeyError ¶
IsDuplicateKeyError checks if the error is a duplicate key error. It first checks database-specific error codes for reliability, then falls back to message matching for compatibility.
func IsForeignKeyError ¶
IsForeignKeyError checks if the error is a foreign key constraint error. It first checks database-specific error codes for reliability, then falls back to message matching for compatibility.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.