4 ms·
I love Go and SQLite and enjoy using them together. One bummer is that it requires CGO to use and that makes cross compiling a pain. It might be nice to use the
by pstuart 3y ago
I love Go and SQLite and enjoy using them together. One bummer is that it requires CGO to use and that makes cross compiling a pain. It might be nice to use the modernc variant (via build tags) to make this more portable -- https://gitlab.com/cznic/sqlite https://gitlab.com/cznic/sqlite
- markusw 3y agoIt’s bring-your-own-driver, so you can use a CGo-free one. :) The one in go.mod is only used in tests.
- willi59549879 3y agoZig allows cross compilation of cgo
- pdimitar 3y agoThere is a pure Golang SQLite implementation btw, I love that aspect of the Golang ecosystem. Not even Rust has that and I am envious.
- pstuart 3y agoGive Rust some time, there's a wee bit of competition going on there ;-)
- pdimitar 3y agoOh, absolutely, it's just kind of strange for me that nobody has bothered translating the SQLite C code to Rust, and Golang's community did. Though I'd guess tools like `c2rust` don't produce idiomatic Rust code and it can be a lot of effort to turn that into proper Rust. That's likely the biggest reason.