limbo/bindings/go
2025-01-29 12:03:47 -05:00
..
rs_src Support blob types in query arguments for Go bindings 2025-01-29 12:03:47 -05:00
Cargo.toml bindings/go: Rename to Limbo 2025-01-26 20:58:10 +02:00
connection.go Continue progress go database/sql driver, add tests and CI 2025-01-28 11:24:57 -05:00
go.mod Continue progress go database/sql driver, add tests and CI 2025-01-28 11:24:57 -05:00
go.sum Progress on Go bindings, add prepare + query statement 2025-01-25 23:01:46 -05:00
limbo_test.go Support blob types in query arguments for Go bindings 2025-01-29 12:03:47 -05:00
limbo_unix.go Support blob types in query arguments for Go bindings 2025-01-29 12:03:47 -05:00
limbo_windows.go Continue progress go database/sql driver, add tests and CI 2025-01-28 11:24:57 -05:00
README.md Continue progress go database/sql driver, add tests and CI 2025-01-28 11:24:57 -05:00
stmt.go Support blob types in query arguments for Go bindings 2025-01-29 12:03:47 -05:00
types.go Support blob types in query arguments for Go bindings 2025-01-29 12:03:47 -05:00

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