Re:Show HN: Sqinn-Go is a Golang library for accessing SQLit...
by ComputerGuru on Wednesday October 04, 2023 @10:31PM
(#37774261)
Which programming environments that do not allow calling C API functions also let you build/ship arbitrary C executables, though? (Genuinely curious what scenarios this unlocks.)
Re:Show HN: Sqinn-Go is a Golang library for accessing SQLit...
by cvilsmeier on Saturday October 07, 2023 @06:22PM
(#37806034)
I use it for SQLite Database access in Go and Java. Java lets you theoretically interface with C code, but it's a lot of JNI/DLL/SO work. It's much easier for me to just os/exec (or Runtime/exec in Java) and send data back and forth. Your mileage may vary, of course.
> It is used in programming environments that do not allow calling C API functions.
Also I guess which one is easier will be subjective. The steps are sorta similar:
Step 1) install sqlite or squinn on the base system (the latter might be harder)
Step 2) if sqllite use cgo, if squinn just use go (the former might be harder but more performant)