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

bundle SQLean extensions #1922

Merged
merged 1 commit into from
Jan 20, 2025
Merged

bundle SQLean extensions #1922

merged 1 commit into from
Jan 20, 2025

Conversation

glommer
Copy link
Contributor

@glommer glommer commented Jan 17, 2025

A common complain with libSQL is how to run extensions. The main mechanism, with a .so, has a lot of issues around how those .so are distributed.

The most common extensions are the ones in the sqlean package. We can improve this experience by bundling them in our sqlite build.

Not all SQLean extensions are kosher: some of them, like fileio, use the vfs. Others, are deemed too complex.

The extensions included here are a subset that we deem important enough, and low risk enough, to just be a part of the main bundle.

The file sqlean.c has the registration function so that the extensions are enabled in every connection.

The file sqlite3-sqlean-stripped.c is the stripped down version of sqlite3-sqlean.c from the bundle, with the extensions we don't want to enable removed.

A common complain with libSQL is how to run extensions. The main
mechanism, with a .so, has a lot of issues around how those .so are
distributed.

The most common extensions are the ones in the sqlean package. We can
improve this experience by bundling them in our sqlite build.

Not all SQLean extensions are kosher: some of them, like fileio, use
the vfs. Others, are deemed too complex.

The extensions included here are a subset that we deem important enough,
and low risk enough, to just be a part of the main bundle.
@penberg penberg added this pull request to the merge queue Jan 20, 2025
Merged via the queue into main with commit 89cc8cd Jan 20, 2025
19 checks passed
@penberg penberg deleted the glauber/sqlean branch January 20, 2025 08:58
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.

2 participants