mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02:00
identity providers and bearerauth
This commit is contained in:
parent
5f3d4df33a
commit
626b7fa3e9
32 changed files with 1317 additions and 12 deletions
11
service/database/db_errors/db-errors.go
Normal file
11
service/database/db_errors/db-errors.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package db_errors
|
||||
|
||||
import "strings"
|
||||
|
||||
// Returns true if the query result has no rows
|
||||
func EmptySet(err error) bool {
|
||||
if err == nil {
|
||||
return false
|
||||
}
|
||||
return strings.Contains(err.Error(), "no rows in result set")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue