-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add support for JSON #42
Comments
To be explicit, the normal build seems to have the extenstion compiled but not for the static musl target
this command build my test repo and produce a non supported json extention. while the default on ubuntu 20.04 works fine. so the question really is how to build statically built with json1 ext support for that target x86_64-unknown-linux-musl |
For what is it worth the other (more popular one https://github.com/rusqlite/rusqlite) does not have the problem with the musl target. However I like this more as it has some easier way for me to dynamically find the col names and types. I would think there is a compile option somewhere which enables the build generically? |
Thank you for the issue! If you know how to compile the original source so it has the support you need, it is a matter of updating this logic: https://github.com/stainless-steel/sqlite3-src/blob/master/build.rs Currently, it is simple, but we can add features. |
No I am quite new to rust so still finding way around. All I do is using Look at the other repo they have something like this in Cargo.toml file
Can we design the similar way to add a |
Please take a look at what the documentation says about extension support: https://sqlite.org/howtocompile.html Maybe the problem is in what other libraries are available when compiling and the corresponding directives. Most likely, |
#75 add support do developer enable/disable and load extensions. |
I think we are talking about two different types of extensions here. There are those that are built in, such as JSON, and there are those that are not. PR #75 is about the latter and unlikely to help with this issue if I understand correctly.
|
Closing as per the above quote. |
Hi,
It seems out of the box the extenstion is not supported. I did try to use json1 and got error like function json_extract does not exists.
How can I build the library with json1 ext support for example?
Thanks
The text was updated successfully, but these errors were encountered: