aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
Commit message (Collapse)AuthorAge
...
* | Add get/setPtrValue() to the common wasm utils.stephan2022-08-29
| | | | | | FossilOrigin-Name: 24d70fc458c6002d5ff3c9f8ce7c66bde299b32aca6417c2dd1236e1412b036d
* | oo #1 api: correct a case where a null callback is called. Rename some vars ↵stephan2022-08-29
| | | | | | | | | | for clarity. Increase wasm-side memory in order to be able to load the speedtest1 output. FossilOrigin-Name: b5058f14fadbc8a1886f27cff08593dd2c8e2b2cb6d7bed3b8733a55f031989f
* | Consolidate oo1.DB.exec() and oo1.DB.execMulti() into oo1.DB.exec(). This is ↵stephan2022-08-25
| | | | | | | | | | a bit less efficient but certainly easier for a client to deal with and lightens the maintenance burden. FossilOrigin-Name: 7eff7213dff553b76d7ce45063e3c4a19544716611a0b609593d704076b38d0b
* | Refactor and expand the worker1 docs, consolidating them into the top of ↵stephan2022-08-25
| | | | | | | | | | their file instead of scattered around the internals. Accommodate an API change from yesterday in demo-oo1.js. FossilOrigin-Name: 0a65747047322b7b585e281ac275e437ce3f46e1d06105c19117213929a906ad
* | Change DB.exec() rowMode default from 'stmt' to 'array', per /chat ↵stephan2022-08-24
| | | | | | | | | | discussion. Add DB.exec() rowMode option for fetching a specific column by name. Add result column names to worker1 exec() callback interface, as there's otherwise no way to get that info from a worker. FossilOrigin-Name: 1bb37e5c477b9eb098362f74a45a55be23d450fe45cdff58c1cbff08b5b3998f
* | Expand the worker1 'exec' op handling for per-row callbacks for API-level ↵stephan2022-08-24
| | | | | | | | | | consistency and smooth some edges between worker1 core and worker1-promiser. Add worker1 'config-get' message to fetch the serializable parts of the sqlite3.config state. Improve the 'open' op's handling of the 'persistent' option (noting that we cannot yet test that case from a worker). FossilOrigin-Name: 509f8839201ec1ea4863bd31493e6c29a0721ca6340755bb96656b828758fea7
* | js: resolve the mysterious "extra" unhandled exception notification, caused ↵stephan2022-08-24
| | | | | | | | | | by inadvertently forking one promise into two separate ones (failing to properly reassign a then() result). Fix a typo in new Worker 1 code which caused the DB(filename) name to be incorrect. FossilOrigin-Name: 7467ac88801224089b51c6ba7924f93283dd87beca602a186c83632df26cfc85
* | More work on how to configure the sqlite3 JS API bootstrapping process from ↵stephan2022-08-24
| | | | | | | | | | higher-level code. Initial version of sqlite3-worker1-promiser, a Promise-based proxy for the Worker API #1. FossilOrigin-Name: b030f321bd5a38cdd5d6f6735f201afa62d30d2b0ba02e67f055b4895553a878
* | Significant restructuring of the Worker #1 request/response object ↵stephan2022-08-24
| | | | | | | | | | structures to improve readability and clarity. FossilOrigin-Name: 03b9db9b98cb36faa7de5a8a64d2e13c4aeaadfefb33ac92bb41056f6be3f121
* | More experimentation with how client-side config state can be passed on to ↵stephan2022-08-22
| | | | | | | | | | initialize the JS-side sqlite3 API. FossilOrigin-Name: ea2acc454c012a62556f6d0623d6eff60736d24aa214a64462b423623ef44d47
* | Refactor JS API amalgamation such that the bootstrapping/configuration is ↵stephan2022-08-22
| | | | | | | | | | deferred until the whole amalgamation is available, to facilitate providing clients with a way to initialize the API with their own config (noting that we're still one small level of refactoring away from being able to actually do that). FossilOrigin-Name: 9dbe9a6aecec43b51057375ef1d2d632db0d17eac8b7552c20cc91fc2f1a55d1
* | javascript: rename and simplify DB.callInTransaction() as DB.transaction(). ↵stephan2022-08-18
| | | | | | | | | | Add DB.savepoint(), which works the same as transaction() but uses savepoints. Correct concatenation of arguments to SQLite3Error to use spaces instead of commas. Test that demo-oo1.js works with persistent OPFS storage (output differs due to persistent rows, but the demo works). FossilOrigin-Name: e8c323f12b6223bc9dcbbec40698969c7917128aa50cf599c247df23f607ae61
* | Minor cleanups, reorgs, and doc updates for the JS APIs. Renamed ↵stephan2022-08-17
| | | | | | | | | | sqlite3(-api)-worker.js to sqlite3(-api)-worker1.js, for symmetry with sqlite3-api-oo1.js. FossilOrigin-Name: f5059ee6f9fc55a381cbf08a30dfb9a5636c0b44341e42f4e9f12a3b109b5507
* | wasm: add a small demo/presentation app for JS OO API #1 and make a few ↵stephan2022-08-16
| | | | | | | | | | minor additions to that API. FossilOrigin-Name: d6d79b661a1c6137d4693393e02416da4858d58dc84d144081a48d523655b483
* | wasm: move another file and update testing1/testing2 to account for ↵stephan2022-08-16
| | | | | | | | | | [e38d00c2b82d]. Disable wasmfs by default as it breaks the worker-based module loader (reason as yet unknown). FossilOrigin-Name: 6dad5e0573ee866657ee10b43e55b86fc9caac7a66c13bdbd35c3625a4783f14
* | wasm: accommodate moving generated sqlite3.js in the previous checkin.stephan2022-08-16
| | | | | | FossilOrigin-Name: 41762f9518bb51b8b23ae6507628d6d3256044e1f2aca6e7251dc57722062c42
* | Add worker-style variant of the tests added in [ae24ac0f7dd9], but building ↵stephan2022-08-13
| | | | | | | | | | this with wasmfs causes them to throw inexplicable exceptions from the Emscripten glue (without wasmfs it builds and runs fine, but storage is not persistent). FossilOrigin-Name: 6401595e59179c5c0f6e51c5362cf4391787e7a55b9c6ca655746e30d3251f2b
* | Cleanups in the wasmfs/opfs integration but disable it in order to get the ↵stephan2022-08-13
| | | | | | | | | | build into a known-working state before continuing with experimentation. FossilOrigin-Name: 41045be752a5bd7966849638f3ca56f4905308df70f79f2cb6196ca7dce9d525
* | wasm OO API #1: added DB.callInTransaction() and Stmt.stepFinalize().stephan2022-08-13
| | | | | | FossilOrigin-Name: e37dddc1dd9c0530e4b1c6cb0ca7cba7451caa37734d383c9b47f378d7222242
* | Build fiddle with WASMFS OPFS support and attempt to use it if available. It ↵stephan2022-08-12
|/ | | | | does not work because of an inexplicable exception in Emscripten-generated code and perpetually-locked db, but it's not yet clear why. FossilOrigin-Name: a16f0a46ec88c560f73d5664e4bf53fb5dd1a22e99a92c11b5c8d784816c3282
* Minor wasm-related doc clarification and remove an obsolete code comment.stephan2022-08-12
| | | FossilOrigin-Name: 1b1f650a08da93da97ed3a96b9a3e4eac567472c266188c02a9bffe1cf620e53
* wasm: document the role of sqlite3-wasm.c. Other minor doc updates.stephan2022-08-12
| | | FossilOrigin-Name: 4c10b9b18feca82440273f8192fef951ad051bbfd8aad4d3c840cf6375130afd
* wasm: corrected (in as-yet unused code) a flags check.stephan2022-08-12
| | | FossilOrigin-Name: 06b6113783dd81252a5dd125e1cddb52a9d4e387c74cfb3ba88475e47a31060a
* Wasm-related doc additions and tweaks.stephan2022-08-11
| | | FossilOrigin-Name: ec55a3aa44a80f661dd451b9ea567449ea4c7353901cfd44a4b50ca10f00ddbd
* wasm opfs: error handling fix for an impossible-to-reach error case. Minor ↵stephan2022-08-10
| | | | | cosmetic tweaks in the wasm JSON enum. FossilOrigin-Name: 683a3b937e608a5ecaf7f63f054e8a63179d67c8b2348bf843e5e68f27a369f5
* wasm refactoring part 2 of (apparently) 2: moved ext/fiddle/... into ↵stephan2022-08-10
ext/wasm and restructured the core API-related parts of the JS/WASM considerably. FossilOrigin-Name: 27f9da4eaaff39d1d58e9ffef7ddccf1e41b3726914f754b920e3e1fb572cba6