diff --git a/compat/compat.go b/compat/compat.go new file mode 100644 index 0000000..8a3e3e1 --- /dev/null +++ b/compat/compat.go @@ -0,0 +1,7 @@ +package compat + +import "github.com/glebarez/go-sqlite" + +func init() { + sqlite.RegisterAsSQLITE3() +} diff --git a/sqlite.go b/sqlite.go index 7f13b89..3e63143 100644 --- a/sqlite.go +++ b/sqlite.go @@ -1741,3 +1741,7 @@ func registerScalarFunction( return nil } + +func RegisterAsSQLITE3() { + sql.Register("sqlite3", newDriver()) +}