aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
Commit message (Collapse)AuthorAge
...
* 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
* Minor cleanups in the opfs-sahpool VFS.stephan2023-07-15
| | | FossilOrigin-Name: 279e09070918dab7b60c39179ebb7eb931ca6bd4e589b414f436740499a2f910
* Correct opfs-sahpool VFS after the pebkac involving the previous speedtest1 ↵stephan2023-07-15
| | | | | runs. Make that VFS explicitly opt-in to avoid certain unfortunate locking situations. FossilOrigin-Name: 41bf1fe31f2f3d0daa2bac25dc57262a4b90f22fed6fa97e4e92467c32ae02dc
* Rename opfs-sahpool removeCapacity() to reduceCapacity().stephan2023-07-15
| | | FossilOrigin-Name: fff68e9f25a57045e9d636b02ffa073cf1b984b2587d4fce10f6e35c9988469c
* opfs-sahpool VFS now seems to work, in that it runs fine (and blazingly ↵stephan2023-07-15
| | | | | fast) in speedtest1. Add sqlite3.config options for the high-level configurable parts of opfs-sahpool. FossilOrigin-Name: 5d92d5f4d8ac4cfa37ba473e5cc861628b783bbf1ae4d138bcae8b9d6cc6e798
* More work on porting the sahpool bits. Revert to random backing-store names ↵stephan2023-07-15
| | | | | because it works better with the capacity-reduction algorithm. FossilOrigin-Name: b4e005fd38b06b8d2f2317b955b93807e80a6a18db5f06d7747978d3bfa11411
* Switch opfs-sahpool to use deterministic backing-store file names. Delay VFS ↵stephan2023-07-14
| | | | | registration until after the pool's files are all opened. Fail vfs init if the client's OPFS API has an async FileSystemSyncAccessHandle.close() method (indicating that it's outdated). FossilOrigin-Name: 7c6697ededee9a64962ac6fd78934c6d6e39258b9558a03c1a6c02bf3be1759e
* Integrate the opfs-sahpool VFS into the JS build and get it loading (but ↵stephan2023-07-14
| | | | | it's still far from functional). FossilOrigin-Name: ef96e6b586825a2b3ed011174309cba8ce1031876c86dc59ed87ab9bbc64f57f
* Initial sketches for an alternate OPFS VFS which uses a pool of pre-opened ↵stephan2023-07-14
| | | | | SyncAccessHandles to bypass the need for a dedicated I/O worker and the COOP/COEP HTTP response headers. Currently completely non-functional. FossilOrigin-Name: a93de9f2a553a3a4edd1b361dd6f465a1b0b5b51f7bb8ede432067aedcfefda4
* Minor internal cleanups in the OPFS VFS.stephan2023-07-14
| | | FossilOrigin-Name: 984d491eb3fe06f714bf07d6873321f3992a072812b46508e599bfefd39dff3e
* Minor cleanups related to reintroducing wasmfs support.stephan2023-07-13
| | | FossilOrigin-Name: 6918a927b5ecd1df5916b70d52d8d5ce289869c3f323e577b7dfc7c939084400
* More work on the wasmfs build. Resolve the inconsistent argument type passed ↵stephan2023-07-13
| | | | | to sqlite3InitModule() in such builds. FossilOrigin-Name: 4850a9e2d2b41b91e91b9ef99a6d26ddf11a161b4c970fc00d2d095606729a04
* Get wasmfs build and its bare-bones test app working again, albeit currently ↵stephan2023-07-13
| | | | | in ES6 mode only. FossilOrigin-Name: 647761ed422f196f94facc88bbddd7219a2c1a6301a5f847b0a32d3e405233a7
* JS: change the default OPFS VFS journal mode from PERSIST to DELETE, as ↵stephan2023-07-13
| | | | | DELETE is faster in current browsers. FossilOrigin-Name: a061a43e36b8f3cb7c465fd2e54cfcd9dceb07e232ee78602bbdd1818acd05ea
* Remove obsolete ext/wasm/api/sqlite3-wasi.h.stephan2023-07-13
| | | FossilOrigin-Name: f661a6e0c1ac081ee402e64590eabd427440db1b717be9166bdfc025d0b0d899
* Internal JS doc fix.stephan2023-07-12
| | | FossilOrigin-Name: 7c5ea02205a360a11fa9043be12c678eb7fe6f6a0b63b09a3dc976beae881e3f
* Minor tweak to the OPFS async proxy to attempt to account for a spurious ↵stephan2023-05-30
| | | | | high-load console error message which was reported via the sqlite-wasm npm project. FossilOrigin-Name: a61467d1fbb7a2804bfdc685a38e0b738747b9afd42c25a78a938b114a822f61
* Minor internal JS doc fix. No code changes.stephan2023-05-30
| | | FossilOrigin-Name: 68abee3c1bf4e9ff632fccaa6ac7c5c4cdf55c4ff1749830ae3bd5ff6d55ebb2
* Add ability for the JS Worker1.exec() API to report the number of changes ↵stephan2023-05-25
| | | | | made to the caller, per request in [forum:d0b19483642e20dd | forum post d0b19483642e20dd]. FossilOrigin-Name: 6e79505df915612b60696e4eec5c9973175fe6ecf273eb3152b996e63ae54a07
* Extend detection of the INSERT...RETURNING locking case to the ↵stephan2023-05-19
| | | | | DB.selectValue(s)/selectArray/selectObject() family of functions. Add tests for INSERT/UPDATE...RETURNING with those functions. FossilOrigin-Name: 3181c50540df0eff6cb5db79bb477c469bb7b73b0692260ba600db200fcef4ac
* Minor doc typo fix.stephan2023-05-19
| | | FossilOrigin-Name: 4533be08786306a4fcb4b21458444dffd0fa2764ebb2538313f3a16d9324cacc
* oo1.Stmt.finalize() no longer throws, but instead returns the same as the C ↵stephan2023-05-19
| | | | | API. oo1.DB.exec() now triggers the INSERT...RETURNING locking failure as an exception via reset() instead of finalize(). Some code-adjacent internal API renaming for clarity's sake. FossilOrigin-Name: 4ee6b3aa531b980acea4c4b58ee256e765c5105100468928def3d4c9825fa9bc
* sqlite3.oo1.Stmt.reset() now throws if sqlite3_reset() returns non-zero, ↵stephan2023-05-19
| | | | | analog to [f23eb5c6d365]. FossilOrigin-Name: 487ae12c9a21e5862bd590bbb1030c39734657d52136cf67b98c7545e6ecbe1c
* Add a basic INSERT RETURNING test for the oo1.DB.exec() API.stephan2023-05-19
| | | FossilOrigin-Name: d29d62cf7658aeb49f3c8a5d0b0809d945ebc9b79379a255eb88f771d2a2c430
* sqlite3.oo1.Stmt.finalize() now throws if sqlite3_finalize() returns ↵stephan2023-05-19
| | | | | non-zero. This is intended to address the INSERT RETURNING case covered in [forum:36f7a2e7494897df|forum post 36f7a2e7494897df]. FossilOrigin-Name: f23eb5c6d36546ee1e181a03660e0b2dc8005bba24bee8bae594b0c78bd152cd
* Doc typo fix. No code changes.stephan2023-05-10
| | | FossilOrigin-Name: e841b142f583e49350c7cdd14dc4da72434cc67c7b521ae741e03e37e785d7e0
* Resolve the JS-side corner case reported in [forum:7774b773937cbe0a | forum ↵stephan2023-05-10
| | | | | post 7774b773937cbe0a] by not caching oo1.Stmt.columnCount. FossilOrigin-Name: c3d25c3a25e79e01c4ad0cf11f7dc3b0fb1932f3bcd04935a728ef62f7e07cf1
* Remove xFileControl() handling from the OPFS VFS altogether, re-routing all ↵stephan2023-05-01
| | | | | syncing through xSync() instead. This eliminates superfluous syncing introduced in [a371374148a2], as discussed in [forum:647d2f811dbc2dfe|forum thread 647d2f811dbc2dfe]. FossilOrigin-Name: f809de7f232c8c2731a877c7bf1ad39fda5b326b2e45e4748cab4dc5e5b535bd
* Expose the SQLITE_DBCONFIG_STMT_SCANSTATUS and ↵stephan2023-05-01
| | | | | SQLITE_DBCONFIG_REVERSE_SCANORDER sqlite3_db_config() options to JS. FossilOrigin-Name: 0a7024af3f0e1dddc1a60c67bc4084e46b297dc16fe753bd5e6a45a59fd1cfa4
* Implement full xSync() for the OPFS VFS. The previous implementation was not ↵stephan2023-05-01
| | | | | correct for journal files. Reported in [forum:647d2f811dbc2dfe|forum post 647d2f811dbc2dfe]. FossilOrigin-Name: a371374148a2874be6e48890781aa5952229056b146a50fa4d035693341c5636
* Add a note about the journaling mode in the OPFS VFS. No code changes.stephan2023-04-24
| | | FossilOrigin-Name: e79c95fc130fc302719690eb6391d96070aff825b2b51ef6c4ad459d9a8918d7
* Correct use of an undefined symbol in one of the OPFS VFS loading failure ↵stephan2023-04-19
| | | | | error reporting cases (copy/paste error). FossilOrigin-Name: c81c968b458977b2d6dd2fdd3c3d667f0e7cee069f3715363d0e8aed4e6e8377
* Expose the new SQLITE_VTAB_USES_ALL_SCHEMAS to JS.stephan2023-04-04
| | | FossilOrigin-Name: b7ef09be667dd349e195842304c03cbebb1693164e1c3587a5d7c96baa713edf
* Remove a meaningless JS test. Add a timer to the OPFS async-side worker ↵stephan2023-03-27
| | | | | loader in an attempt to catch a browser-specific quirk in which the worker loading silently fails, per discussion in/around [forum post a708c98dcb3ef|forum:a708c98dcb3ef]. FossilOrigin-Name: 4fc1904b8e18c7d41fa65490ced125f1df4f0c22c13de957b24615ed09b3ecb7
* Internal cleanups in JS code. No functional changes.stephan2023-03-22
| | | FossilOrigin-Name: 8fbdf7d10400c4f54fc3d8bc823f97818de860deeeed35ab6ad717260cd301e0
* Export SQLITE_FCNTL_RESET_CACHE to JS.stephan2023-03-10
| | | FossilOrigin-Name: 6195cfc86b15614b8db0e0dc5cc79b8d1acaf483f0131c8526992dc8ca075630
* Replace a lingering use of 'self' with 'globalThis' in JS code, for node ↵stephan2023-03-09
| | | | | compatibility. FossilOrigin-Name: 7e3782b5aa07621db95c2dc25b25ae21da988c9876d537b78ea289a83c75b06b
* Export the new SQLITE_CHANGESETAPPLY_IGNORENOOP flag to JS.stephan2023-03-08
| | | FossilOrigin-Name: ac7359b2633ead74a53b2796fe038ca285aacad45b45980db2a76a87154e66e3
* Extend wasm build to support a custom sqlite3.c to support building against ↵stephan2023-03-08
| | | | | sqlite3-see.c. The JS code now binds the SEE-specific functions if it detects an SEE build. FossilOrigin-Name: dd8612c8adbaf9d06bf0d7319b9afc9bd8ca3d0fcfa1cb591a7a2fcb86480048