diff --git a/embed/README.md b/embed/README.md index fc56933..b2074a7 100644 --- a/embed/README.md +++ b/embed/README.md @@ -9,6 +9,7 @@ The following optional features are compiled in: - [JSON](https://sqlite.org/json1.html) - [R*Tree](https://sqlite.org/rtree.html) - [GeoPoly](https://sqlite.org/geopoly.html) +- [Spellfix1](https://sqlite.org/spellfix1.html) - [soundex](https://sqlite.org/lang_corefunc.html#soundex) - [stat4](https://sqlite.org/compile.html#enable_stat4) - [base64](https://github.com/sqlite/sqlite/blob/master/ext/misc/base64.c) diff --git a/embed/bcw2/bcw2.wasm b/embed/bcw2/bcw2.wasm index 596b22b..5805df4 100755 Binary files a/embed/bcw2/bcw2.wasm and b/embed/bcw2/bcw2.wasm differ diff --git a/embed/bcw2/build.sh b/embed/bcw2/build.sh index ee21ddc..42c56fb 100755 --- a/embed/bcw2/build.sh +++ b/embed/bcw2/build.sh @@ -33,6 +33,7 @@ mv sqlite/ext/misc/decimal.c build/ext/ mv sqlite/ext/misc/ieee754.c build/ext/ mv sqlite/ext/misc/regexp.c build/ext/ mv sqlite/ext/misc/series.c build/ext/ +mv sqlite/ext/misc/spellfix.c build/ext/ mv sqlite/ext/misc/uint.c build/ext/ cd build diff --git a/embed/sqlite3.wasm b/embed/sqlite3.wasm index 6b18057..47aa1ae 100755 Binary files a/embed/sqlite3.wasm and b/embed/sqlite3.wasm differ diff --git a/sqlite3/download.sh b/sqlite3/download.sh index 3acadb7..b4b90c7 100755 --- a/sqlite3/download.sh +++ b/sqlite3/download.sh @@ -18,6 +18,7 @@ curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/decimal. curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/ieee754.c" curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/regexp.c" curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/series.c" +curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/spellfix.c" curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/uint.c" cd ~- diff --git a/sqlite3/main.c b/sqlite3/main.c index 50f10db..c732937 100644 --- a/sqlite3/main.c +++ b/sqlite3/main.c @@ -7,6 +7,7 @@ #include "ext/ieee754.c" #include "ext/regexp.c" #include "ext/series.c" +#include "ext/spellfix.c" #include "ext/uint.c" // Bindings #include "bind.c" @@ -26,6 +27,7 @@ __attribute__((constructor)) void init() { sqlite3_auto_extension((void (*)(void))sqlite3_ieee_init); sqlite3_auto_extension((void (*)(void))sqlite3_regexp_init); sqlite3_auto_extension((void (*)(void))sqlite3_series_init); + sqlite3_auto_extension((void (*)(void))sqlite3_spellfix_init); sqlite3_auto_extension((void (*)(void))sqlite3_uint_init); sqlite3_auto_extension((void (*)(void))sqlite3_time_init); } \ No newline at end of file