Skip to content

Expose SQLite extension loading on driver connections - #91

Open
rriski wants to merge 1 commit into
tursodatabase:mainfrom
rriski:codex/load-extension
Open

rriski wants to merge 1 commit into
tursodatabase:mainfrom
rriski:codex/load-extension

Conversation

@rriski

@rriski rriski commented Sep 25, 2026 •

Copy link
Copy Markdown

libsql_load_extension is available in the native API, but Go callers cannot use it on a pooled connection. This exposes a small LoadExtension method on the driver connection so applications can initialize each connection through sql.Conn.Raw or a connector hook.

The test checks the missing-extension error path and, when LIBSQL_TEST_EXTENSION_PATH is set, loads an extension and calls its function. Validated locally with sqlean-time 0.28.4 on macOS ARM64:

LIBSQL_TEST_EXTENSION_PATH=/tmp/sqlite-nanoclock-sqlean/time.dylib go test -run '^TestLoadExtension$' -count=1 .

AI disclosure: codex made this

Ref: #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant