aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
Commit message (Collapse)AuthorAge
...
* | Add missing docs for the JS Worker1 export method, as pointed out in ↵stephan2023-10-27
| | | | | | | | | | [forum:75524f7342|forum post 75524f7342]. FossilOrigin-Name: a7b267bd11216ee990cdd855044fbc18c300dff07cf25b317f27c1bbbc340dcc
* | Export sqlite3_get_autocommit() to WASM and add tests for it.stephan2023-10-27
|/ | | FossilOrigin-Name: 7cb6d3cd3926882240c91a4b90fdf237b931653295d8d94b05ed885dcae59608
* Correct the opfs-sahpool VFS's xGetLastError() method to return the previous ↵stephan2023-10-20
| | | | | error code, not 0, on success. FossilOrigin-Name: 95a1dde63117d696323c775580b9c04f044a5b8d609e9174b739ac03ecc1336c
* JS: replace one errant reference to 'self' with 'globalThis' and remove a ↵stephan2023-10-17
| | | | | separate dead-code 'self' reference. FossilOrigin-Name: da1a47932ea96755b1e11fc2547ce11780b87846af6885857318ff18f1e62c31
* Unconditionally force use of SQLITE_ENABLE_API_ARMOR in the WASM and JNI ↵stephan2023-10-11
| | | | | builds. Their corresponding test suites still work. FossilOrigin-Name: c11394b50d0687b6d6abad9c80d5cd3cdce77e9b9c278f40601c460f463744a1
* Do not squelch exceptions from SAHPool VFS importDb() - rethrow them. ↵stephan2023-10-05
| | | | | Problem reported in [forum:c80fc578809b80a3|forum post c80fc578809b80a3]. FossilOrigin-Name: 325bcdea4a436e514d83095d3893caf07a714b718e1b643507179b101c108e3b
* Correct an undefined-value deref in the JS bindings, triggered by passing ↵stephan2023-09-30
| | | | | invalid args and then tripping over an undefined value while trying to report that. Reported in [forum:dd42df144651d779|forum post dd42df144651d779]. FossilOrigin-Name: fd4632540717c4771ac9ae1fe4400091a2cd0553639bf809abaf4ecbc54de4f0
* Second half of [1c532e80].stephan2023-09-01
| | | FossilOrigin-Name: 8ca1d815a57be1fade59fb8ea5705c27b10294e4959c8a9c624f1623df6a5f63
* In the OPFS VFS' importDb() methods, overwrite the header bytes 18 and 19 ↵stephan2023-09-01
| | | | | with 1 instead of 0. Both seem to work, but 1 is correct. FossilOrigin-Name: 1c532e807bf8466b67d9600ab9630a6736de77259e9a71ac435641715ee0e04b
* Add a JS implementation of Java's SQLTester.stephan2023-08-30
|\ | | | | FossilOrigin-Name: b530792a514d95c4e8f93cf2170d9fc4de367055fa1704fc171551c946024fa9
| * JS SQLTestRunner can now run the Java impl's core-most sanity tests, missing ↵stephan2023-08-29
| | | | | | | | | | only support for directives. FossilOrigin-Name: 5e798369375ce1b0c9cdf831f835d931fbd562ff7b4db09a06d1bdca2ac1b975
| * Get the JS SQLTester command handlers in place sans those which have to run SQL.stephan2023-08-29
|/ | | FossilOrigin-Name: d21b1217964a53f33b7ba3958b34aa8560dff8ede33e66f54aa0afbab7099ec3
* Ensure that db mutex is held when using sqlite3ErrorWithMessage() to avoid a ↵stephan2023-08-24
| | | | | potential assertion in debug builds. FossilOrigin-Name: b8f6a50a4bf9478324f0272d79f2fe6992a49b753e79e39a268c6afb261bb01e
* Improve exception handling in OpfsDb.importDb().stephan2023-08-18
| | | FossilOrigin-Name: a4eedd63b58f5c273b671f687cb68a32259963dbb053a710770383c735fb7f26
* 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
* Deprecate sqlite3_js_vfs_create_file() because, it was discovered today, its ↵stephan2023-08-11
| | | | | out-of-scope use of the sqlite3_vfs, sqlite3_file, and sqlite3_io_methods APIs triggers unresolvable assertions in the core when built with SQLITE_DEBUG. FossilOrigin-Name: f3647a3ac8eca8c821b0b1e403da7bfb0feabd0eb5ee83709cd4956dfc56a492
* In the opfs-sahpool VFS's importDb() and exportFile() methods, throw if the ↵stephan2023-08-04
| | | | | actually-wrote/read amounts differ from the expected-to-write/read amounts, per feedback in [forum:a4122e986f|forum post a4122e986f]. FossilOrigin-Name: a617ebf4e5d1af1b5b15e9782ad111399caaa3ea7b99bb0c8691c8b4283b6d6e
* Fix a discrepancy between sqlite3_values_to_js() and its API docs/intended ↵stephan2023-08-03
| | | | | behavior. FossilOrigin-Name: 7b85c68fe252c0aa69724c82a95a4432e33ebdfb879b4b1b2ee2f9b98e9b792a
* Filter the wasmfs-specific JS module result type check out of non-wasmfs builds.stephan2023-08-01
| | | FossilOrigin-Name: ef7c121049f77200ecc4da260a90776264af0e84122d0133b4986959aedc653a
* SAHPoolUtil.importDb() now accepts either a byte array or ArrayBuffer.stephan2023-07-29
| | | FossilOrigin-Name: 3848f04e542e2f0f8975e82632af598aac3b60312bd244b0472f7ddf1dda77df
* Dynamically determine whether the wasm.xWrap() argc check can be applied, ↵stephan2023-07-27
| | | | | depending on how the wasm environment exposes its exports. FossilOrigin-Name: fd59226b34fffb1479fb2d7bd7c0aff982aa4a1a73e6c0d81de6eaf9c075998c
* Accommodate a breaking change in emcc 3.1.44.stephan2023-07-27
| | | FossilOrigin-Name: 2c5dd34199f5bcf729be814b8b46d9997821fe3a39ab12779c93df1bb2fd108d
* 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
* Resolve an ES6 module export construct which is incompatible with node.js, ↵stephan2023-07-24
| | | | | as reported in [forum:b9680fa9ad|forum post b9680fa9ad]. FossilOrigin-Name: 80927c3913561dddf75cf73be871d93ae06b16f83e8cc36fc360765014209615
* When writing the filename header in a opfs-sahpool file, ensure that all ↵stephan2023-07-23
| | | | | remaining bytes in that part of the header are zeroed out to avoid the downstream problems reported in [forum:d50ec48a293988a5|forum post d50ec48a293988a5]. FossilOrigin-Name: c1b080e39397c983c13a5e79303223827de7b4946c18a79396851ec1814782f3
* Minor internal cleanups in the opfs-sahpool VFS.stephan2023-07-21
| | | FossilOrigin-Name: 74ad31e2908af8225b7aa527dbcd1877423d58163e365317a78453b31e322ea3
* Internal cleanups in the async part of the JS library bootstrap phase.stephan2023-07-21
| | | FossilOrigin-Name: b6d57ab63793241a500ea527c5b3216c54b3ff1972d3adbbf42a9a53bfec0aa1
* Minor internal cleanups in JS code.stephan2023-07-20
| | | FossilOrigin-Name: 21a2ca9fc46bf746874579897872e2a45cb07f278abb670dd22b122f7d6a9a6c
* 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
* More internal refactoring and docs for opfs-sahpool.stephan2023-07-19
| | | FossilOrigin-Name: 64ccf6177a019eab46fb3345ad1e8ba80eaf2c9da55767031f9f04ccd16afb4d
* 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
* 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
* Major restructuring of the opfs-sahpool bits to better support multiple ↵stephan2023-07-18
| | | | | instances per app (each sandboxed from each other). Eliminate the pesky promise resolution race condition when two such instances are loaded in parallel. FossilOrigin-Name: 95e5fa498f71708caeb3394636c4853530a8b2d54406e503f32750732d6815d5
* Refactor opfs-sahpool to support multiple instances, each with a separate ↵stephan2023-07-18
| | | | | VFS name and directory. FossilOrigin-Name: d036eaf6ac60c576428db40f015733c5d5425f7d613194fd8d9d4d98659077c4
* sahpool vfs: rename defaultCapacity to initialCapacity, per feedback.stephan2023-07-17
| | | FossilOrigin-Name: 2c9c95d087c7db2a975ffae15af5ade621411c493145b889f0c9157a55c4952a
* Change wasm build's -DSQLITE_TEMP_STORE=3 to -DSQLITE_TEMP_STORE=2, ↵stephan2023-07-17
| | | | | primarily so that clients can optionally shift temp files from memory to OPFS storage. FossilOrigin-Name: 764430e804332b8f7b2f63a3c0c8acf8f6cc92534858d89de2d310938c1c0d27
* Add sqlite3-vfs-opfs-sahpool.js to ext/wasm/api/README.md.stephan2023-07-16
| | | FossilOrigin-Name: 58d05201042804c682a417495f13ab47a535e353da6cc307f9d726a289e71ca2
* Minor doc tweaks.stephan2023-07-16
| | | FossilOrigin-Name: 0cb0d7a9e73e48406f146ebebf211311fd0a0b14b285f0af9e2b645c3d2f172a
* Correct a missing assignment. Minor doc additions.stephan2023-07-16
| | | FossilOrigin-Name: 1c4957d0ef23ff14d4f7bfb33a809dd92712ee9faf77b6052f823eb55de15cf6
* Doc tweaks only, no code changes.stephan2023-07-16
| | | FossilOrigin-Name: 044c28dffd45f7c4484686995edd4a1b92151450743968e7d0f662b5c850aa6b
* Add a way to remove the opfs-sahpool's persistent state from OPFS or ↵stephan2023-07-16
| | | | | unlink() an individual file. Doc cleanups. FossilOrigin-Name: 80982daac3c098033dbc249bb7a17ef84ae218d2d789f8644e7f4af18b553d24
* Move SAH pool configuration options from the library-level config to a ↵stephan2023-07-16
| | | | | config passed to the VFS install routine. Extend and document the PoolUtil object. FossilOrigin-Name: d2ed99556fa1f40994c1c6bd90d1d5733bebc824b1ebfabe978fae9e18948437
* speedtest1.js: only install opfs-sahpool if it's provided via --vfs flag, to ↵stephan2023-07-16
| | | | | avoid locking errors in concurrent speedtest1 tabs with other VFSes. Add opfs-sahpool reserveMinimumCapacity(). FossilOrigin-Name: aa94c8abfbdfc4c7b36554c4b3ea90a5065e7e3f4294c64c8cbf688b4688300d
* During "opfs" VFS init, check for URL param opfs-disable and, if set, do not ↵stephan2023-07-16
| | | | | install the VFS. Added per forum suggestion to provide a way to help rule out misinteraction between the "opfs" and "opfs-sahpool" VFSes. FossilOrigin-Name: 29905b7a75b73e32125bf9116033cae7235a135b668a3b783a3d8dcb0bc80374
* Micro-optimizations in opfs-sahpool.stephan2023-07-16
| | | FossilOrigin-Name: 52f23db948ae9694df69c00177b85cb569e9b211350a4a2dbf249e7cd8de700c
* Redefine what the opfs-sahpool installation promise resolves to. Fix ↵stephan2023-07-16
| | | | | addCapacity(). Add utility methods to import/export files. FossilOrigin-Name: 809c6f4de3653ad7a7751af45a7a0d6cb20c3ee3be80c69833c729242227d970