Open whatify-io opened 1 year ago
Hi can I get some help here would be really great, as this is blocking us from getting sqlite heap stats. It would be good to add some example on how to add an extension to src/main/ext and use it. I don't know if there is a JDBC way of doing this http://www.sqlite.org/c3ref/db_status.html
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 ? After calling it I imagine sqlite should allow for extension loading - even via SQL function.
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.