-
Notifications
You must be signed in to change notification settings - Fork 18
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
SQLite extensions #2
Comments
Hi, I am afraid no. It needs to be included during compilation. Also I am not sure about the quality of this extension: It is not an official sqlite extension. But I'd guess with some research you could implement it in plain SQL e.g. https://stackoverflow.com/questions/1123576/how-to-find-nth-percentile-with-sqlite P.S. PPS |
Hi, thanks for reply, do you have any plans to add loadExtension api ? |
I think - at least to my current understanding - this is impossible because WebAssembly has no way to load/link other wasm files dynamically. |
@spaciandd Please checkout the new version. I'll pin this issue and rename it so I can reuse it for other extensions. |
Is it possible to add the fuzzy, regexp, and text extensions from the sqlean.js library? I need these extensions for performing certain queries. |
Sure, should not be too difficult. Could you prepare a PR? - no changes to dist/* please. If you look at the changes for the stats extension it is pretty much the same:
If you could prepare a PR (mustn't be perfect) then I will merge it (maybe with a bit of refactoring/cleaning). |
I will give it a try. |
I attempted to perform a build on Debian, but encountered errors that I am unable to resolve. |
Could you make draft PR and share the changes you made? |
In fact, I haven't started making any changes yet; I'm just compiling the latest current version of the spl.js code. |
Did you initialize the git submodules - especially sqlean? Except that I can see that something seems to be wrong with the stats extension I can not really give you a hint were the problem might be. |
I have already run git submodule init. |
Theoretically yes, but it is not implemented. Here is a related issue #28 But I think just including the extensions from sqlean would be far easier and more efficient in this case. |
I need to load stats extension. Is there any way ?
The text was updated successfully, but these errors were encountered: