You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be ideal if bun allowed users with advanced sqlite use cases to bring their own sqlite build. I see this is possible on macos but that the feature is a no-op on other platforms, making it effectively useless given an app will not be deployed to production on macos.
It looks like this is controlled by whether or not LAZY_LOAD_SQLITE is defined:
throwException(lexicalGlobalObject, scope, createError(lexicalGlobalObject, "SQLite already loaded\nThis function can only be called before SQLite has been loaded and exactly once. SQLite auto-loads when the first time you open a Database."_s));
Would a PR to allow custom sqlite builds in Bun be accepted? If so, what is the proper direction? E.g., having all platforms lazily load sqlite or something else?
We're looking into porting the backend of Zero from Node to Bun (pending some perf measurements) but we require the wal2 branch of sqlite.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
SQLite has many compile time options which control various things like:
As well as a few branches which are supported by the SQLite team and popular among other users. Two of the most used branches for alternative sqlite builds being bedrock & wal2: https://www.sqlite.org/src/doc/wal2/doc/wal2.md
It would be ideal if bun allowed users with advanced sqlite use cases to bring their own sqlite build. I see this is possible on macos but that the feature is a no-op on other platforms, making it effectively useless given an app will not be deployed to production on macos.
It looks like this is controlled by whether or not LAZY_LOAD_SQLITE is defined:
bun/src/bun.js/bindings/sqlite/JSSQLStatement.cpp
Lines 1052 to 1058 in fd894f5
Would a PR to allow custom sqlite builds in Bun be accepted? If so, what is the proper direction? E.g., having all platforms lazily load sqlite or something else?
We're looking into porting the backend of Zero from Node to Bun (pending some perf measurements) but we require the
wal2branch of sqlite.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions