sql error handling: no rows + duplicated key
This commit is contained in:
6
utils/sql_errors.go
Normal file
6
utils/sql_errors.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package utils
|
||||
|
||||
const (
|
||||
SQL_NO_ROWS = "no rows in result set"
|
||||
SQL_DUPLICATE = "duplicate key"
|
||||
)
|
||||
Reference in New Issue
Block a user