Skip to content

Load SQLite extensions, including sqlite-vec #2502

Closed

Description

@datlechin

Problem

The SQLite plugin never calls sqlite3_load_extension, so a database relying on sqlite-vec, SpatiaLite, or an FTS extension that is not compiled in cannot be used, and queries calling their functions fail with an unhelpful "no such function".

Proposed solution

  • An Extensions list on the SQLite connection form taking dylib paths, loaded in order at connect.
  • Enable extension loading only while that list is non-empty.
  • Report the loader's own error when one fails, instead of failing the connection with no reason.
  • The same on libSQL.
  • A loaded extension is arbitrary code, so confirm before loading one that arrived through an imported connection.

Alternatives considered

The sqlite3 CLI with .load.

Related database type

SQLite

Activity

  1. added
    enhancement
    on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions