diff options
author | stephan <stephan@noemail.net> | 2022-10-28 14:33:50 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-28 14:33:50 +0000 |
commit | ffbc653d85e248e5c24a3bb8467ea223a2711a5c (patch) | |
tree | 8617fca88af5e36638d703b2e3d6f813f2128a24 /ext/wasm/api | |
parent | f03ddcca3282b7d8fd2cd6e2f8caa142e5cc5be8 (diff) | |
download | sqlite-ffbc653d85e248e5c24a3bb8467ea223a2711a5c.tar.gz sqlite-ffbc653d85e248e5c24a3bb8467ea223a2711a5c.zip |
Remove sqlite3_interrupt() from the WASM build, as it is essentially impossible to employ in JS's threading model.
FossilOrigin-Name: e85387590061edbb6cdc04de792ab86f43afaa5c8d1b0792206cb5b481c7d76a
Diffstat (limited to 'ext/wasm/api')
-rw-r--r-- | ext/wasm/api/EXPORTED_FUNCTIONS.sqlite3-api | 1 | ||||
-rw-r--r-- | ext/wasm/api/sqlite3-api-prologue.js | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/ext/wasm/api/EXPORTED_FUNCTIONS.sqlite3-api b/ext/wasm/api/EXPORTED_FUNCTIONS.sqlite3-api index 416b08d23..b903bedee 100644 --- a/ext/wasm/api/EXPORTED_FUNCTIONS.sqlite3-api +++ b/ext/wasm/api/EXPORTED_FUNCTIONS.sqlite3-api @@ -42,7 +42,6 @@ _sqlite3_file_control _sqlite3_finalize _sqlite3_free _sqlite3_initialize -_sqlite3_interrupt _sqlite3_libversion _sqlite3_libversion_number _sqlite3_malloc diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js index 05305db22..b841a0491 100644 --- a/ext/wasm/api/sqlite3-api-prologue.js +++ b/ext/wasm/api/sqlite3-api-prologue.js @@ -838,10 +838,10 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( ["sqlite3_finalize", "int", "sqlite3_stmt*"], ["sqlite3_free", undefined,"*"], ["sqlite3_initialize", undefined], - ["sqlite3_interrupt", undefined, "sqlite3*" - /* ^^^ we cannot actually currently support this because JS is + /*["sqlite3_interrupt", undefined, "sqlite3*" + ^^^ we cannot actually currently support this because JS is single-threaded and we don't have a portable way to access a DB - from 2 SharedWorkers concurrently. */], + from 2 SharedWorkers concurrently. ],*/ ["sqlite3_libversion", "string"], ["sqlite3_libversion_number", "int"], ["sqlite3_malloc", "*","int"], |