nalgeon / redka

Redis re-implemented with SQLite
BSD 3-Clause "New" or "Revised" License
3.24k stars 87 forks source link

CGO Dependency #12

Closed kishaningithub closed 2 months ago

kishaningithub commented 2 months ago

Can CGO dependency be removed? this will greatly improve the portability

https://gitlab.com/cznic/sqlite

This library above is a CGO free port of sqlite

nalgeon commented 2 months ago

The github.com/mattn/go-sqlite3 is optional if you use Redka as a Go module. You can use any other driver. This is addressed in the docs:

You'll also need an SQLite driver. Use github.com/mattn/go-sqlite3 if you don't mind CGO. Otherwise use a pure Go driver modernc.org/sqlite.

There is also a CGO-free usage example in example/modernc/main.go.