Skip to content

Go SDK v0.10.1

Choose a tag to compare

@github-actions github-actions released this 25 May 08:23
· 31 commits to main since this release
4f8ac88
go get github.com/joaoh82/rust_sqlite/sdk/go@v0.10.1
package main

import (
    "database/sql"
    "fmt"

    _ "github.com/joaoh82/rust_sqlite/sdk/go"  // registers "sqlrite" driver
)

func main() {
    db, _ := sql.Open("sqlrite", ":memory:")
    defer db.Close()

    _, _ = db.Exec("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)")
    _, _ = db.Exec("INSERT INTO users (name) VALUES ('alice')")

    rows, _ := db.Query("SELECT id, name FROM users")
    defer rows.Close()
    for rows.Next() {
        var id int64
        var name string
        rows.Scan(&id, &name)
        fmt.Printf("%d: %s\n", id, name)
    }
}

Prebuilt libsqlrite_c (cgo dependency)

The Go binding uses cgo against the libsqlrite_c shared library shipped by sqlrite-ffi. The tarballs attached below are the same ones from this release wave's C FFI release — provided here so Go users have a one-stop-shop:

  • sqlrite-ffi-v0.10.1-linux-x86_64.tar.gz
  • sqlrite-ffi-v0.10.1-linux-aarch64.tar.gz
  • sqlrite-ffi-v0.10.1-macos-aarch64.tar.gz
  • sqlrite-ffi-v0.10.1-windows-x86_64.tar.gz

Extract for your platform, then point cgo at it:

tar xzf sqlrite-ffi-v0.10.1-<platform>.tar.gz
export CGO_CFLAGS="-I$(pwd)/sqlrite-ffi-v0.10.1-<platform>/include"
export CGO_LDFLAGS="-L$(pwd)/sqlrite-ffi-v0.10.1-<platform>/lib -lsqlrite_c"
export LD_LIBRARY_PATH="$(pwd)/sqlrite-ffi-v0.10.1-<platform>/lib"
go build ./...

(On macOS use DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH. On Windows, place the .dll next to your binary or on %PATH%.)

See the umbrella release v0.10.1 for the full changelog.

What's Changed

  • chore(release): fix bump-version.sh commit-message hint + untrack accidental worktree gitlinks by @joaoh82 in #135
  • feat(web): v0.10.0 launch — concurrent-writes blog post + site update (SQLR-57) by @joaoh82 in #136
  • feat(web): wire PostHog analytics into sqlritedb.com (SQLR-7) by @joaoh82 in #137
  • ci: pin binaryen / wasm-opt for deterministic WASM builds (SQLR-58) by @joaoh82 in #138
  • feat(web): keyword research + on-page SEO rewrites (SQLR-33) by @joaoh82 in #139
  • feat(examples): SQLR-39 Python LLM agent with persistent memory by @joaoh82 in #140
  • feat(examples): SQLR-40 Node.js MCP-powered notes assistant by @joaoh82 in #141
  • [codex] Fix HNSW delete/reinsert rebuild by @joaoh82 in #142
  • release: v0.10.1 by @joaoh82 in #143

Full Changelog: sdk/go/v0.10.0...sdk/go/v0.10.1