go-sqlite3 icon indicating copy to clipboard operation
go-sqlite3 copied to clipboard

How to change the sqlite core?

Open yorksen opened this issue 5 years ago • 2 comments

The Core version of the latest go-sqlite3 is SQLite 3.28.0, which has some security issue, our project have to change to 3.31.1, but I don't down how to modify this go-sqlite3 source code to replace the SQLite core, please give me some suggestion, thanks !

yorksen avatar Jun 18 '20 12:06 yorksen

I pushed new tag v1.14.0. So you can upgarde go-sqlite3 now.

mattn avatar Jun 18 '20 13:06 mattn

The upgrade/upgrade.go script allows to download the latest version:

go run upgrade/upgrade.go

You can then commit, push to your Github fork.

Then use that fork in your projects with Go modules with go mod edit -replace. Example:

go mod edit -replace=github.com/mattn/go-sqlite3=github.com/dolmen-go/[email protected]

(Use my "git go-version" alias to get the version from the commit)

dolmen avatar Jul 07 '20 16:07 dolmen