Skip to content

Commit

Permalink
Add compat package that register driver as sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabianexe authored and glebarez committed Dec 26, 2023
1 parent 7c372d4 commit 74f6648
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compat/compat.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package compat

import "github.com/glebarez/go-sqlite"

func init() {
sqlite.RegisterAsSQLITE3()
}
4 changes: 4 additions & 0 deletions sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -1741,3 +1741,7 @@ func registerScalarFunction(

return nil
}

func RegisterAsSQLITE3() {
sql.Register("sqlite3", newDriver())
}

0 comments on commit 74f6648

Please sign in to comment.