aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tester1.c-pp.js
Commit message (Collapse)AuthorAge
* Correct a one-too-many-exclamation-points bug which caused the opposite of ↵stephan4 days
| | | | | intended semantics in oo1.Stmt.pointer ownership. FossilOrigin-Name: 91e709f36d36174534b4cf4ff548a558e66cca5e23a6c8c106bc43375fc3ce72
* wasm: DB.wrapHandle() no longer accepts a DB object as its first argument, ↵stephan6 days
| | | | | as there's no apparent use case for proxying one DB object with another. Doc improvements for the new code. FossilOrigin-Name: 0ee19db02a9b9320681d4393d9ba52889d149eac8ee114fc7b7f52a57271c139
* wasm: add a few tests demonstrating that oo1.Stmt.paramaterCount's new impl ↵stephan6 days
| | | | | does not change visible behaviors. Add the c-pp-filtered files to 'make clean'. FossilOrigin-Name: 3fe61545967f82190011edb90b1be6a448b590555c7ba5f8e96494aeea8f88ce
* Remove some dead JS code and some extraneous debug output from test code.stephan9 days
| | | FossilOrigin-Name: 6e73770a7f3845055e0130012d844c32c4a1bfdb87e8379c161e1a266a808143
* Experimentally add sqlite3.oo1.DB/Stmt.wrapHandle(), which allow DB/Stmt ↵stephan9 days
| | | | | instances to wrap a (sqlite3*)/(sqlite3_stmt*) optionally with or without taking ownership of it. The intent is to enable mix-and-match use of the C API, the oo1 API, and any other hypothetical API which exposes those pointers. oo1.Stmt.parameterCount is now a property access interceptor like Stmt.columnCount is, but that doesn't change how it's used. FossilOrigin-Name: 1227543b87c3320d6b80e0f61b88ea53b68779966a0295c4d6a1db6369c48207
* 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
* 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
* Merge trunk into the sahpool-digest branch.stephan2025-02-26
|\ | | | | FossilOrigin-Name: fc1eeb7d1f2880907b0fe71a8c572dd7cd74a5d65ec0177332976ad2f8c2b216
| * 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
| | * Cleanups in the opfs-sahpool VFS pause/unpause feature and its tests.stephan2025-01-31
| | | | | | | | | FossilOrigin-Name: 184ba37702f63196deca91d273e798ca895fbb301938e6264bc82815a4e33149
| | * 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
| * | 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
* | | 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
* | 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
* | 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
* Remove a flaky JS test which has a result depending on unrepredictable ↵stephan2024-11-22
| | | | | context. That same feature is more reliably tested at a later point in the same script. FossilOrigin-Name: 3d6ae13805bdba4c73b7443f20073264cdd157299cb911228600e1528a136bb1
* Fix a JS test which was broken when OMIT_PROGRESS_CALLBACK was _not_ used.stephan2024-11-21
| | | FossilOrigin-Name: fba23150b5b57980f8ed2656a2325f95215ca1e13fc3449b5eec804831dd65c8
* Ensure that the OPFS VFS's xOpen() writes back the read-only flag to the ↵stephan2024-10-17
| | | | | output flags. Resolves the problem reported in [forum:cf37d5ff1182c31081 | forum post cf37d5ff1182c31081]. FossilOrigin-Name: 0a32624015f16fd881a4ecbb56b7833391028d327a95f4c899eee864ed7fe00d
* When calling OpfsSAHPoolUtil.removeVfs(), ensure that the cached result the ↵stephan2024-10-17
| | | | | VFS init is also removed so that the VFS may later be registered again with the same name. Set up test code for the regression reported in [forum:cf37d5ff11 | forum post cf37d5ff11] (which uncovered the removeVfs() shortcoming) but that test is currently only known to fail with the "opfs" VFS and is not currently set up to fail. FossilOrigin-Name: b7f7a5deeae61920dbfec7606cf9014de711f959a285b29e12673abfd2f88646
* Fix a non-bare-bones-mode test case broken by the previous checkin.stephan2024-07-25
| | | FossilOrigin-Name: 3be729493b76a8b51c19d81543dea2dcb1fc718f81d4f2d9c6e1381789217687
* Strip progress handlers and window functions from the wasm bare-bones ↵stephan2024-07-25
| | | | | (formerly 'minimal') JS bits, noting that we can't yet use OMIT_WINDOWFUNC (for the C parts) without a custom amalgamation. Currently at 604kb. FossilOrigin-Name: ec02e9237e1ef81c4196fa630822cb109eab926143ad09593a24273eb0668601
* More work on the minimal-mode wasm build (now 603kb uncompressed). Remove ↵stephan2024-07-25
| | | | | the hard-coded feature-enable flags from sqlite3-wasm.c and rely on the build to provide them. Some wasm build cleanup, but attempts to completely overhaul it have been thwarted by my inability to make script-generated makefile code more legible/maintainable than the current eval spaghetti. FossilOrigin-Name: b029c4067943e366a9b25b8303136fab10822bd771ea4658ac4cd716ff4a0d8f
* Start work on an overhaul of the wasm build process, with an eye towards ↵stephan2024-07-25
| | | | | less over-engineering. FossilOrigin-Name: ed746b3dd3248b68cb91de50ac5ba5fd3a7c2fcbde76324e86b88edbfecd896b
* wasm minimal build: strip authorizers and JSON support (saves approx 35kb). ↵stephan2024-07-24
| | | | | Strip vtab support from the JS bits but cannot yet strip it from the C bits because that requires a custom-configured sqlite3.c. FossilOrigin-Name: eb64d106551718467e0f6c6b53695410bf4c566901008e4cda8580d0f7efa7b0
* Restructuring of the wasm build to support an experimental 'minimal' build ↵stephan2024-07-24
| | | | | mode which elides all non-core APIs. FossilOrigin-Name: ee2191f7302210100fa0b29ace8156531ad995bf61aa2642e526e0901d0c6862
* Move a block of JS code which was inadvertently (and harmlessly) moved in ↵stephan2024-07-22
| | | | | the previous checkin. Clarify the semantics of an internal-use-only API. Add another WAL-related JS test. FossilOrigin-Name: 6cd9f55a975b5237efee8776efce7e7836b41905ca750f82be3b90aa04c1dff2
* OPFS VFSes: remove the on-open() pragma calls, as those (A) already ↵stephan2024-07-22
| | | | | reflected the build-time default settings and (B) they made it illegal to run locking_mode=exclusive, which is a requirement for WAL mode without shared memory. Modify part of the test suite to demonstrate that the SAHPool VFS can run in WAL mode so long as locking_mode=exclusive is used. FossilOrigin-Name: 19cd8e2b056d7842ee39afb7160c901c9dc55a5bac8049cb0b5246210f6b920d
* Improve one of the JS test cases.stephan2024-07-13
| | | FossilOrigin-Name: 3767d8bef2dfa661b56c1bfaa4695e32ce26874154e4a322f0d599c257c6fc70
* Add JS binding for sqlite3_column_decltype().stephan2024-07-13
| | | FossilOrigin-Name: 5252d292b14f6ed99b09f6330b19effd488c2b23ff6ea33311321a065d3f6ce2
* Add JS bindings for sqlite3_stmt_busy() and sqlite3_stmt_explain().stephan2024-07-13
| | | FossilOrigin-Name: b772edfb44143107d4993bde600d0f4c45184f29a4deee403105c64748c36523
* Add missing sqlite3_bind_parameter_name() binding to JS.stephan2024-07-13
| | | FossilOrigin-Name: 6dcfcc7e1c0772b11aec750bb75899a5c8e452735ecf5028c001fbaa7aa6fda0
* Add JS bindings and tests for sqlite3_interrupted(), is_interrupted(), and ↵stephan2024-07-13
| | | | | db_readonly(). FossilOrigin-Name: 5589ba5651d80479ae555429340fc74390ff07d3e05ba770bb7d82490211e00d
* Rename the new opfs-sahpool init-retry flag to the suitably descriptive, and ↵stephan2024-07-13
| | | | | suitably onerous, forceReinitIfPreviouslyFailed, based on feedback. FossilOrigin-Name: c9f0a6090258534a3d81066df5610229183a8457fc60d5034b4b94d9a29796e4
* Reformulate the forceReinitIfFailed handling based on feedback, to correct ↵stephan2024-07-11
| | | | | the type-checking and resolve a potential race condition. FossilOrigin-Name: c4f468309158f9b951137461213fb269d96d15c331256cf392a56c9bed231460
* Add an option to force the opfs-sahpool VFS init to re-run after it fails on ↵stephan2024-07-11
| | | | | a first attempt, as a workaround for flaky environments where initial access to OPFS sync access handles is rejected but then permitted on a second attempt. Reported and discussed in [https://github.com/sqlite/sqlite-wasm/issues/79|issue #79 of the npm distribution]. FossilOrigin-Name: 5286e0f654d91a4ebee51fcabaab696e17ff07bb18990b401a31bd3d1213e695
* Minor cleanups to [8fbda563d2f5].stephan2024-04-22
| | | FossilOrigin-Name: 5ee2594b657b96aea9e482a175820dcbacfa9298da45b38cf17f39ad076d3f7f
* Extend the JS/WASM SEE build support by (A) filtering SEE-related bits out ↵stephan2024-04-22
| | | | | of the JS when not building with SEE and (B) accepting an optional key/textkey/hexkey option to the sqlite3.oo1.DB and subclass constructors to create/open SEE-encrypted databases with. Demonstrate SEE in the test app using the kvvfs. This obviates the changes made in [5c505ee8a7]. FossilOrigin-Name: 8fbda563d2f56f8dd3f695a5711e4356de79035f332270db45d4b33ed52fdfd2
* Add delete-before-open=1 URI flag to the 'opfs' VFS to tell it to xDelete ↵stephan2024-03-11
| | | | | the db file before opening it, primarily to enable users to work around a corrupt db without having to reach into OPFS-specific APIs to remove the db file. FossilOrigin-Name: e83f9788636f7f9bcca7d2a09620c13ab4eb83436d5b2946a827e48addf0267d
* Make explicit which JS APIs are for internal use only by moving the JS-bound ↵stephan2024-01-08
| | | | | internal-use-only functions out of client-visible reach and renaming the WASM-exported ones from sqlite3_wasm... to sqlite3__wasm... (with two underscores). These have always been documented as internal-use-only, so this is not a breaking change except for clients which have ignored the docs. FossilOrigin-Name: 0eddc20f37988df6bce5f407b69e4a315e5cca4af104586e6fe942f0d656cccd
* Remove an unused/invalid test from the wasm suite.stephan2023-11-08
| | | FossilOrigin-Name: 916ae898743a969295a48ae2a6e9e366586834b32d77d3fa281bbaf7f2818502
* Export sqlite3_get_autocommit() to WASM and add tests for it.stephan2023-10-27
| | | FossilOrigin-Name: 7cb6d3cd3926882240c91a4b90fdf237b931653295d8d94b05ed885dcae59608
* Ensure that all fields of static sqlite3_module objects are explicitlydrh2023-10-06
| | | | | initialized, in order to hush-up nuisance compiler warnings. FossilOrigin-Name: f3b3d712d6e58b1cb8fdebd2b6b3125080b6b3ac8c7c849a8cc1e5e778d62fe7
* Extend the importDb() method of both OPFS VFSes to (A) support reading in an ↵stephan2023-08-18
| | | | | async streaming fashion via a callback and (B) automatically disable WAL mode in the imported db. FossilOrigin-Name: 9b1398c96a4fd0b59e65faa8d5c98de4129f0f0357732f12cb2f5c53a08acdc2
* Add sqlite3.capi.sqlite3_js_posix_create_file() and oo1.OpfsDb.importDb() as ↵stephan2023-08-11
| | | | | alternatives for the newly-deprecated sqlite3_js_vfs_create_file(). FossilOrigin-Name: da6eaf8d8258f3e2c8633fd7faf4e90c3307b5c60bd8b69c626b3c82b19dbdef
* Add tests for SAHPoolUtil.exportFile() and importDb().stephan2023-07-30
| | | FossilOrigin-Name: 4aa88b8fb1c99137ed7531e5c82a241738a2b0554f7af82c0ed0ce8d16a0879a