bvinc / go-sqlite-lite

SQLite driver for the Go programming language
BSD 3-Clause "New" or "Revised" License
327 stars 34 forks source link

New SQLite version #26

Open mwat56 opened 4 years ago

mwat56 commented 4 years ago

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

paparipote commented 4 years ago

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.

joenano commented 2 years ago

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
)