-
Notifications
You must be signed in to change notification settings - Fork 595
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
How do I load an extension #908
Comments
Hi can I get some help here would be really great, as this is blocking us from getting sqlite heap stats. |
Hello anything someone can come with? |
Hi @whatify-io , did you manage to find a solution to this? |
it seems there is load_extension in JNI to allow loading of extensions.
Have your tried it @whatify-io ? |
Describe the bug
I added memstat extension by copying code from https://sqlite.org/src/file/ext/misc/memstat.c and pasting it in src/main/ext.
Then i did:
This produced the jar.
Now I copied the Sample.java, showing relevant section below:
I was able to use a .so file and load that but I want to compile it together as done for
extension-functions
Expected behavior
I expected to see memstat table.
Logs
If applicable, provide logs.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: