go-sqlite-lite icon indicating copy to clipboard operation
go-sqlite-lite copied to clipboard

New SQLite version

Open mwat56 opened this issue 4 years ago • 2 comments

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

mwat56 avatar Apr 13 '20 17:04 mwat56

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.

paparipote avatar May 30 '20 15:05 paparipote

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
)

joenano avatar Dec 09 '21 02:12 joenano