bvinc / go-sqlite-lite

SQLite driver for the Go programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New SQLite version

mwat56 opened this issue · comments

Are there any plans to update your library to the current SQLite version (3.31.1 as of January 2020)?

Hello, as a way to "modernize" this nice library, what I was doing is to replace the old versions of sqlite3.c and sqlite3.h by the new ones, into my machine: github.com\bvinc\go-sqlite-lite\sqlite3 and then rebuild/install it with good results.
I work under windows and I use go-sqlite-lite because, by now, it is faster than other similar products.
Regards.

The above method works well, there is a list of urls for different sqlite version downloads here.

The sqlite3.c and sqlite3.h files are in the amalgamation zips.

Clone this repo, replace the files in the sqlite folder then run

go mod init github.com/bvinc/go-sqlite-lite/local

then in your projects go.mod file add this to use the local version.

replace github.com/bvinc/go-sqlite-lite v0.6.1 => /path/to/local

require (
	github.com/bvinc/go-sqlite-lite v0.6.1
)