Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about integrating and using the sqlite-vec extension #1212

Open
supperman009 opened this issue Nov 20, 2024 · 2 comments
Open

Questions about integrating and using the sqlite-vec extension #1212

supperman009 opened this issue Nov 20, 2024 · 2 comments
Labels
question Further information is requested

Comments

@supperman009
Copy link

Is your feature request related to a problem? Please describe.
I want to conveniently use some extensions of SQLite, such as the vector extension sqlite-vec, when using the JDBC driver. However, I don't know how to easily integrate the sqlite-vec extension with the JDBC driver. How can I make it convenient for Java to use the vector extension features when calling the SQLite database?

Describe the solution you'd like
I don't want to perform any compilation operations. I would like to simply specify the sqlite-vec .so or .dll file, so that I can smoothly use the SQLite features with the extension loaded in JDBC.

@gotson gotson added question Further information is requested and removed triage labels Nov 20, 2024
@glaforge
Copy link

I'm also curious if we can somehow use the sqlite-vec extension.
Can the extension be loaded somehow, without having to modify sqlite-jdbc in any way?
Or does it require some special support on the sqlite-jdbc side to work?

@gotson
Copy link
Collaborator

gotson commented Dec 17, 2024

You need to enable the pragma, then you can SELECT load_extension("extension-functions");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants