-
-
Notifications
You must be signed in to change notification settings - Fork 74
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 FTS5 Support #29
Comments
I'm going to need some more information than just a link.
|
:D I believe it is useful because it allows the users to implement efficient "Full Text Search" functionality with very little effort. It is a default module that comes with sqlite (strange it is not available already). For instance, I have a table of elements(Workout exercises) and I want to find all that work my "Chest". Good, simple example: https://www.sqlitetutorial.net/sqlite-full-text-search/ P.S.: I appreciate your work! Thank you very much. |
I think it requires recompilation, is that what you tried? https://sqlite.org/amalgamation.html Sorry if it's a stupid question. |
After a little bit more messing around I was able to get the code to properly compile (was easy in hindsight) You can download the DLL on that branch ( However, this feature won't be merged into master since it is, in my opinion & at this very moment, a non-essential feature. |
Thank you! Did you only update it for the windows platform? |
I've pushed the branch to Github Actions, so you can download the libraries there (once CI is finished) and replace them in your project: MacOS: Linux: Windows: Android: iOS: |
Perfect! Thank you again! |
I'm leaving this issue open (for now) for all future users that want to make use of FTS5 |
@hidemat This should be pretty easy as both the encrypt/decrypt and the fts5 feature are quite independent. Basically to enable FTS5 support in the latest master branch you should just add following line to the build script: Line 330 in ed34475
I'll try to update both branches in a few weeks' time. |
That's ok. I'll see what I can do with this info. Thanks, and best of luck. |
I've tried the following command to build after adding the line you mentioned: How do I build for android? Edit: Although you know what, nevermind, I was able to get fts5 working on windows. This is enough for me to begin development. I'll be patient, and wait for you to get around to this. Best of luck. |
@hidemat
In the future, both FTS5 and encrypt/decrypt will be moved to special build arguments, example: scons platform=windows enable_fts5=true use_sqleet=true In which you'll not need to update anything yourself anymore. |
Thanks so much! I'll look into this. |
Hello @2shady4u! Hope you're are doing well. I have a question. If I were to modify the |
Hi @hidemat ! I can't seem to find your fork 😅 EDIT: It's working as seen here: Now I just have to make it so that I can enable/disable the functionality from the workflow file. 🤔 EDIT2: Android support for FTS5 has now been merged into the 'enable-fts5'-branch |
Nice! Thanks so much.
Yeah I gave up on my fork, so I deleted it 😅. It was basically the sqleet branch with fts5 enabled, and I was trying to get github to enable fts5. This is not your fault, I make impulsive decisions sometimes :) |
I have been using a custom build of godot-sqlite (many thanks for creating this essential tool!) with the fts5 enabled for at least a year and it's perfectly stable. It's also enabled by default in the SQLite official amalgamation configure script, so I think it would be reasonble to enable fts5 by default in godot-sqlite in the master branch? I think the only downsize is the extra binary size but I believe it would be a small difference. A branch using fts5 and sqleet enabled would also be great. Thanks! |
Was this merged to master? I need for my project. |
Hello @Anutrix This wasn't merged to master as it is not a core feature. |
https://www.sqlite.org/fts5.html
The text was updated successfully, but these errors were encountered: