Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[release/9.0-staging] Improve LoadExtension to work correctly with dotnet run and lib* named libs - #35717

#35717
Merged
roji merged 1 commit into
dotnet:release/9.0-stagingdotnet/efcore:release/9.0-stagingfrom
roji:sqlite-load-extension-9roji/efcore:sqlite-load-extension-9Copy head branch name to clipboard
Mar 4, 2025
Merged

[release/9.0-staging] Improve LoadExtension to work correctly with dotnet run and lib* named libs#35717
roji merged 1 commit into
dotnet:release/9.0-stagingdotnet/efcore:release/9.0-stagingfrom
roji:sqlite-load-extension-9roji/efcore:sqlite-load-extension-9Copy head branch name to clipboard

Conversation

@roji

@roji roji commented Mar 3, 2025

Copy link
Copy Markdown
Member

Backport of #35617 (see #35718 for 9.0 backport PR)
Closes #35715

Description

This improves the extension loading logic of Microsoft.Data.Sqlite to attempt to load native extensions from additional standard native library locations. This is particularly important to SQLite vector database support, which will become our first getting started sample for vector databases with Microsoft.Extensions.VectorData etc. This is an important part of the .NET Intelligent Apps story.

Customer impact

This enables nuget packages to bundle extension native binaries (e.g. sqlite_vec), and for SQLite to just pick them up without any additional obscure handling of native library loading paths.

How found

Path of SQLite vector data investigative work by @krwq.

Regression

No

Testing

Manual testing performed.

Risk

Very low - only adds additional attempts to load from. Quirked.

/cc @krwq

…d libs

* Improve LoadExtension to work correctly with dotnet run and lib packages
* Use [] instead of Array.Empty
@roji
roji requested a review from a team March 3, 2025 20:53
@roji
roji enabled auto-merge (squash) March 3, 2025 22:46
@roji
roji merged commit 6e2f99c into dotnet:release/9.0-staging Mar 4, 2025
@roji
roji deleted the sqlite-load-extension-9 branch March 4, 2025 18:34
This was referenced Jul 22, 2025
This was referenced Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.