| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Compiled using EMSCRIPTEN 1.37.9.
|
+1 for this; if the FTS5 engine is on, that'd allow search indexes created by other languages to be used in JS in the browser. |
Sorry, something went wrong.
|
sql.js is already quite a huge dependency to have. I don't think adding other modules by default is a good idea. But compiling different versions for different needs is a good idea. |
Sorry, something went wrong.
|
I believe I am able to have FTS5 running. Here are the procedures:
In the next few weeks, I will try to test the performance of FTS5 by adding thousands of documents. |
Sorry, something went wrong.
|
@3CE8D2BAC65BDD6AA9 Thank you for posting the steps. I was also able to run FTS5 but this pull request was to enable it by default inside sql.js; but since I agree with @lovasoa (we shouldn't add modules that most people won't use) I didn't even try to fix the failing unit tests. |
Sorry, something went wrong.
| EMCC=$(EMSCRIPTEN)/emcc | ||
|
|
||
| CFLAGS=-DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DISABLE_LFS -DLONGDOUBLE_TYPE=double -DSQLITE_INT64_TYPE="long long int" -DSQLITE_THREADSAFE=0 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS | ||
| CFLAGS=-DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DISABLE_LFS -DLONGDOUBLE_TYPE=double -DSQLITE_INT64_TYPE="long long int" -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS5 |
There was a problem hiding this comment.
Why change the SQLITE_THREADSAFE default setting? Was this intended?
Sorry, something went wrong.
There was a problem hiding this comment.
I noticed the same thing but no clue why there is such a different.
Sorry, something went wrong.
|
I am open to the idea of making such compile time extensions into different versions of sql.js (such as memory-growth, debug, etc). Would that be a good solution here? Can we expect future extensions to pass the standard test suite? Would a standard procedure for adding such extensions help in the future? |
Sorry, something went wrong.
|
Would be nice to have an extra flavor with FTS5 enabled. |
Sorry, something went wrong.
|
I also wonder if that would be a good idea to include it by default, but I definitely would love to have a ready-made version with FTS5 enabled. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Compiled using EMSCRIPTEN 1.37.9.
Tests:
Same error I get on master [6dc4ac5].