8 ms·
There are a few go libs now that offer SQLite without cgo. https://github.com/crawshaw/sqlite https://github.com/crawshaw/sqlite https://github.com/zombiezen/g
by bbss 5y ago
There are a few go libs now that offer SQLite without cgo.
https://github.com/crawshaw/sqlite https://github.com/crawshaw/sqlite
https://github.com/zombiezen/go-sqlite https://github.com/zombiezen/go-sqlite
- benhoyt 5y agocrawshaw/sqlite actually uses CGo -- it's a wrapper around the C version of SQLite. For example, see https://github.com/crawshaw/sqlite/blob/23d646f8ac00d9dd239003c121ca4fad16e2445f/sqlite.go#L63 https://github.com/crawshaw/sqlite/blob/23d646f8ac00d9dd2390... zombiezen/go-sqlite uses cznic's pure Go converted version of SQLite, so avoids CGo. It's explicitly stated to be "a fork of crawshaw.io/sqlite that uses modernc.org/sqlite, a CGo-free SQLite package. It aims to be a mostly drop-in replacement for crawshaw.io/sqlite."
- bbss 5y agoAh yes my bad