aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-oo1.js
Commit message (Collapse)AuthorAge
...
* wasm/js: rename /persistent to /opfs to account for potential future ↵stephan2022-09-27
| | | | | persistent storage options. Minor flag-handling cleanups in the speedtest1 pages. Minor API tweaks in oo1. FossilOrigin-Name: 4dc972a3656b2a9ec915bfb3f653136560c753ce4024c3f0d0d0c28f66db7a0a
* Fiddle: replace db export routine with a C-side one which works for both ↵stephan2022-09-26
| | | | | Emscripten FS-hosted and OPFS-hosted db files. Minor code-adjacent cleanups. FossilOrigin-Name: 3579a8d6f1f6cd3cd8aad9949536870c5fe7bae8c1778f700dd85d763e266b94
* Merge kv-vfs-magic-names branch into fiddle-opfs branch and make some ↵stephan2022-09-20
|\ | | | | | | | | kvvfs-relevant tweaks. FossilOrigin-Name: e3d36dcdd37e59f17a07d3611d08744eb86f439fab82a648490dd608bcaa3185
* | Numerous cleanups in the JS bits. Removed some now-defunct wasm test files. ↵stephan2022-09-18
| | | | | | | | | | Expose sqlite3.opfs object containing various OPFS-specific utilities. FossilOrigin-Name: 26e625d05d9820033b23536f18ad3ddc59ed712ad507d4b0c7fe88abd15d2be8
* | More work on the synchronous OPFS experimentation. Numerous wasm/js build ↵stephan2022-09-15
| | | | | | | | | | tweaks. Add speeedtest-wasmfs.html, the wasmfs/opfs counterpart of speedtest1.html. FossilOrigin-Name: 00ee49a3a2c148480f614e49a0ee5b35a255758c0a53693f0b464b31e7a4045b
* | Clean up some JS documentation.stephan2022-09-15
| | | | | | FossilOrigin-Name: 925fdbfc6c1f9f06951346bc0d4fb81ffb5797d5f1123728931973f6cb1a0efa
* | Add/apply various kvvfs-specific utility APIs to the JS layer to assist in ↵stephan2022-09-13
| | | | | | | | | | testing and analysis. Correct a backwards default arg check for sqlite3ApiBootstrap(). Add exports for sqlite3_db_handle(), sqlite3_file_control(), and the SQLITE_FCNTL_xxx enum. FossilOrigin-Name: 0d78961870ee9f22f1ba16d423377d28dcc36e04b1e31ffd57f3e2fd51f8f0f2
* | Add sqlite3.oo1.DB.clearKvvfsStorage(). Add controls to kvvfs1.js demo to ↵stephan2022-09-12
| | | | | | | | | | reset and query the db without requiring the dev console. FossilOrigin-Name: d845c6c22bd5d3fffc66e0566df346d690dd8bd1fc1688e312161b1a1edcfd79
* | Merge kv-vfs branch into fiddle-opfs branch to add kvvfs-based wasm build ↵stephan2022-09-12
|\| | | | | | | | | and demo. FossilOrigin-Name: a7d8b26acd3c1ae344369e4d70804c0cab45272c0983cfd32d616a0a7b28acb9
* | Minor internal doc clarifications.stephan2022-09-06
| | | | | | FossilOrigin-Name: 09796cc2bfce7bc4ce11db9673d20737259e9928f0484660cba3a9751f7d01c5
* | Minor cleanups in OO API #1. Add Sudoku SQL to batch-runner.js's list.stephan2022-09-05
| | | | | | FossilOrigin-Name: 4488cb5798f34cbba14eb8e2aa5da8420c14a85d37d278d357406aedd5c3a9e5
* | Lots of tweaking in batch-runner.js. Minor internal API update in OO #1 API.stephan2022-08-29
| | | | | | FossilOrigin-Name: 24b82b9504db3d8e1335c2300b133f897dc1a541026dc24be5b0ffd8be66d977
* | 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
* | 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 OO API #1: added DB.callInTransaction() and Stmt.stepFinalize().stephan2022-08-13
|/ | | FossilOrigin-Name: e37dddc1dd9c0530e4b1c6cb0ca7cba7451caa37734d383c9b47f378d7222242
* 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