The go-sqlite3 wrapper allows Go programs to interface with the installed SQLite3 database engine.


First follow the instructions to compile and install LiteSync or use the pre-compiled binaries for your platform.

Then download and compile go-sqlite3 with the parameter: --tags libsqlite3

This parameter will make it use the already installed SQLite library containing LiteSync.

For more information check the instructions at the go-sqlite3 repository.


To open the database we use a URI like this:

db, err := sql.Open("sqlite3", "file:test.db?node=secondary&connect=tcp://server:port")

Check also the usage examples