OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// +build cgo |
|
|
|
package db |
|
|
|
// Register the sqlite3 driver. |
|
|
|
import "github.com/mattn/go-sqlite3" |
|
|
|
func init() { |
|
registerAlreadyExistsChecker(func(err error) bool { |
|
sqlErr, ok := err.(sqlite3.Error) |
|
if !ok { |
|
return false |
|
} |
|
return sqlErr.ExtendedCode == sqlite3.ErrConstraintUnique |
|
}) |
|
}
|
|
|