logoalt Hacker News

usrnmtoday at 7:48 PM2 repliesview on HN

The readme really lacks the answer to the "why" question. What's the use case, why should I prefer it over real sqlite?


Replies

ameliaquiningtoday at 8:10 PM

The "port" terminology is misleading; this is real SQLite, compiled from C to Go using https://gitlab.com/cznic/ccgo/-/tree/master/v4 (by the same author; this library is its most widely used application). The use case is that a lot of Go codebases prefer to completely eschew FFI because a lot of the nice properties of Go's tooling and whatnot (cross-compilation is trivial, binaries are automatically static on Linux, etc.) only hold if the entire build is pure Go.

show 1 reply
blubbertoday at 8:05 PM

Because it's cgo-free maybe?

show 1 reply