identity providers and bearerauth

This commit is contained in:
Marco Realacci 2022-11-18 13:05:40 +01:00
parent 5f3d4df33a
commit 626b7fa3e9
32 changed files with 1317 additions and 12 deletions

View 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")
}