sqlite3

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 3 Imported by: 0

README

internal/sqlite3

This directory contains SQLite initialization and bundled sqlite-vec assets for clawlet.

Files

  • sqlitedriver.go
    • Loads sqlite-vec.wasm via go:embed and assigns it to github.com/ncruces/go-sqlite3 (sqlite3.Binary).
  • sqlite-vec.wasm
    • The Wasm binary embedded into the application.
  • build-sqlite-vec-wasm.sh
    • Script to rebuild sqlite-vec.wasm.
  • sqlite-vec.patch
    • Patch applied to the go-sqlite3 build output to include and auto-register sqlite-vec.

Rebuild

Requirements:

  • wasi-sdk
  • binaryen
  • curl, tar, patch

Run:

./internal/sqlite3/build-sqlite-vec-wasm.sh

To override versions explicitly:

GO_SQLITE3_VERSION=v0.30.5 SQLITE_VEC_VERSION=v0.1.6 ./internal/sqlite3/build-sqlite-vec-wasm.sh

Pinned defaults:

  • GO_SQLITE3_VERSION=v0.30.5
  • SQLITE_VEC_VERSION=v0.1.6

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL