4 ms·
Does this use an external binary or CGO or Wazero (Wasm) or is it rewritten in Go? With SQLite, although all approaches are available, my fav is to use https:/
by OutOfHere 1y ago
Does this use an external binary or CGO or Wazero (Wasm) or is it rewritten in Go?
With SQLite, although all approaches are available, my fav is to use https://github.com/ncruces/go-sqlite3 https://github.com/ncruces/go-sqlite3 which uses Wazero.
I try to avoid CGO if I can because it adds compile-time complexity, making it unfriendly for a user to compile.
- nu11ptr 1y ago> Does this use an external binary or CGO or Wazero (Wasm) or is it rewritten in Go? Since Postgres is always a network connection, I don't believe any CGo is required. > I try to avoid CGO if I can because it adds compile-time complexity, making it unfriendly for a user to compile. Using zig as your C compiler mostly fixes this, but you can't 100% get rid of the complexity, but I've cross compiled using Zig cc to Windows/Mac/Linux pretty easily via CGo.