aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
Commit message (Collapse)AuthorAge
...
* 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
* Update and clean up the in-makefile docs for ext/wasm.stephan2024-01-02
| | | FossilOrigin-Name: 7a7b295e6d7e95ee4a46cc42761895d11700ab295870c5a4380072bb4a5b7099
* Back out [99d11e6d0ae6] (enabling of STAT4 in WASM/JNI), per /chat discussion.stephan2024-01-01
| | | FossilOrigin-Name: cd7929ee2e2c305475fa5a4dff2edaccf90067126ef04a1c2714cf464925453f
* WASM: various build cleanups and add initial infrastructure for a build ↵stephan2024-01-01
| | | | | which elides the oo1 API and its dependents (worker1 and promiser). Sidebar: an attempt was made to move generation of the build rules to an external script, but the mixed-mode make/script was even less legible than the $(eval) indirection going on in the makefile. FossilOrigin-Name: 563d313163c02b398ae85b7c2ed231019a14e006726f09a7c1f294a58bf4363f
* Use SQLITE_ENABLE_STAT4 in both the WASM and JNI builds.stephan2023-12-31
| | | FossilOrigin-Name: 99d11e6d0ae687ff6bac5119027f7b04d5e7185214e79cf8c56289cfa809b0f9
* Use SQLITE_STRICT_SUBTYPE=1 by default for the JNI and WASM builds unless ↵stephan2023-12-14
| | | | | they're explicitly built with SQLITE_STRICT_SUBTYPE=0. FossilOrigin-Name: 990211357badf0ab08bd34cf6d25b58849d0fd8503e289c1839fc837a74e1909
* Worker1 Promiser API: when multiple db connections are active then use the ↵stephan2023-12-12
| | | | | requested connection instead of always the first-opened connection. Bug reported in [forum:894c330e7f23b177|forum post 894c330e7f23b177]. FossilOrigin-Name: 194276e18e0268829061c09317e7f9f527a703eb45f1755ff1dd30bd99dc1b68
* Correct the URL for loading sqlite3-worker1-bundler-friendly.mjs from ↵stephan2023-11-22
| | | | | sqlite3-worker1-promiser-bundler-friendly.js, so that the promiser can be used in bundler-using environments. Problem reported via email. FossilOrigin-Name: 753a75218913c3b9c7ec5438387107369c34d1775d68b04d19ae18197e558605
* Expose the missing SQLITE_SUBTYPE to wasm.stephan2023-11-10
| | | FossilOrigin-Name: ac9534b2ceb8185b1fc03282f881cd3e4aea64af75a02ebded1e07d4d8278739
* Expose SQLITE_RESULT_SUBTYPE to wasm.stephan2023-11-09
| | | FossilOrigin-Name: 6d2fe9848beb35a8206e49c2ffae29a3eb2fe6411d77f366e962ced3f83e4749
* Merge trunk into jni-post-3.44 branch.stephan2023-10-28
|\ | | | | FossilOrigin-Name: 9670eb2496b4005cf718d9fd12dbd11733f7cf6704a967ebb316504ea6a51e82
| * Remove the SQLITE_MAX_ALLOCATION_SIZE flag (set to 536mb) from the WASM and ↵stephan2023-10-28
| | | | | | | | | | JNI builds because it can unduly limit db exports via sqlite3_serialize(), as reported in [forum:75524f7342c1ba45|forum post 75524f7342c1ba45]. It now defaults to whatever sqlite3.c uses, which is currently just shy of 2gb. FossilOrigin-Name: f6e1137919243c5ce86725df64b40b7e12e82cbceaff210ca41616d620f0dd1b
* | 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