Initial commit

This commit is contained in:
jdl
2026-06-14 20:10:00 +02:00
parent 19f8bf4719
commit 0d382fa2d0
7 changed files with 173 additions and 0 deletions

8
errors.go Normal file
View File

@@ -0,0 +1,8 @@
package sqliteutil
import "github.com/mattn/go-sqlite3"
func ErrIsConstraint(err error) bool {
e, ok := err.(sqlite3.Error)
return ok && e.Code == 19
}