Add compat package that register driver as sqlite3

This commit is contained in:
fabian.gaertner
2023-12-26 18:27:13 +01:00
committed by gleb
parent 7c372d443b
commit 74f6648b4a
2 changed files with 11 additions and 0 deletions

7
compat/compat.go Normal file
View File

@@ -0,0 +1,7 @@
package compat
import "github.com/glebarez/go-sqlite"
func init() {
sqlite.RegisterAsSQLITE3()
}

View File

@@ -1741,3 +1741,7 @@ func registerScalarFunction(
return nil
}
func RegisterAsSQLITE3() {
sql.Register("sqlite3", newDriver())
}