aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js
Commit message (Collapse)AuthorAge
* Approximately 50 typo fixes, spanning the whole tree, contributed via ↵stephan2025-02-25
| | | | | [forum:006c8fa165083ac3|forum post 006c8fa165083ac3] and individually checked for correctness. Affects only code comments, docs, and a single line of debug output in a test app. FossilOrigin-Name: af928818a030924060ee0762431dae0f16d53a62f4e1132754d052eb9c621ac2
* Ensure that the OPFS VFS's xOpen() writes back the read-only flag to the ↵stephan2024-10-17
| | | | | output flags. Resolves the problem reported in [forum:cf37d5ff1182c31081 | forum post cf37d5ff1182c31081]. FossilOrigin-Name: 0a32624015f16fd881a4ecbb56b7833391028d327a95f4c899eee864ed7fe00d
* OPFS VFSes: remove the on-open() pragma calls, as those (A) already ↵stephan2024-07-22
| | | | | reflected the build-time default settings and (B) they made it illegal to run locking_mode=exclusive, which is a requirement for WAL mode without shared memory. Modify part of the test suite to demonstrate that the SAHPool VFS can run in WAL mode so long as locking_mode=exclusive is used. FossilOrigin-Name: 19cd8e2b056d7842ee39afb7160c901c9dc55a5bac8049cb0b5246210f6b920d
* Slight doc touchup for [af41a1e6fc8b36e9bf65] based on feedback. No code ↵stephan2024-07-15
| | | | | changes. FossilOrigin-Name: be7b1fc0c5d8cda971b471dfcb4637212bfff4f42b1e074077a381cc493d877a
* Remove the timing and counter metrics from the OPFS VFS, as they're ↵stephan2024-07-11
| | | | | long-since unused so are just wasted CPU cycles. FossilOrigin-Name: 67c035c34fb916e66bfe115a132660771e8fa2921e6d46756975c5df3ebcd73c
* Add some docs explaining [64f4f3cd878b1a72].stephan2024-07-11
| | | FossilOrigin-Name: 4fdf9a322fccf7d68b03d07a42a526f18f951e2e19228b7d41e01121b667cc86
* Proposed workaround for the "errant op" case in the OPFS VFS, as discussed ↵stephan2024-07-11
| | | | | in [https://github.com/sqlite/sqlite-wasm/issues/12 | issue #12 of the npm distribution]. FossilOrigin-Name: 64f4f3cd878b1a723caa0cd54b21f10fdb27d4e2ecb19fc233cbc8dd9d06f259
* Remove some dead JS code.stephan2024-06-16
| | | FossilOrigin-Name: 754e6e059b740435475c1869feeaca39585b262d5c27210e0fbddbbcc202c4d5
* Remove some dead JS code. Improve the exception-to-C-result-code conversion ↵stephan2024-06-12
| | | | | to account for the case of a file disappearing while the OPFS VFS is waiting to acquire a lock on it. FossilOrigin-Name: 5bd9fd5f61e7cd1ed3b44c5cabc759c154c98eb40ad10d29e61f142aaa062ddf
* Remove some JS docs which no longer apply. No code changes.stephan2024-06-12
| | | FossilOrigin-Name: f253cab3359270045a3ae9f5e9eadc1cfc8844181db127165bfdf49d5f99efb1
* OPFS VFS: change the xCheckReservedLock() impl to always return false, as ↵stephan2024-06-12
| | | | | discussed in [forum:a2f573b00cda1372|forum thread a2f573b00cda1372]. This does not impact any current tests, and may have no direct impact at all because of how that VFS handles locking, but is hypothetically a more correct solution than the previous one. FossilOrigin-Name: c298b8ba2dcd01fa28b79a78bb4986fa0282755a0a36b7f38b93096ac31f521e
* Remove some dead JS code and update some JS docs.stephan2024-06-11
| | | FossilOrigin-Name: 6935ac71bad3d36cc519f0325ae4447a674f257309d020cdc0741160fcce0580
* Add more docs for the OPFS delete-before-open feature.stephan2024-03-11
| | | FossilOrigin-Name: cb8d9c269c01f78f09069a2361e15087d9aeac63e9f1fd63fbd96b951384e9aa
* Add delete-before-open=1 URI flag to the 'opfs' VFS to tell it to xDelete ↵stephan2024-03-11
| | | | | the db file before opening it, primarily to enable users to work around a corrupt db without having to reach into OPFS-specific APIs to remove the db file. FossilOrigin-Name: e83f9788636f7f9bcca7d2a09620c13ab4eb83436d5b2946a827e48addf0267d
* Correct docs about the first OFPS VFS's importDb() method being synchronous ↵stephan2024-02-06
| | | | | (it's not, whereas the second VFS's importDb() is). FossilOrigin-Name: ae7505fa5e112f39a329befb35eff6ddf46a53f5deb610906550bf67f56fc157
* Make explicit that using the importDb() methods of the OPFS VFSes has ↵stephan2024-02-06
| | | | | undefined results if the being-imported db is currently open. Doc changes only. FossilOrigin-Name: f28b9924b401b359e59a73918a34b29cde719164a6b4ac5a9d23da6294b701bd
* Remove some dead JS code. Minor doc cleanups.stephan2024-01-11
| | | FossilOrigin-Name: bf23cf204976516651b1c4c39ced21cd858dea4ba88052d96fc4f5f11525f170
* 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
* 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
* 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
* Further refactoring of opfs-sahpool and start integrating it into ↵stephan2023-07-18
| | | | | tester1.c-pp.js. FossilOrigin-Name: 91c789234963b660ae900f0738906b28a477993709e286d8125b2f4d6101601c
* 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
* 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
* 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
* 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
* Minor internal JS doc fix. No code changes.stephan2023-05-30
| | | FossilOrigin-Name: 68abee3c1bf4e9ff632fccaa6ac7c5c4cdf55c4ff1749830ae3bd5ff6d55ebb2
* 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
* 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
* 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
* Replace use of 'self' in JS code with 'globalThis', as that works in ↵stephan2023-03-07
| | | | | browsers and node environments. Avoid using globalThis.location if it's not set (e.g. in node). Based on feedback in [forum:ac7a94d4f77db235|forum post ac7a94d4f77db235]. Minor JS build tweaks. FossilOrigin-Name: dbbe8f25e58738c10b6192d41f1e3886983871f17631cbc45ce626d3f05a6e26
* Remove some unnecessary bind() calls in JS code.stephan2023-02-21
| | | FossilOrigin-Name: 71215599cd8ebb970500d8366dfac40420a9a6b243ea9d6ba62d5cde28fae3d3
* Add capability to override the JS's use of console.log/debug/warn/error() ↵stephan2023-02-06
| | | | | with client-provided versions via the bootstrap-time config object. FossilOrigin-Name: c54f29d8e55419eaa9168e799dab5030e89063b13d8390a50616606422d164dc
* Add JS bundler-friendly JS build. Minor test code cleanups.stephan2023-01-28
|\ | | | | FossilOrigin-Name: 24d3a53dea5e596230558e233cbbd9d0288b4c394cd5ea7b650fd99bff4cde2e
| * More work on creating a separate sqlite3.js build which is hopefully ↵stephan2023-01-27
| | | | | | | | | | friendly to JS bundlers. FossilOrigin-Name: b7b896fb448a7f46eb88eadadb1359255aec637a384cabcdd526276a02f4f0b4
| * Beginnings of a bundler-friendly build of sqlite3.mjs. Not yet ready for ↵stephan2023-01-27
|/ | | | | downstream testing. FossilOrigin-Name: 4271bf5f41df091696f1dcfc4ffe7a60d24066fc75c896941e0b56de95fe5f89
* End-of-line whitespace cleanups and doc typo fixes. No code changes.stephan2023-01-26
| | | FossilOrigin-Name: bdfd72a083fadd724030c4c89adae71426e1ddd402c6bc5abf40801ecf3253cf
* Rename the oft-used, verbose sqlite3.wasm.get/setMemValue() and ↵stephan2022-12-09
| | | | | get/setPtrValue() to peek/poke() and peek/pokePtr(). The old names are retained as aliases just in case any client code actually uses them, but they are now deprecated. FossilOrigin-Name: ad0a8139b0b025f8e9d2eca0c303557ef10fdfab8c8b65afb08c510a804073d5
* Reorganization and renaming in the new VFS/vtab JS pieces.stephan2022-12-09
| | | FossilOrigin-Name: 1c2dda177a11fcc5b66e5554507c23ba4b9948a710b3bccfb26963b9851d40a4
* Remove deprecated symbol sqlite3.opfs.OpfsDb, which was renamed to ↵stephan2022-12-06
| | | | | sqlite3.oo1.OpfsDb on 2022-11-29. FossilOrigin-Name: 0ce51bed65d5e430364f74bf959fb76c42ac5eec0769490231d8c8110a1f388c
* Rename wasm.cstringToJs() to wasm.cstrToJs() for consistency with other ↵stephan2022-12-06
| | | | | wasm.cstr... APIs. FossilOrigin-Name: cbf483ea0ba3e6dc08ad7ed654380f818544b4c3cedfdb8aa848a83298268ceb
* Rework the oo1.DB's distinct-per-VFS post-open() step to accept either a ↵stephan2022-12-03
| | | | | batch of SQL or a callback function. Increase OPFS's busy timeout to 10s. FossilOrigin-Name: 9feefe253ac487cb52be6bdf91bdd305963266716baa08f2bf9505954ee76321
* Minor internal tweaks to the OPFS VFS. Resolve a missing result code which ↵stephan2022-12-02
| | | | | lead to a null deref in xFileSize(). FossilOrigin-Name: 57dd593ef0efa17dfb3a9f4eac36d5b8b879e271de817d8cd94a8c8b56d31870
* OPFS VFS: translate createSyncAccessHandle() exceptions which appear to be ↵stephan2022-12-02
| | | | | locking violations to SQLITE_BUSY. This seems to improve concurrency considerably even with a reduced retry count of 5 (was 6). FossilOrigin-Name: 0d36021d107d3afca190ad61c3380536ad0cc2d493d345d48f9f9c1191741128