SQLite

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

200 most recent check-ins using file magic.txt version 8273bf49

2024-04-02
18:48
Fix typos in comments. Provided ".wheretrace" debugging output for the interstage heuristic module. Do omit automatic index loops in the interstage heuristic. Leaf check-in: 357d9513 user: drh tags: branch-3.28
18:31
Fix table-valued functions so that they will work as the right table in a LEFT JOIN. Ticket [2ae0c599b735d59e] check-in: 1f97086d user: drh tags: branch-3.28
11:54
Add a heuristic in between the two solver() passes of the query planner that tries to prevent a very slow query plan in cases where the output row count estimate is imprecise. check-in: 74b247d9 user: drh tags: branch-3.28
2023-11-29
16:26
Fix a duplicate assert() caused by the second cherrypick in the previous check-in. check-in: f10d4fc4 user: drh tags: branch-3.28
16:07
Remove Window objects from the corresponding Select.pWin list when they are deleted, as they are, for example, when the ORDER BY clause is optimized out. check-in: f9c6e6a7 user: drh tags: branch-3.28
2023-10-19
21:05
Ensure that when an ephemeral cursor is reopened with a second invocation of to OP_OpenEphemeral, the sequence counter is reset and the cache marked as stale. Fix for [9cdc5c46]. check-in: d4bfa8d2 user: drh tags: branch-3.28
2023-09-15
20:04
Drop support for the view-scan optimization as it was causing multiple performance regressions. In its place, reduce the estimated row count for DISTINCT subsqueries by a factor of 8. check-in: 796a65fa user: drh tags: branch-3.28
2023-02-26
11:52
In the omit-unused-subquery-columns optimization, be sure to remove the EP_Skip and EP_Unlikely flags from the result set expressions that get nulled-out. dbsqlfuzz bf1d3ed6e0e0dd8766027797d43db40c776d2b15. Also fix an incorrect ".selecttrace" code block. check-in: 83a7f13e user: drh tags: branch-3.28
2023-02-16
21:01
Fix an #ifdef that uses a different macro name from the main branch. check-in: ad6ac5d3 user: drh tags: branch-3.28
19:04
Back-port omit-unused-subquery-column enhancements into the 3.28 branch. check-in: 57a4e91f user: drh tags: branch-3.28
14:29
Do not compute result columns of subqueries that are never used. Make those columns NULL instead. This optimization potentially resolves the enhancement request described by [ticket baa5bb76c35a124c]. check-in: 0163b697 user: drh tags: branch-3.28
01:29
Do not compute unused result columns of subqueries. This optimization will potentially resolve the performance optimization request of [ticket baa5bb76c35a124c]. Closed-Leaf check-in: 0c21b6a5 user: drh tags: branch-3.26
01:21
Update test cases so that they work with TCL 8.7 and later. check-in: e9b762de user: drh tags: branch-3.26
2023-02-15
13:00
Update the configure script so that it contains the correct version number. check-in: a7cbf308 user: drh tags: branch-3.26
2023-01-25
17:24
Change the instrumentation messages on this branch so that they contain "v=7" instead of "v=6". Leaf check-in: acea12d9 user: dan tags: schema-version-instr
17:09
Experimental patch to put page buffers on an internal per-connection list for reuse instead of free()ing them when the page-cache is reset. check-in: 1e4cfd2f user: dan tags: schema-version-instr
2023-01-19
21:05
Add test logging around the pcache1FreePage() loop in pcache1TruncateUnsafe(). check-in: a057f9cb user: dan tags: schema-version-instr
2023-01-16
20:33
Another version of the debug-only logging on this branch. check-in: 906caf89 user: dan tags: schema-version-instr
2023-01-06
19:03
Fix the threshold for logging "PRAGMA schema_version" slowness. check-in: ca3854cb user: dan tags: schema-version-instr
2023-01-05
19:48
One more iteration of "PRAGMA schema_version" instrumentation. check-in: 0d908106 user: dan tags: schema-version-instr
2022-12-23
15:05
Another iteration of "PRAGMA schema_version" instrumentation. check-in: d5a8d6cf user: dan tags: schema-version-instr
2022-12-22
15:04
Fix an error in the previous commit causing timings to be logged for every "PRAGMA schema_version" command, not just those that are slower than 2 seconds. check-in: 1e8220c1 user: dan tags: schema-version-instr
14:29
Different version of "PRAGMA schema_version" instrumentation. check-in: b9efbc53 user: dan tags: schema-version-instr
2022-12-19
18:42
Hack for special gettimeofday() instrumentation of "PRAGMA schema_version". check-in: 44dd01e3 user: dan tags: schema-version-instr
2022-12-18
10:27
WIP, pre-sync-to-trunk check-in to capture extensive changes to shell source. (WASM and usual shell tweaks) check-in: 3db119c8 user: larrybr tags: cli_extension
2022-12-04
22:13
Fix safe mode authorizer callback to reject disallowed UDFs. Tests to follow. UPDATE: checked into the wrong branch. Closed-Leaf check-in: 4d934f00 user: larrybr tags: wrong branch.
2022-10-31
18:11
Make the UPDATE method of the sqlite_dbpage virtual table rebust against OOM errors. Forum post bbcf0dd6ca. Test case in TH3. Leaf check-in: 852f2c95 user: drh tags: branch-3.39
18:04
Extra OOM check in shell_error_context() of the CLI. forum post 5708841db0. check-in: d6893183 user: drh tags: branch-3.39
2022-10-25
13:46
Fix the ".dump" command in the CLI so that it is more rebust against corrupt database files. At the same time, enhance the sqlite3_strglob() and sqlite3_strlike() interfaces so that they will do sensible things with NULL string pointers. check-in: 681c85ef user: drh tags: branch-3.39
2022-10-24
13:50
Improve the ability of the query planner to recognize covering indexes even on tables with more than 63 columns and where the index is over columns beyond the 63rd column. check-in: 3d1992de user: drh tags: branch-3.28
2022-10-20
18:31
Rename sqlite3_web_... to sqlite3_js_... Document the worker1.close.unlink option. Fix unlink usage in speedtest1.html. Minor JS build cleanups. check-in: ac9af71b user: stephan tags: trunk
16:30
Add a bit to the optimization disabling mask for the indexed expression optimization. check-in: 56df1482 user: drh tags: trunk
16:22
Add test case for previous commit. check-in: 535867a9 user: dan tags: trunk
16:12
Only enable the bMaybeNullRow flag on IndexedExpr for an index on an expression, not on a virtual column. But do enable it for the right operand of a right join. check-in: a9657c87 user: drh tags: trunk
13:36
The generalized indexed expression optimization of [2435112867fbd7b6] makes the prior [a47efb7c8520a011] enhancement from 2017 obsolete. This check-in removes the older optimization. check-in: 56442c9b user: drh tags: trunk
10:46
Fix minor problems in test1.c test code. check-in: 6e545e2b user: dan tags: trunk
05:14
Rework sqlite3_wasm_vfs_unlink(), add sqlite3_wasm_db_vfs(), update some docs. check-in: cdd46858 user: stephan tags: trunk
04:00
Minor internal JS cleanups. check-in: 818ef0b5 user: stephan tags: trunk
2022-10-19
18:04
In the CLI, never use strcmp() or strncmp() directly. Instead use wrapper functions cli_strcmp() and cli_strncmp() that work correctly even if the input is a NULL pointer. Forum post 142b868da7560d0b. check-in: 7450a561 user: drh tags: trunk
18:03
Move file /ext/misc/dbdata.c to the /ext/recover/ directory. check-in: f6d5ac80 user: dan tags: recover-extension
11:58
Fix references to "SrcList_item" in comments as that object has since [bfd5bf2c73110fcb] (2021-02-21) been called "SrcItem". Comment changes only. No changes to code. check-in: e3648a07 user: drh tags: trunk
11:22
If a query uses an index where one or more of the columns of the index is an expression and if the corresponding expression is used elsewhere in the query, then strive to read the value of the expression out of the index, rather than recomputing it. This is the "Indexed Expression Optimizations". check-in: 3da10328 user: drh tags: branch-3.28
10:56
If a query uses an index where one or more of the columns of the index is an expression or a virtual column, and if the corresponding expression is used elsewhere in the query, then strive to read the value of the expression out of the index, rather than recomputing it. This is the "Indexed Expression Optimizations". check-in: 24351128 user: drh tags: trunk
07:51
Update the wasm/js 'push' rule to account for this morning's changes. check-in: c4a0f745 user: stephan tags: trunk
07:34
Rename several demo/test files and include more of them in the end-user dist archive. check-in: 9c85835f user: stephan tags: trunk
06:14
Minor wasm/js build tweaks. check-in: bcbee1ec user: stephan tags: trunk
06:06
Update the dist rules for this evening's js/wasm build changes and include an index.html specifically for the subset of apps included in the dist archive. check-in: a0ef0f32 user: stephan tags: trunk
04:44
Apply considerable acrobatics to get the JS/WASM deliverables building to and loadable from a directory other than the one which contains the app-level code. Requires an only-slightly-leaky abstraction of passing a URL argument when loading sqlite3.js but provides much greater flexibility in where the JS/WASM files are located. check-in: 6d468dab user: stephan tags: trunk
01:07
Considerable wasm/js build cleanups and reworking. Remove wasmfs builds from the end-user deliverables and disable the wasmfs build by default, per /chat discussion, as it doubles our deliverable count for only marginal gain. Attempt to move the sqlite3.js/wasm files into subdirectories but rediscovered that that breaks loading in Worker mode because URI resolution of the wasm files differs depending on whether the main script is loaded from a script tag or a Worker. check-in: 5b23e067 user: stephan tags: trunk
2022-10-18
22:37
If a virtual column whose value is constant gets indexed, do not include that column in the IndexedExpr list. dbsqlfuzz 59ac17a99b9a5c4930ee71cc153c9428a0c0e794 Closed-Leaf check-in: c21eb903 user: drh tags: index-expr-opt
20:36
More work on the JS end-user deliverables. Add tool/stripccomments.c to support that. check-in: 2156f074 user: stephan tags: trunk
20:27
Improved byte-code comments for the OP_Column opcodes used by the indexed expression optimization. check-in: bf6d837f user: drh tags: index-expr-opt
16:47
Fix the indexed expression resolver for generated columns so that it picks the correct table in a self-join. check-in: 54c3eb08 user: drh tags: index-expr-opt
16:32
Merge recent trunk fixes into the index-expr-opt branch. check-in: 6198ab4b user: drh tags: index-expr-opt
15:02
Add new test file windowE.test, to test the window functions modules response to an inconsistent collation sequence. check-in: 740a2eb0 user: dan tags: trunk
13:27
Correct sort order for serial-type 10 entries in the database file. This is a continuation of [4fb77e96fa89a23a]. check-in: 904b5462 user: drh tags: trunk
11:28
Merge trunk fixes into the index-expr-opt branch. check-in: c7b9cc64 user: drh tags: index-expr-opt
10:27
Fix sqlite3VdbeRecordCompareWithSkip() so that it sorts the internal-use serial-type of 10 together with NULLs. dbsqlfuzz 5ff35e9d49a5fcca5051e23960ff2f483a538bab check-in: 4fb77e96 user: drh tags: trunk
2022-10-17
17:36
Add ext/wasm/README-dist.txt, intended to have been in the previous checkin. check-in: c9080b65 user: stephan tags: trunk
17:34
Initial draft of archive generation for the wasm/js deliverables. check-in: f6cee114 user: stephan tags: trunk
16:47
Repair version-info.c after a local mishap caused all of the intended edits from [36e197cb3d0c]/[e9b407a4d0a0] to get deleted before checkin. Simplify version-info build (only requires sqlite3.h, not the library). check-in: 6e511df5 user: stephan tags: trunk
16:31
Merge trunk changes into the index-expr-opt branch. check-in: a1485ce6 user: drh tags: index-expr-opt
16:29
Fix a potential call to strlen() with a null argument in the command-line shell following an OOM error. forum post 9c4f2ebe22. check-in: 67bb8eda user: drh tags: branch-3.39
16:09
Fix a potential call to strlen() with a null argument in the command-line shell following an OOM error. forum post 9c4f2ebe22. check-in: b6413a6d user: drh tags: trunk
15:53
Missing file-rename for the previous checkin. check-in: e9b407a4 user: stephan tags: trunk
15:52
Rework ext/wasm/version-info.c to make it more useful for the upcoming dist build rules. check-in: 36e197cb user: stephan tags: trunk
14:46
Improved comments and function names. No logic changes. check-in: 8f460b3b user: drh tags: index-expr-opt
14:30
Get the indexed expression optimization working for virtual generated columns. check-in: 8a510cb0 user: drh tags: index-expr-opt
14:29
Merge trunk enhancements into index-expr-opt branch. check-in: 56ef97e6 user: drh tags: index-expr-opt
10:15
Make use of alloca() in wherePathSolver() when SQLITE_USE_ALLOCA is defined. check-in: 45752471 user: drh tags: trunk
09:56
Remove a use of alloca() that does more harm than good. check-in: 2ab3cf4d user: drh tags: trunk
2022-10-16
23:33
Typo fix. check-in: 650126c9 user: stephan tags: trunk
18:57
Minor tweak to get bring an edge case of oo1.DB.createFunction() into aggreement with its docs. check-in: 8d59ccd9 user: stephan tags: trunk
18:50
Add aggregate function support to sqlite3.oo1.DB.createFunction(). Change signature of the options object used by that function so that the callback property names match those of the corresponding C APIs. check-in: a7db6e4b user: stephan tags: trunk
16:38
JS: add build-time-generated version info to the sqlite3.version object. Remove some stray debug output from tester1.js. check-in: b5f462c2 user: stephan tags: trunk
15:38
Add a top-level license and build-time version info header to generated sqlite3*.js. Correct a broken link in ext/wasm/index.html. check-in: 0f1a06e8 user: stephan tags: trunk
2022-10-15
19:18
Exclude slow test recovercorrupt.test from veryquick.test. check-in: ff9a7335 user: dan tags: recover-extension
18:26
Add missing comments and fix other code issues. check-in: 8ed4e4a8 user: dan tags: recover-extension
15:39
Merge latest trunk changes. check-in: 42255ead user: dan tags: recover-extension
12:01
Enable the index-on-expression optimization even when the expression is used as an argument to an aggregate function. check-in: 462b3c7f user: drh tags: index-expr-opt
11:27
Only extract an expression from an index when the index is not a null row in an outer join. check-in: 08b033c7 user: drh tags: index-expr-opt
2022-10-14
19:56
Merge fixes from trunk. check-in: 1cb65f36 user: drh tags: index-expr-opt
19:30
Fix a problem with using the push-down optimization on compound SELECTs where component SELECTs use different collation sequences. dbsqlfuzz 11516f050100243e5a845f5a2b48a90ed2efaf2e. This problem appears to go all the way back to the beginning of the push-down optimization in check-in 6df18e949d367629 in SQLite 3.8.11. check-in: ed14863d user: dan tags: trunk
19:21
Add missing initializer from the extension loader. Fix for check-in [d6d449978245b4fa]. check-in: 565d74c3 user: drh tags: trunk
15:52
Generic minor cleanups and docs in the OPFS async proxy. check-in: a4423ca2 user: stephan tags: trunk
15:46
Handle recovering databases with reserved bytes at the end of each page. check-in: 52d0235e user: dan tags: recover-extension
15:10
Fix a problem in the LIKE and GLOB operators that may occur when the character immediately following a "%" or "*" wildcard is U+80. Reported by forum post 61bf7ccbdf. check-in: 2da677c4 user: dan tags: trunk
13:26
Remove a resolved TODO comment. check-in: 32fd4ac3 user: stephan tags: trunk
02:00
Cancel IndexExpr objects when they go out of scope. check-in: 09635193 user: drh tags: index-expr-opt
2022-10-13
21:08
This experimental branch attempts to use columns for an index-on-expression in place of the expression that is being indexed. This particular check-in mostly works, but there are still issues. check-in: 2e8d4fd4 user: drh tags: index-expr-opt
20:06
Add tests for detecting page size of databases. check-in: 31f9e236 user: dan tags: recover-extension
16:48
Move the rest of testing1.js into tester1.js and eliminate the dependency on jaccwabyt_test.c. Extend the list of default config-related #defines in sqlite3-wasm.c and reorganize them for maintainability. check-in: 4e2a8aff user: stephan tags: trunk
15:09
Optimize the IS NULL and IS NOT NULL operators so that they avoid loading large strings or blobs off of disk if all it needs to know is whether or not the string or blob is NULL. check-in: cb943501 user: drh tags: trunk
14:54
Improvements to the description of the OPFLAG_TYPEOFARG option to OP_Column. Closed-Leaf check-in: 5e9c67ba user: drh tags: isnull-opt
14:35
Adjust the implementation of sqlite3VdbeTypeofColumn() to make it easier to test (and slightly smaller). check-in: 79fdd021 user: drh tags: isnull-opt
14:01
Fix a typo in the documentation of the OP_Column opcode. Forum post a2b5bd6d43. check-in: 043e76e6 user: drh tags: trunk
12:47
Proposed optimization to the IS NULL and NOT NULL operators that avoids loading the entire content of larges strings and BLOBs. Response to forum post 3c08d4715dc05b00. check-in: 45f17156 user: drh tags: isnull-opt
08:03
Port the first 180-odd unit tests from testing1.* into the new tester1.*. Fix a stray-keystroke-induced typo which broke pstack.allocChunks(). check-in: ef689e33 user: stephan tags: trunk
2022-10-12
18:40
Updates to the fuzzer query invariant checker - tracking changes made over in dbsqlfuzz. check-in: 4ca16a30 user: drh tags: trunk
18:30
Changes to Makefile.msc to fix the build on Windows following the previous merge. check-in: 368fa6b2 user: drh tags: trunk
18:13
Merge fiddle-opfs branch into trunk. check-in: 98f95494 user: stephan tags: trunk
16:35
Merge trunk into fiddle-opfs as a preliminary step for a clean merge in the other direction. Closed-Leaf check-in: 5e1848ce user: stephan tags: fiddle-opfs
15:54
Add initial infrastructure for setting up function/regression tests for the JS/WASM APIs. check-in: 7f5db982 user: stephan tags: fiddle-opfs
15:40
Minor doc cleanups and corrections in sqlite3-wasm.c check-in: 5144c122 user: stephan tags: fiddle-opfs
14:39
Correct mismatched H1 tags in test code. Minor CSS tweaks. check-in: 4d8eb90a user: stephan tags: fiddle-opfs
12:49
Add the sqlite3_value_encoding() interface. check-in: d6d44997 user: drh tags: trunk
2022-10-11
13:57
Enhance the OP_IsType opcode so that it is slightly smaller and faster and so that it works correctly with invalid serial-type codes 10 and 11. check-in: 846f863e user: drh tags: trunk
12:02
Improved the ability of the CLI to handle very long input lines. Potentially a fix for the bug reported by forum post fa4bb2941a. check-in: d0e107ee user: drh tags: trunk
2022-10-10
23:54
Enhance the "PRAGMA integrity_check" statement so that it verifies datatype constraints on non-STRICT tables: (1) Columns with TEXT affinity should not contain numeric values, and (2) columns with NUMERIC affinity should not contain TEXT values that could be converted into numbers. check-in: aa6e9086 user: drh tags: trunk
21:21
Code clean-up for the integrity_check enhancement. Closed-Leaf check-in: a1401731 user: drh tags: integrity_check_datatypes
19:38
Fix corner-case bugs in the new integrity_check logic. All tests pass now. check-in: dbab9d52 user: drh tags: integrity_check_datatypes
18:25
An attempt to enhance PRAGMA integrity check so that it does data type checking on non-STRICT tables. Specifically: (1) Columns with TEXT affinity should not contain numeric values, and (2) columns with numeric affinity should not contain text values that can be converted to numeric. check-in: 8b1e7f05 user: drh tags: integrity_check_datatypes
12:10
Improved detection of database corrupting when moving pages on an autovacuumed database when creating a new btree. dbsqlfuzz 9a55397eae13cec64aebf1fd35489c3a90bdaac5 check-in: 835e1912 user: drh tags: branch-3.39
12:02
Improved detection of database corrupting when moving pages on an autovacuumed database when creating a new btree. dbsqlfuzz 9a55397eae13cec64aebf1fd35489c3a90bdaac5 check-in: 327965bc user: drh tags: trunk
2022-10-09
17:08
Remove some extraneous debug output. check-in: 56ff4205 user: stephan tags: fiddle-opfs
17:03
Remove a now-unnecessary --cachesize flag for the OPFS sqlite3_vfs speedtest1-worker.html invocation. check-in: 08b516d6 user: stephan tags: fiddle-opfs
15:12
Minor cleaups in the post-init async phase of sqlite3 module initialization. check-in: 2e024a6b user: stephan tags: fiddle-opfs
13:35
Remove ext/wasm/kvvfs.make which was inadvertently resurrected in [92b500da70a3]. check-in: 2e7fa085 user: stephan tags: fiddle-opfs
13:33
Cherrypick [ea370b9b05f7ed7eaa] and part of [92b500da] into kv-vfs branch. Leaf check-in: 81263803 user: stephan tags: kv-vfs
13:26
Refactor kvvfs JS bits to make use of [ea370b9b05f7ed7eaa]. At main-thread startup, if kvvfs is available, replace the kvvfs I/O methods with JS impls. Checkin part 2 of 2, to account for cherrypicking [ea370b9b05f7ed7eaa] into the kv-vfs branch. check-in: a9047e02 user: stephan tags: fiddle-opfs
13:19
Refactor os_kv.c so that the kvvfs read/write/delete methods can be swapped out at runtime by JS implementations. This eliminates the kvvfs dependency on Emscripten. Checkin part 1 of 2, to account for cherrypicking. check-in: ea370b9b user: stephan tags: fiddle-opfs
11:42
Add -DSQLITE_OS_KV_OPTIONAL to speedtest1 flags for kvvfs testing purposes. check-in: 92b500da user: stephan tags: fiddle-opfs
2022-10-08
17:27
When casting an odd-length BLOB into a TEXT with encoding UTF16, omit the last byte. dbsqlfuzz c5df68b5bbdf6c9f3c1851e41e88f49ac05c9969 check-in: 1e2796b3 user: drh tags: trunk
2022-10-07
19:11
Fix a problem causing the seek-scan optimization to skip over valid rows that could occur when it is used with expressions of the form (a IN (?,?..) AND b >= ?). dbsqlfuzz ab1db6dc0efb04cba1cd3431ee6da4894fdc4520. check-in: b6be4ce6 user: drh tags: branch-3.39
18:57
Fix a problem causing the seek-scan optimization to skip over valid rows that could occur when it is used with expressions of the form (a IN (?,?..) AND b >= ?). dbsqlfuzz ab1db6dc0efb04cba1cd3431ee6da4894fdc4520. check-in: 63d9efe2 user: dan tags: trunk
18:06
Fix a problem that occurred when using a bloom filter to optimize an (ipk = ?) lookup in the case where the RHS of the expression is a TEXT value. First reported by forum post f61a8b7053. check-in: dc01d9d8 user: drh tags: branch-3.39
17:58
Increase the version number to 3.39.5. check-in: 8eb0048e user: drh tags: branch-3.39
15:55
Improved tracing output for showing all registers used by the OP_SeekGE opcode. This applies to debugging builds only. check-in: 0aa6dee7 user: drh tags: trunk
2022-10-06
21:00
Ensure the page-size, auto-vacuum and other settings are copied into the recovered database. check-in: 078520f2 user: dan tags: recover-extension
17:20
Add code to determine the database page-size by searching for well-formed pages. check-in: 0dbd0cce user: dan tags: recover-extension
14:10
Fix a problem that occurred when using a bloom filter to optimize an (ipk = ?) lookup in the case where the RHS of the expression is a TEXT value. First reported by forum post f61a8b7053. check-in: 8e14c351 user: dan tags: trunk
2022-10-05
16:58
Improve handling of corruption in the sqlite_schema table b-tree structure. check-in: 2be0dba1 user: dan tags: recover-extension
2022-10-04
19:47
Merge latest trunk changes. check-in: b0feecaa user: dan tags: recover-extension
19:43
Better handling for databases with corrupt headers. check-in: 17f68d80 user: dan tags: recover-extension
17:06
Replace time-based auto-unlock of opfs sync handles with lock acquisition/release via sqlite3_io_methods::xLock/xUnlock(). check-in: 2625b7cf user: stephan tags: fiddle-opfs
14:50
Attempt to clarify the operation of the xLock and xUnlock VFS I/O methods. Assert() statements added to prove that they behave as the documentation says. check-in: 3efa8112 user: drh tags: trunk
11:14
Tweaks to the opfs async wait/relinquish times. check-in: 35f33c23 user: stephan tags: fiddle-opfs
10:35
Change the name of the autoconf-generated configuration file from "config.h" to "sqlite_cfg.h" to work around a bug in a dependency checker, reported in a tweet from Joey Castillo. check-in: 897e187c user: drh tags: trunk
09:12
Update ext/wasm/api/README.md to account for recent changes. check-in: 9d488081 user: stephan tags: fiddle-opfs
09:12
OPFS async proxy: add a wait-and-retry policy to the get-sync-handle step to help account for cross-tab locking. check-in: 45c48c63 user: stephan tags: fiddle-opfs
08:58
Update the 'start in speedtest kvvfs' link in speedtest1-worker to account for recent changes. check-in: f4d5ba41 user: stephan tags: fiddle-opfs
01:21
Minor pstack doc update. check-in: 6b4fb7c4 user: stephan tags: fiddle-opfs
01:11
Minor cleanups and additions in sqlite3.capi.wasm.pstack. check-in: 97bd670d user: stephan tags: fiddle-opfs
00:54
Add a test/debug mechanism to shut down the OPFS async listener so that it can be inspected (it normally can't be because its tight event-listening loop ties up the thread) and then restarted. check-in: 7d0bcff4 user: stephan tags: fiddle-opfs
2022-10-03
23:13
Set default page cache size to 16mb in wasm builds. Fix an off-by-one counter in sqlite3_wasm_enum_json(). Minor coding style conformance tweaks. check-in: 72a9e589 user: stephan tags: fiddle-opfs
22:51
Add a --cachesize flag to the speedtest1-worker-opfs link in index.html because opfs is much faster with that. check-in: 5b8f8e33 user: stephan tags: fiddle-opfs
22:38
Minor JS doc updates and typo fixes. check-in: 3cfcc14d user: stephan tags: fiddle-opfs
18:23
In os_kv.c, every xWrite method call on a database should record the page size. check-in: e9411c74 user: drh tags: kv-vfs
18:07
Add configurable cache_size to batch-runner and speedtest1-worker. Add SQL tracing to demo-123.js just for demonstration's sake. check-in: 2ab06513 user: stephan tags: fiddle-opfs
18:05
Omit WAL mode from the wasm build. check-in: 88efe2a6 user: stephan tags: fiddle-opfs
15:22
Adjust the --help output for speedtest1 to clarify that the argument to the --cachesize option is in pages, not bytes. check-in: d7c2be6b user: drh tags: trunk
14:01
Merge the speedtest1 enhancements from trunk (and fiddle-opfs) into the kv-vfs branch. check-in: 3d350aa0 user: drh tags: kv-vfs
13:56
Copy all of the fiddle-opfs changes to speedtest1 into trunk. check-in: f3d31c99 user: drh tags: trunk
13:46
Resolve/remove a TODO. check-in: 2ea35fea user: stephan tags: fiddle-opfs
13:45
Add the --vfs option to speedtest1. check-in: aeb88402 user: drh tags: trunk
13:24
Merge the latest trunk enhancements into the kv-vfs branch. check-in: f4aefe63 user: drh tags: kv-vfs
13:03
Export sqlite3_trace_v2() to wasm and use it to ensure that the new per-VFS post-open SQL support in the DB ctor works. Default opfs vfs to journal_mode=truncate, as it's faster in that mode. Add 't' DB open-mode flag to enable SQL tracing to console.log(). check-in: 508f7f6d user: stephan tags: fiddle-opfs
11:42
Reimplement fiddle_reset_db() so that it works with all VFSes. check-in: 18462052 user: stephan tags: fiddle-opfs
11:33
Experimentally relinquish the OPFS VFS sync access handle when the db is idle and reacquire it on demand, the goal being to help alleviate cross-tab locking issues. check-in: 2703ac98 user: stephan tags: fiddle-opfs
11:23
Add journal=MODE to the list of supported URL flags for speedtest1-worker.html. check-in: 5c43e8d2 user: stephan tags: fiddle-opfs
09:21
OPFS VFS now lazily opens its sync access handle, as a step towards experimenting with relinquishing it during idle times to help avoid cross-tab and page-reload locking issues. check-in: a984e1ba user: stephan tags: fiddle-opfs
08:30
Partial revert of [a82e6faaa642] to remove the 'I' alias for 'j' wasm function signature letter. In hindsight, that change seems premature. check-in: dcd46af9 user: stephan tags: fiddle-opfs
08:21
Minor JS API tweaks prompted by documenting them. check-in: a82e6faa user: stephan tags: fiddle-opfs
2022-10-02
22:50
More cleanups in the UDF argument and result handling, in particular int64. Consolidate some duplicate int64/bigint range checking code. Expose the UDF low-level utilities (arg/result conversion) to client code. Add the sqlite3_context pointer to the JS-side UDF wrappers for API consistency. check-in: 10ab77af user: stephan tags: fiddle-opfs
20:13
Minor doc typo fix in sqlite.h.in. check-in: 372802aa user: stephan tags: trunk
20:08
JS: clean up create_function() wrapper and add support for create_window_function(). Eliminate an extraneous blob copy when a UDF returns a blob. Make use of newfound JS-fu to clean up how sqlite3ApiBootstrap() config is initialized. check-in: d3bad934 user: stephan tags: fiddle-opfs
18:47
js: implement a hand-written wrapper for sqlite3_create_function_v2() which converts, if necessary, JS-function-type args to WASM function wrappers. Replace DB.createFunction() impl with the new one. check-in: 435ab333 user: stephan tags: fiddle-opfs
03:14
Doc typo fixes. check-in: e528675d user: stephan tags: fiddle-opfs
03:11
More fleshing out of sqlite3.capi.wasm.pstack. check-in: eb572667 user: stephan tags: fiddle-opfs
01:48
Document the roles of the new (this past week) JS files added to the build process. check-in: 8b3bc731 user: stephan tags: fiddle-opfs
00:09
General internal cleanups in the oo1 API. check-in: f9db664f user: stephan tags: fiddle-opfs
2022-10-01
20:27
Performance optimization in sqlite3_prepare() (discovered while working on the stmt-cache branch). check-in: cd494240 user: drh tags: trunk
19:21
Correct fiddle db export breakage caused by a post-testing API change made in [1fa019c88dea]. check-in: e73cc44e user: stephan tags: fiddle-opfs
18:55
Pedantic constness tweak. check-in: c8a173cf user: stephan tags: fiddle-opfs
18:47
wasm: correct a memleak caused by a shadowed var in the previous checkin. Add a stack-like allocator, sqlite3.capi.wasm.pstack, as a faster way of managing short-lived pointers (like the one which got shadowed). check-in: 1fa019c8 user: stephan tags: fiddle-opfs
16:01
Fiddle: fix makefile dependency issue and duplicate inclusion of post-js.js. Reimplement db export using sqlite3_serialize(). check-in: 29db7de7 user: stephan tags: fiddle-opfs
13:45
Merge trunk into fiddle-opfs branch. check-in: 64ebcbe4 user: stephan tags: fiddle-opfs
13:38
Tweak sqlite3-worker1.js to be able to load either sqlite3.js or sqlite3-wasmfs.js, noting that the latter still does not load in a Worker because of an Emscripten loader bug. check-in: 000ef705 user: stephan tags: fiddle-opfs
13:28
Merge the Parse.prepFlags change from trunk. Leaf check-in: c8d77f39 user: drh tags: stmt-cache
13:17
Replace the Parse.disableVtab field with Parse.prepFlags for increased generality, a small size reduction, and a small performance increase. check-in: b7da0bcd user: drh tags: trunk
12:04
Note two wasm-related potential TODOs. check-in: 5636e828 user: stephan tags: fiddle-opfs
12:00
Merge the latest trunk enhancements into the stmt-cache branch. check-in: 7812aea6 user: drh tags: stmt-cache
2022-09-30
23:49
Remove a couple of weird quirks of the Worker1 and Promiser APIs. The Worker1 (now undocumented) unlink capability needs to be reevaluated to work equivalently for all storage backends. check-in: 9f2b331a user: stephan tags: fiddle-opfs
23:02
Tweaks to the Worker1 and Promiser APIs prompted by documenting them. check-in: c68b9aa1 user: stephan tags: fiddle-opfs
22:40
Remove one of the NEVER() macros added by [5166acf3f0040459] because it is reachable after all. check-in: bd8ae5fe user: drh tags: trunk
20:59
New test cases in fuzzdata8.db check-in: aa367a3c user: drh tags: trunk
20:53
Fix a bug in the demoDelete fix from [d76a301e22e05722]. check-in: 7e761a02 user: drh tags: trunk
20:48
Add NEVER() to two error-detection tests that were made unreachable by the previous check-in. check-in: 5166acf3 user: drh tags: trunk
20:35
Add JS wrapper for sqlite3_exec() which knows how to handle a JS callback. Add some console.error() reporting of module-load failures, as they otherwise often get silently swallowed up by the loader's mechanisms. Add 'flexible-string' JS-to-WASM argument converter which performs more X-to-string conversions than the 'string' arg converter does. check-in: 96818aa8 user: stephan tags: fiddle-opfs
20:15
Better handle a case of database corruption where a b-tree page is one of its own ancestor pages. check-in: a24e4680 user: dan tags: trunk
16:49
Add sqlite3.version object. Add more state to the Worker #1 config-get response, including sqlite3.version. check-in: 711f458d user: stephan tags: fiddle-opfs
15:46
Add oo1.JsStorageDb.clearStorage/storageSize() methods, copies of capi.sqlite3_web_kvvfs_clear/size(). check-in: 1e09efe7 user: stephan tags: fiddle-opfs
15:24
batch-runner.js: force WebSQL batches to not abort for a failed statement (necessary for apples-to-apples-ish benchmark comparisons). check-in: 60f0c5cb user: stephan tags: fiddle-opfs
14:35
Improvements to the "demoDelete" method in the demovfs, suggested by forum post cad18961c2. check-in: d76a301e user: drh tags: trunk
14:14
Merge recent trunk enhancements into the reuse-schema branch. check-in: b119a5e8 user: drh tags: reuse-schema
14:04
Merge the latest trunk enhancements into the begin-concurrent-pnu-wal2 branch. check-in: 68a61513 user: drh tags: begin-concurrent-pnu-wal2
13:54
Merge recent trunk enhancements into the wal2 branch. check-in: c22c7c87 user: drh tags: wal2
13:42
Merge the latest trunk changes into the begin-concurrent-report branch check-in: 4d6141f3 user: drh tags: begin-concurrent-report
13:29
Merge all recent trunk enhancements into the begin-concurrent branch. check-in: ba2539f6 user: drh tags: begin-concurrent
12:27
Merge version 3.39.4 changes into the reuse-schema-3.39 branch. Leaf check-in: 81025928 user: drh tags: reuse-schema-3.39