aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tester1.c-pp.js
Commit message (Collapse)AuthorAge
...
* Add SAHPoolUtil.getFileNames() method, and tests for it, per ↵stephan2023-07-26
| | | | | [forum:a3da1e34d8|forum feedback]. Add a test to demonstrate that two SAH pools can coexist so long as they have different names. FossilOrigin-Name: 72dc3f8c3255186ec412412b685b0b51ddcd08240f2353ac742fc7da8c23568e
* Filter the OPFS VFSes out of the sqlite3-node.mjs build. Add another level ↵stephan2023-07-20
| | | | | of subdirectory to the sahpool to later enable transparent support of client-provided files under the VFS's root dir. Rework the awkward sahpool-via-oo1 mapping. FossilOrigin-Name: 080a4d0aba30d8f3802b49be4a113205f069b3bdea8cebf525d654055642ff62
* Major restructuring of opfs-sahpool to improve maintainability and hopefully ↵stephan2023-07-19
| | | | | make it easier to reuse these pieces in the upcoming JSPI-based VFS experiment. FossilOrigin-Name: 534481cd0c2e6f62dd0a82f25d4b78fdcc671eb70d6966693c98212a6420891c
* Appearance and legibility improvements for tester1.js.stephan2023-07-19
| | | FossilOrigin-Name: 4fd3ed1b6405f690825c9993e56b199d4a7fb497cf9131815c803150b8b96528
* Internal refactoring in opfs-sahpool. Move OPFS tests to the end of ↵stephan2023-07-19
| | | | | tester1.c-cpp.js. FossilOrigin-Name: 6bd5a7413dd830ca41b587a2826fb599a2196fb0186646a2333500f950b3cf4d
* More opfs-sahpool tests.stephan2023-07-18
| | | FossilOrigin-Name: 60713fa9c4627ef17e0b8778eee37913d2b930c5a06414721a00af30e1395090
* Fix a shadowed var in opfs-sahpool and add more tests.stephan2023-07-18
| | | FossilOrigin-Name: 9c8a73aff0f291e0c18072372e0d8961d3a05910489598d0d342227d99871954
* Further refactoring of opfs-sahpool and start integrating it into ↵stephan2023-07-18
| | | | | tester1.c-pp.js. FossilOrigin-Name: 91c789234963b660ae900f0738906b28a477993709e286d8125b2f4d6101601c
* More work on porting the sahpool bits. Revert to random backing-store names ↵stephan2023-07-15
| | | | | because it works better with the capacity-reduction algorithm. FossilOrigin-Name: b4e005fd38b06b8d2f2317b955b93807e80a6a18db5f06d7747978d3bfa11411
* Integrate the opfs-sahpool VFS into the JS build and get it loading (but ↵stephan2023-07-14
| | | | | it's still far from functional). FossilOrigin-Name: ef96e6b586825a2b3ed011174309cba8ce1031876c86dc59ed87ab9bbc64f57f
* Significant surgery on the wasm build on the way to incorporating wasmfs as ↵stephan2023-07-13
| | | | | a first-class build option. FossilOrigin-Name: 215c37fce38cf647e073480689b79d952af7eb8165ae08c7f5caed27003fecfc
* Replace 'self' with 'globalThis' in some JS test code.stephan2023-07-13
| | | FossilOrigin-Name: 53eeffc9b1ea8c3ee7d7cdcc220997ed893403e45b35d8ea10805ea3b0435587
* Remove extraneous console trace output from previous check-in.stephan2023-06-05
| | | FossilOrigin-Name: c9f6e36d59fc8bf2bcef6fc14ff2e9ad3dfd972de94d4a71ff3f56134810a8ef
* Add a JS test confirming that binding of statement parameters in a subquery ↵stephan2023-06-05
| | | | | works. FossilOrigin-Name: 5dfaf0bce83c3e15ad605e3f07291ce219f1a2726ce77be27779897088ee13d5
* Extend detection of the INSERT...RETURNING locking case to the ↵stephan2023-05-19
| | | | | DB.selectValue(s)/selectArray/selectObject() family of functions. Add tests for INSERT/UPDATE...RETURNING with those functions. FossilOrigin-Name: 3181c50540df0eff6cb5db79bb477c469bb7b73b0692260ba600db200fcef4ac
* oo1.Stmt.finalize() no longer throws, but instead returns the same as the C ↵stephan2023-05-19
| | | | | API. oo1.DB.exec() now triggers the INSERT...RETURNING locking failure as an exception via reset() instead of finalize(). Some code-adjacent internal API renaming for clarity's sake. FossilOrigin-Name: 4ee6b3aa531b980acea4c4b58ee256e765c5105100468928def3d4c9825fa9bc
* Add a basic INSERT RETURNING test for the oo1.DB.exec() API.stephan2023-05-19
| | | FossilOrigin-Name: d29d62cf7658aeb49f3c8a5d0b0809d945ebc9b79379a255eb88f771d2a2c430
* sqlite3.oo1.Stmt.finalize() now throws if sqlite3_finalize() returns ↵stephan2023-05-19
| | | | | non-zero. This is intended to address the INSERT RETURNING case covered in [forum:36f7a2e7494897df|forum post 36f7a2e7494897df]. FossilOrigin-Name: f23eb5c6d36546ee1e181a03660e0b2dc8005bba24bee8bae594b0c78bd152cd
* Resolve the JS-side corner case reported in [forum:7774b773937cbe0a | forum ↵stephan2023-05-10
| | | | | post 7774b773937cbe0a] by not caching oo1.Stmt.columnCount. FossilOrigin-Name: c3d25c3a25e79e01c4ad0cf11f7dc3b0fb1932f3bcd04935a728ef62f7e07cf1
* Remove a meaningless JS test. Add a timer to the OPFS async-side worker ↵stephan2023-03-27
| | | | | loader in an attempt to catch a browser-specific quirk in which the worker loading silently fails, per discussion in/around [forum post a708c98dcb3ef|forum:a708c98dcb3ef]. FossilOrigin-Name: 4fc1904b8e18c7d41fa65490ced125f1df4f0c22c13de957b24615ed09b3ecb7
* Add a JS test which checks for the issue described in [forum post ↵stephan2023-03-24
| | | | | 895425b49a|forum:895425b49a]. FossilOrigin-Name: 98d30400e4721b1d48ff601698ced146052654f8c6de7c014d4d239bb2dbef43
* Add capability to override the JS's use of console.log/debug/warn/error() ↵stephan2023-02-06
| | | | | with client-provided versions via the bootstrap-time config object. FossilOrigin-Name: c54f29d8e55419eaa9168e799dab5030e89063b13d8390a50616606422d164dc
* Remove automatic installation of JS-global S object for the sake of client ↵stephan2023-02-02
| | | | | libraries which embed this library, per [forum:9d4f722c6912799d|request in the forum]. FossilOrigin-Name: 9504f68af8360ea6d61574fd4b9811af34b721c12d9653eb50adcf0f12b129fc
* Enhance oo1.DB.exec() to simplify returning whole result sets.stephan2023-01-28
| | | FossilOrigin-Name: 7b168ee2af09f04b41a6ef4c14ccaddc0c9b0bfe9dc1e6a86d8f5317606bd78d
* Add JS bundler-friendly JS build. Minor test code cleanups.stephan2023-01-28
| | | FossilOrigin-Name: 24d3a53dea5e596230558e233cbbd9d0288b4c394cd5ea7b650fd99bff4cde2e
* Expose sqlite3_preupdate_hook() and friends to the JS API.stephan2022-12-27
| | | FossilOrigin-Name: cc02783a1210a083683320fae1ec1519e45b8e3003a9e32809d808513a2ce06b
* Add links to module-symbols.html for newly-added APIs.stephan2022-12-27
| | | FossilOrigin-Name: 335ef03eb9694d1fd123f113f235cd34e97834fadc5f7c80489b6513be45d070
* Add two more tests to [f99f8e3ecfe20].stephan2022-12-27
| | | FossilOrigin-Name: 9cffccd335b11feb6a5beadb26e1a68af7b6b1b3c953063dcf6ef74edf3c59b1
* Expose sqlite3_commit/rollback/update_hook() to JS API.stephan2022-12-27
| | | FossilOrigin-Name: f99f8e3ecfe205337996ee61c0b9f139d3e8788b14f32e26560888b3a16564de
* Expose the auto-extension API to JS and reorganize some nearby code.stephan2022-12-26
| | | FossilOrigin-Name: 52b229d11d82bfb81c8b63e252c51c57a34dc50498dd685451588c185873c628
* Reimplement sqlite3.capi.sqlite3_close_v2() and sqlite3session_delete() as a ↵stephan2022-12-26
| | | | | hand-written bindings so that they can attempt to clean up certain (potentially) FuncPtrAdapter-installed functions before closing. Correct the create-function family of JS-to-function-pointer automated conversions to include the UDF's arity as part of the mapping's key so that (un)binding a UDF to different functions for different arities works (and add tests confirming it). Correct a broken doc link in module-symbols.html. FossilOrigin-Name: 60b262ef0f57b162c2566b12e70685a92afb00b441332ea7a6540fcb188cc7af
* Minor internal API doc correction and extend a test for oo1.DB.selectValues().stephan2022-12-25
| | | FossilOrigin-Name: b7295b1ca700945ae4e89be69f954dce9960e8975664e620898392b2cc78d452
* Add sqlite3.oo1.DB.selectValues(). Correct a logic error which could cause ↵stephan2022-12-25
| | | | | DB.selectValue(), DB.selectArray(), and DB.selectObject() to fail to finalize a statement if a call to bind() failed. Add more session API tests. FossilOrigin-Name: 6adc8a10146190037d55d3328d2f78aa5233559f88d4aa70fbbf9e10145b9b6c
* Merge wasm-session-api branch into trunk, adding the session API to the ↵stephan2022-12-25
|\ | | | | | | | | JS/WASM components. FossilOrigin-Name: dfb8b651fa4faef2d3307a05512cdc479398484c3a59715827179c363861a777
| * Add basic session API JS tests.stephan2022-12-25
| | | | | | FossilOrigin-Name: 64e032602cf420851c8029603c76f5512000d1c9a40fa7a545528d69d6d1d4cc
* | Add tests confirming that JS sqlite3_exec()'s SQL argument participates in ↵stephan2022-12-25
|/ | | | | the 'string:flexible' type conversion. FossilOrigin-Name: 926d0c61a391c601adc2804d3fdaa8b667ae2abd565939cddfa12d5151b098f8
* Add missing sqlite3_context_db_handle() JS binding. Reimplement ↵stephan2022-12-25
| | | | | sqlite3_set_authorizer() and sqlite3_set_auxdata() JS bindings to take advantage of [7f9ace1b11a67]. Teach FuncPtrAdapter to emit a console.warn() message if it is invoked after the library is bootstrapped, the goal being to inform users that it's an internal API and should not be invoked from client-side code. FossilOrigin-Name: 8e3d4f6294037396e388ec21abb18bf0201a6bec6ff004730cc5d11b705a6d2b
* Simplify the signature for JS functions, as opposed to function pointers, ↵stephan2022-12-25
| | | | | passed to sqlite3_exec(), eliminating the superfluous initial two arguments. Update related tests to demonstrate both function-passing approaches. FossilOrigin-Name: e7cc70cdda426863f82ebe1305f4c3053824c5a605b1516b0b7f205f1203178b
* Replace JS-side use of SQLITE_TRANSIENT with the new SQLITE_WASM_DEALLOC, ↵stephan2022-12-24
| | | | | reducing the amount allocation/copying required by sqlite3_bind_blob/text() and sqlite3_result_blob/text(). Remove the 'experimental' log message from the virtual table tests. FossilOrigin-Name: ffe2999a91a7dec129a38afb675fe9e539d7c347886bfea85cba55f6367d54d1
* Extend oo1.Stmt.bind() to accept ArrayBuffer instances to bind as blobs.stephan2022-12-24
| | | FossilOrigin-Name: f76bd30137fbff981625ffcb28cddd5e8651803dfc3f2d8d7801ead33496311d
* Add a test for the (failure) case of client-level code calling the oo1.Stmt ↵stephan2022-12-24
| | | | | constructor directly. FossilOrigin-Name: 6a37874db04f3b4842994ad17fc74cb6222f8ea0fa1315a23aff1ffa69bcd12a
* If sqlite3.oo1.DB.exec()'s callback returns a literal false, stop step()ing ↵stephan2022-12-24
| | | | | over results as if the end of the result set had been reached. Unrelated minor code-adjacent cleanups. FossilOrigin-Name: 33a58c8ece3b37a8edc3434af36643e2d489a53a672d778c5b77e66666045c30
* Internal JS cleanups. Correct part of [ac136925a645] to account for the ↵stephan2022-12-23
| | | | | eTextRep flag being able to hold flags other than the encoding. FossilOrigin-Name: 1dfc03ab1e0269807beef27bf884ab9ead7553d4a5f6ed213f812d7fa052045f
* Consolidate/unify how the JS bindings of the create_function/collation ↵stephan2022-12-23
| | | | | family of functions react to a non-UTF8 encoding: they now treat a falsy value as SQLITE_UTF8 and fail with SQLITE_FORMAT for an invalid encoding. FossilOrigin-Name: deffe6fb211410fa1a1fbca824a52b4e09b54d4b4f4a4e12d71c9e4b7e8606fb
* Cherry-pick [c4dab53b8ea3401abd] for sqlite3.wasm.xWrap() optimizations.stephan2022-12-23
| | | FossilOrigin-Name: 9b97412d3aa791870016ab3c6f565b6a6afa1764f98e969833aec093b9b29919
* Expose a JS-friendly subset of sqlite3_config() to JS, with the notable ↵stephan2022-12-16
| | | | | caveats that (1) setting up the JS bindings requires starting the library, making sqlite3_config() illegal to call and (2) calling sqlite3_shutdown() in order to make it legal to call sqlite3_config() may undo certain JS-side library initialization. Move sqlite3_(de)serialize() into the int64-mode-only bindings because of their int64 args. FossilOrigin-Name: 62e0c931ac952219f68e22d64e20836781bf330b4581e4662266172a97c9289b
* Add a test confirming that exceptions are not passed through C-space if a ↵stephan2022-12-16
| | | | | JS-side sqlite3_set_authorizer() callback throws. FossilOrigin-Name: 5a77c2c7aaa556007274e1b85790934665c2c12661ca11d896eb7d09cd49ce72
* Add sqlite3_set_authorizer() support and related tests to JS.stephan2022-12-16
| | | FossilOrigin-Name: 551b848894c249cb3c9d237643d2ed53ffcb3b003d0cf3f797a535df1731ce39
* Rename the new peek/pokeF32() and peek/pokeF64() to peek/poke32f() and ↵stephan2022-12-14
| | | | | peek/poke64f() for consistency with related APIs and because they're easier on both the eyes and the fingers. FossilOrigin-Name: cc86f03ed698a071cd02ef3dfaba69092226bff20c917d662f808061627ad285
* Slight reformulation of some test code to test multi-arg wasm.peek() call form.stephan2022-12-14
| | | FossilOrigin-Name: 349bb28f614bc210b3283ed1c1144c45fbc7d9e2ffc3dc6193ccb9932d347efb