aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm
Commit message (Collapse)AuthorAge
* Minor JS test cleanups prompted by a linter.stephan2025-06-21
| | | FossilOrigin-Name: 764235a3d15fda55af85ebe3b5885fa27336cc0e979f1be2f6770b66a84bbe87
* Remove some duplicated JS tests.stephan2025-06-21
| | | FossilOrigin-Name: d1cb9ed79d806f667c22f5ba9861451d4d0765aa3072e085831045cf3a39f8b4
* Reduce the maximum --size flag for JS kvvfs speedtest1 from 4 to 2, as ↵stephan2025-06-21
| | | | | --size 3 and 4 are overflowing the kvvfs storage limits. FossilOrigin-Name: b77b3adc828ce543e880e230701edd5e0ccb681e4c3c724ea8ad5ecbd69c73a6
* Give oo1.Stmt.get() similar treatment to [8c187140a60b]. This is an internal ↵stephan2025-06-21
| | | | | change only - the API is unaffected. FossilOrigin-Name: f5a7abc0a447273de40dacc463d267d26d4b62be56ee15baf05825791c2a7a6e
* Extend the SEE-via-kvvfs tests to include all three key types.stephan2025-06-21
| | | FossilOrigin-Name: fc001aa5ee978795c2ff670bea64db0b69b6bde98653769d9cede8825a28e698
* Rework how JS's oo1.DB.exec() flags its Stmt objects to make certain Stmt ↵stephan2025-06-21
| | | | | APIs illegal (i.e. throwing) if called while that Stmt is being step()ped by DB.exec() (which can happen via client-provided per-result-row callbacks). This is an internal change only - the API is unaffected. Remove some unrelated dead code. FossilOrigin-Name: 8c187140a60b62dc3b6066b8615766d52b7a29a5de992cbb6d312dbb225a980b
* Export the column-metadata APIs to WASM. Doing so requires a non-default ↵stephan2025-06-18
| | | | | build of sqlite3.c, so this is a proof-of-concept branch saved just in case SQLITE_ENABLE_COLUMN_METADATA ever becomes the default for sqlite3.c. FossilOrigin-Name: 59db3f639d1073678805dea26a4686eddfb238f055aa90bd429fc7fd33241502
* Apply the duplicate 'export default' workaround to the (untested and ↵stephan2025-06-03
| | | | | unsupported) node-specific build rules in mkwasmbuilds.c to resolve a problem reported off-list by Thomas Steiner. FossilOrigin-Name: 2f8a1b79533879e4975b405c46fea496ba8bffbef065e7dd0ad29fd4aa8f8f92
* Move a mis-located makefile comment block.stephan2025-05-31
| | | FossilOrigin-Name: 7d884386bec11f47c2c18002dd8c573c9b5cb6f7cdf2307a96cccead05b6abf2
* Squelch an interesting but harmless struct initialization warning emitted ↵stephan2025-05-30
| | | | | after an emsdk update. Fix JS breakage introduced by changes in Emscripten 4.0.7: manually export the HEAPxyz symbols which used to be exposed by default. FossilOrigin-Name: 10d0897cc9a5998fe1344cfbb242a78b59012e29aa3b1993895dfac26721b053
* Remove unnecessary "www." prefixes on domain names in URLs.drh2025-04-10
| | | FossilOrigin-Name: 20acd630b91609725794ce84f9eda01d5f3c898407f0948264830851d25ccaa6
* Internal doc touchups in ext/wasm/mkwasmbuilds.c. No functional changes.stephan2025-03-18
| | | FossilOrigin-Name: 47d34260e74912eeae704bff7c4314b893af86ee66dd96a1bc6f450d3e290702
* Fix a long-standing filename digest computation bug in the OPFS SAHPool VFS ↵stephan2025-03-16
|\ | | | | | | | | which caused all VFS-stored filenames to have a digest value of 0. See [/forumpost/042d53c928382021] and for full details. FossilOrigin-Name: 493cbe74504e8eb1ca8f2edf49fdab6bebc7fe36ffab06932a4b8c5a4eea86cd
| * Minor doc corrections for the sahpool-digest fix and merge in current trunk.stephan2025-03-14
| |\ | |/ |/| FossilOrigin-Name: 500f2e6ec74b4c0e4ac0365ba4e0d81ed6df8dd09dc0f8af65d294c3453f8865
| * Merge trunk into the sahpool-digest branch.stephan2025-02-26
| |\ | | | | | | FossilOrigin-Name: fc1eeb7d1f2880907b0fe71a8c572dd7cd74a5d65ec0177332976ad2f8c2b216
| * | More work on the sahpool digest fix. New/fixed versions can read legacy (no ↵stephan2025-02-26
| | | | | | | | | | | | | | | digest) files but the reverse is only possible in limited circumstances (when files originated from a legacy version). The burning question is whether the real fix would be to remove this digest check altogether, as it only applies in a very limited context, and the fact that it was broken for some 18 months unnoticed suggests that its value might not be worth the CPU cycles. FossilOrigin-Name: 0df62b776c68bebb0e187b353b6f29b0a41a29f0a1c8d6728fa6b9f7ce0d13f7
| * | Add a test app to assist in validating the SAHPool digest calculation fix.stephan2025-02-03
| | | | | | | | | FossilOrigin-Name: a1e304b8020025cc73a658bd8c7697d59b4f3ad96cac0a3e36553a3207d13dc6
| * | Initial work on a fix for the SAHPool VFS's effectively-no-op digest ↵stephan2025-02-03
| | | | | | | | | | | | | | | calculation, as reported in [https://github.com/sqlite/sqlite-wasm/issues/97|ticket #97 of the downstream npm subproject]. This requires more testing alongside databases created before this version to ensure that it's backwards-compatible. FossilOrigin-Name: 9234c33f92d92bfddc6211c9c587f1072e70837c0ffe1416ef7d84d59bacd364
* | | Use SQLITE_EXTRA_INIT_MUTEXED instead of SQLITE_EXTRA_INIT for the ↵stephan2025-03-01
| | | | | | | | | | | | | | | SQLITE_WASM_EXTRA_INIT feature, as suggested in [forum:14183b98fc0b1dea|forum post 14183b98fc0b1dea]. This doesn't make a functional difference now - this is in the name of future-proofing against eventual threading support in wasm. FossilOrigin-Name: 46479c2e30b9676e0fa8da117ba67f673671fb340c9bea38ece19a1b2371a57b
* | | Approximately 100 typo corrections spanning the whole tree, submitted via ↵stephan2025-02-27
| |/ |/| | | | | | | [forum:0db9827f0464bc33|forum post 0db9827f0464bc33] and individually audited and verified. Affects only code comments, innocuous test strings, error message text in tool (not library) code, and configure-level help text. FossilOrigin-Name: f50c21484d3cac73589da0376c423de39ae8b842218105786c5aa3726e4dcaed
* | Fix a bug in mkwasmbuilds.c which caused sqlite3.wasm to get deleted ↵stephan2025-02-26
| | | | | | | | | | directly after it was built. FossilOrigin-Name: 1a72d1d13e42f69f02861f8ac3058e69b78d4fd2050ca8c53a1ce016b7e0863d
* | Approximately 50 typo fixes, spanning the whole tree, contributed via ↵stephan2025-02-25
| | | | | | | | | | [forum:006c8fa165083ac3|forum post 006c8fa165083ac3] and individually checked for correctness. Affects only code comments, docs, and a single line of debug output in a test app. FossilOrigin-Name: af928818a030924060ee0762431dae0f16d53a62f4e1132754d052eb9c621ac2
* | wasm: do not build the (untested/unsupported) node-for-node build by ↵stephan2025-02-20
| | | | | | | | | | default, to cut build time by about 15%. Adjacent cleanups in mkwasmbuilds.c. FossilOrigin-Name: e4539ebebd89840b76f5a0626393299100685a38f45546a0bf7a62e4df56f863
* | wasm makefile docs: make explicit that the node.js-for-node.js builds (as ↵stephan2025-02-20
| | | | | | | | | | opposed to the node.js-for-browser builds) are both untested and unsupported. FossilOrigin-Name: e1f184889fef4603d61d306c8c0dc86df616290ccf73dbd871fa27bd99e5e5c9
* | Add the pause/unpause capability to the opfs-sahpool VFS, as discussed in ↵stephan2025-02-20
|\ \ | | | | | | | | | | | | [forum:fe8cdb8431c|forum thread fe8cdb8431c]. Summary: this gives clients a way to eke some degree of multi-page/tab/Worker concurrency out of this VFS but requires that coordination to be implemented client-side, e.g. via a SharedWorker or WebLocks. FossilOrigin-Name: b5dbd521951e129b4dec69f191a872500dbf387b34a8479ad58b053ffcccbab9
| * | Minor cleanups in the opfs-sahpool pause/unpause API demo.stephan2025-01-31
| | | | | | | | | FossilOrigin-Name: e205cdc468e02eefdeb8d391d921aa2d4d28a8b7b87036d6d937a9928261a413
| * | Add the conventional license header to sahpool-worker.js and correct the ↵stephan2025-01-31
| | | | | | | | | | | | | | | date on the header in sahpool-pausing.js. FossilOrigin-Name: f7c3026b0d2e33cc4e3b906810d860b155b1ff714bbe4e1eb9ee392122217efa
| * | Add a small test app demonstrating cooperative semi-concurrency of the ↵stephan2025-01-31
| | | | | | | | | | | | | | | opfs-sahpool VFS using its un/pauseVfs() APIs. FossilOrigin-Name: 09570c55a23e5af76dd2153a5b28a493f498d7d4a08b0089f3074d0a2c5d3d29
| * | Cleanups in the opfs-sahpool VFS pause/unpause feature and its tests.stephan2025-01-31
| | | | | | | | | FossilOrigin-Name: 184ba37702f63196deca91d273e798ca895fbb301938e6264bc82815a4e33149
| * | Merge trunk into opfs-sahpool-pause branch.stephan2025-01-31
| |\ \ | | | | | | | | FossilOrigin-Name: 775a547eca2b0b3dbb6c03990236128a095cc34d28caec44b9a5072510c75b63
| * | | Simplify how OpfsSAHPoolUtil.unpauseVfs()'s returned promise is handled.stephan2025-01-29
| | | | | | | | | | | | FossilOrigin-Name: d651b8da5a84cd54d71f15bd34e4db685674ef73f26f5cc26b7af5321a2ec05e
| * | | Add experimental support to pause/unpause an SAHPool OPFS VFS, as discussed ↵stephan2025-01-29
| | | | | | | | | | | | | | | | | | | | in [forum:fe8cdb8431c32455|forum post fe8cdb8431c32455], the intent being enable a page to relinquish, perhaps temporarily, the VFS such that the VFS's storage can be accessed by another page/tab. FossilOrigin-Name: 1d2683fe9e4be01c3137e750900f54d287e7d96185e66924d24b50f4647e7ef1
* | | | Update path on the web server for test/snapshot instances of fiddle.stephan2025-02-18
| | | | | | | | | | | | FossilOrigin-Name: 57caa3136d1bfca06e4f2285734a4977b8d3fa1f75bf87453b975867e9de38fc
* | | | wasm: add some build-time validation to ensure that the problem fixed in ↵stephan2025-02-09
| | | | | | | | | | | | | | | | | | | | [65798c09a00662a3] does not recur. Ensure that files generated via mkwasmbuilds.c have the generated makefile as a dependency. FossilOrigin-Name: 55e01365946b3432e93da5c08200e476e2a134c98b963b4170e4dfae8408a005
* | | | wasm: when building in -O0 mode (typical dev mode), use -sASSERTIONS=2, else ↵stephan2025-02-09
| | | | | | | | | | | | | | | | | | | | -sASSERTIONS=0, in response [https://github.com/emscripten-core/emscripten/pull/23629/commits/7e3e35cbff9c5688eacb3cddc5045f872d744efd|Emscripten checkin 7e3e35cbff9], which adds assertions to check for the condition reported in [https://github.com/emscripten-core/emscripten/issues/23420|Emscripten ticket 23420]. Update some unrelated JS-side internal docs. FossilOrigin-Name: 1f554610ba5d9d474ec4570bb7ca09125fd2cdfb4976530a4227cc6ebdf3a962
* | | | JS: add a mechanism to the Worker1 exec API to fetch the ↵stephan2025-02-09
| | | | | | | | | | | | | | | | | | | | last_insert_rowid(), as requested in [forum:56bc35390183f5d5|forum post 56bc353901]. FossilOrigin-Name: c22c48360756b1c7e2f5a9c01aff799bc188e100d364931de0dc3686e5de57a9
* | | | Reorder a piece of ext/wasm/GNUmakefile to correct the timing of various var ↵stephan2025-02-07
| | | | | | | | | | | | | | | | | | | | accesses. Fixes a problem [https://github.com/sqlite/sqlite-wasm/pull/99|reported in the downstream npm subproject] and explains the confusion in [4aa025a943a4024094b9] (which has been reverted). FossilOrigin-Name: 65798c09a00662a3598f01571d6f3a2dc750c3d0b127c344590539244afe4aa7
* | | | Fix a dependencies/order-of-operations bug in ext/wasm/GNUmakefile which ↵stephan2025-02-06
| | | | | | | | | | | | | | | | | | | | causes creation of files filtered via c-pp to fail if the ext/wasm/jswasm dir did not exist beforehand. FossilOrigin-Name: 4bac76138853a89484d3ac0486a9ed5143aa671b13b4b3abb704c1487213b388
* | | | Improve the JS-side sqlite3_set_auxdata() test to also trigger the case that ↵stephan2025-02-03
| | | | | | | | | | | | | | | | | | | | the aux data actually gets reused. Test changes only, no library code. FossilOrigin-Name: 9f27379d860518e6e097a2c999da04176812260a61bf11fe495c3efd76971806
* | | | Rework [76c8435a] to eliminate automatic JS-to-WASM function conversions of ↵stephan2025-02-03
| |_|/ |/| | | | | | | | | | | sqlite3_set_auxdata() destructors because it can leads to leaks on every call of a UDF. This feature never worked before [76c8435a] but fixing it was ill-conceived because of the memory leakage it introduces. WASM function pointers can still be used as destructors in this context. FossilOrigin-Name: 3fb993af0caf041da934cea29c039b27c468be0b75bce1537a6425767cf9bf8d
* | | Add a more complete test for [76c8435a] and add some commentary about (A) ↵stephan2025-02-03
| | | | | | | | | | | | | | | the inability to automatically clean up automatically-generated WASM proxy functions for sqlite3_set_auxdata() destructors and (B) how to deal with (A) to avoid leaking WASM proxy functions. FossilOrigin-Name: d693c2dddbd10a2e0b77893b04b11502e30b768f1b06814105f7f35172845fb9
* | | Correct the FuncPtrAdapter signature for the JS binding of ↵stephan2025-02-03
| | | | | | | | | | | | | | | sqlite3_set_auxdata(). Reported in [https://github.com/sqlite/sqlite-wasm/issues/92|the npm subproject, ticket #92]. FossilOrigin-Name: 76c8435a5f390001038b8ee94322ff478c9d5f29501ed1c5891c952a41e377aa
* | | URL typo fix in code comments. No code changes.stephan2025-02-02
| | | | | | | | | FossilOrigin-Name: 002a123094e4ef14eb5ec28033adca6083ba2717e1eaa23e80595e37a947e6c2
* | | JS doc typo fixes. No functional changes.stephan2025-02-01
| | | | | | | | | FossilOrigin-Name: e0d9c74c1cdddb2321131255b94f9cda6530be3f2a06aed4abb54dcda092481e
* | | Expose the new SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE/WRITE and ↵stephan2025-01-31
| |/ |/| | | | | | | SQLITE_DBCONFIG_ENABLE_COMMENTS (from [325e547a21955]) to JS/WASM. FossilOrigin-Name: 8da1a9af66f905c683e9c3445d609b5c0e11ac912be192c468ddd79f237837f4
* | Minor wasm-specific doc touchups.stephan2025-01-31
|/ | | FossilOrigin-Name: 56b618da9073db8b8d5dafa177a3c9e4c4d927bf512e14b0e6d23937f91ce4cf
* Replace a handful of hard tabs in string literals with \t in mkwasmbuilds.c.stephan2025-01-24
| | | FossilOrigin-Name: e8e4d497a7b6aae450cb93927c7583fcce3fe971cd3691f9d9cad605de3cfb1f
* Minor additions to ext/wasm/README.md.stephan2025-01-24
| | | FossilOrigin-Name: 85747ea1654c74d330614aa174ede4a989b6456eb1fc5eb0fc9f2d1418b6ef99
* Update ext/wasm/README.md to reflect simplifications permitted by the ↵stephan2025-01-24
| | | | | current configure script behavior. FossilOrigin-Name: 9abb56c6acb1c84c2df8534ca3ebb2894afd68bc7b8331d4d12611896c576749
* Remove extraneous are-we-making-clean guards from the generated wasm build ↵stephan2025-01-24
| | | | | rules, as that guard is set at a higher level. Rename a makefile call()able for consistency. FossilOrigin-Name: 7f9074e2a7ff62bdcf343895e80a51224de62a22afbbf82068ec5fea7eeda0bb