mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
.. | ||
rs_src | ||
Cargo.toml | ||
connection.go | ||
go.mod | ||
go.sum | ||
limbo_test.go | ||
limbo_unix.go | ||
limbo_windows.go | ||
README.md | ||
stmt.go | ||
types.go |
Limbo driver for Go's database/sql
library
NOTE: this is currently heavily W.I.P and is not yet in a usable state. This is merged in only for the purposes of incremental progress and not because the existing code here proper. Expect many and frequent changes.
This uses the purego library to call C (in this case Rust with C ABI) functions from Go without the use of CGO
.
To test
Linux | MacOS
All commands listed are relative to the bindings/go directory in the limbo repository
cargo build --package limbo-go
# Your LD_LIBRARY_PATH environment variable must include limbo's `target/debug` directory
LD_LIBRARY_PATH="../../target/debug:$LD_LIBRARY_PATH" go test
Windows
cargo build --package limbo-go
# Copy the lib_limbo_go.dll into the current working directory (bindings/go)
# Alternatively, you could add the .dll to a location in your PATH
cp ../../target/debug/lib_limbo_go.dll .
go test