Skip to content
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

Load extension at run time? #898

Open
p3v9d5ui opened this issue Oct 25, 2019 · 8 comments
Open

Load extension at run time? #898

p3v9d5ui opened this issue Oct 25, 2019 · 8 comments

Comments

@p3v9d5ui
Copy link

Sqlite includes the function load_extension() to load an extension at run-time, but that does not seem to have been implemented with this plugin. Is there a way to load an extension?

Thanks!

@brodycj
Copy link
Contributor

brodycj commented Dec 3, 2019

That should be possible but it would need some deeper investigation.

I am hoping to support this kind of thing in a redesign as discussed in #862.

@p3v9d5ui
Copy link
Author

The reason I ask for this is because I would like to use an extension that sorts Full-text results by relevance. An alternative would be to support FTS5 full-text indexes, which comes with a relevance function natively. Any possibility to add support for FTS5?

@brodycj
Copy link
Contributor

brodycj commented Dec 10, 2019

FTS5 is already supported by brodybits/cordova-sqlite-ext.

@p3v9d5ui
Copy link
Author

Is that a drop-in replacement?

@brodycj
Copy link
Contributor

brodycj commented Dec 10, 2019

yes

@brodycj
Copy link
Contributor

brodycj commented Dec 10, 2019

Please be sure to completely remove cordova-sqlite-storage before adding cordova-sqlite-ext. Please report if it works for you or not. Thanks!

@p3v9d5ui
Copy link
Author

Hi @brodybits , I've replaced cordova-sqlite-storage with cordova-sqlite-ex and have experienced no issues. It was a drop-in replacement requiring no code changes, and the performance appears to be identical. I was able to switch the FTS indexes over to FTS5 and they're working fine.

@brodycj
Copy link
Contributor

brodycj commented Dec 13, 2019

👍Thanks for the confirmation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants