Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1139 commits
Select commit Hold shift + click to select a range
cd889c7
Fix an OOM-handling problem affecting locale=1 fts5 tables.
Sep 9, 2024
38b26d8
Add the ability for sqlite_dbpage to truncate the database file by wr…
Sep 10, 2024
7a41b48
Alternative implementation of fts5 locale=1 feature that allows blobs…
Sep 10, 2024
923423c
Fix a test in fts3corrupt4.test that would fail if SQLITE_ENABLE_FTS5…
Sep 10, 2024
a9c8f7c
Initial infrastructure for the sqlite3-rsync utility. Prototype only.
Sep 10, 2024
27119c5
Remove a stray "breakpoint" from a test script.
Sep 10, 2024
0c8144a
Alternative implementation of fts5 locale=1 feature that allows blobs…
Sep 10, 2024
79254dc
Improved SSH infrastructure. The foundation is now in place to begin…
Sep 10, 2024
2a4a4ec
Disable the debug-use-only functions sqlite3_mutex_held() and
Sep 11, 2024
dc3bec3
Progress on the sqlite3-rsync utility. This is an incremental check-…
Sep 11, 2024
f1fb5ce
Improved debugging output.
Sep 12, 2024
165daef
Add sha1() functions to the CLI. Fix sha1b() such that it actually r…
Sep 12, 2024
f7c96ee
Add a protocol version number to the first message, and give the two …
Sep 12, 2024
0b8c8c8
Pass the names of both the origin and the replica databases to the re…
Sep 12, 2024
6df1de1
Improved --commcheck. Add the infoMsg() function which is useful for
Sep 12, 2024
40b8318
Replica must be in writable_schema mode.
Sep 12, 2024
6677cfe
Port some of the shell's CLI flag-handling code into sqlite3-rsync to…
Sep 12, 2024
5735921
Add RSYNC_OPT to the sqlite3-rsync build flags.
Sep 12, 2024
74c8e23
Enhancement to the "showdb" utility such that the "ptrmap" command shows
Sep 12, 2024
5c6dc45
Better initialization of new database files in sqlite3-rsync.
Sep 12, 2024
e92f8e5
Further enhancement to PTRMAP display in showdb: Show the details of…
Sep 13, 2024
d0d3182
Change the hash algorithm from SHA1 to a 6-round KeccakF1600 with a rate
Sep 13, 2024
d61d934
Preveious check-in was actually doing an 8-round KeccakF1600. This one
Sep 13, 2024
7316b6c
Improved informational output from sqlite3-rsync.
Sep 13, 2024
6e8b3d3
Merge latest trunk changes, including the changes to the fts5 locale=…
Sep 13, 2024
99f50dd
Close the db as sqlite3_analyzer exits. (See [forum:af384c2315d9718a|…
Sep 13, 2024
8550e4a
Fix harmless compiler warning on Windows.
Sep 13, 2024
0218424
Require that the contentless_unindexed=1 option be specified before s…
Sep 13, 2024
762946b
Bug fix in the enhanced sqlite_dbpage for when truncating two or more
Sep 13, 2024
33f0a3e
Merge sqlite_dbpage fixes into the sqlite3-rsync branch.
Sep 13, 2024
2b30518
Make the output from sqlite3-rsync with a single -v option the same a…
Sep 14, 2024
9d3047b
Improved error messages coming out of sqlite3-rsync.
Sep 14, 2024
15e05ea
Add the --logfile FILE option for debugging.
Sep 14, 2024
df9b488
Always show the -v traffic message even if there are multiple -v opti…
Sep 14, 2024
7154803
New debugging options: --logfile, --errorfile, --remote-errorfile.
Sep 14, 2024
3d56d59
Add the --version option.
Sep 14, 2024
11e1def
CLI arg handling robustness improvements.
Sep 14, 2024
dbff02a
Enhancements to sqlite_dbpage() so that it accepts INSERT statements …
Sep 14, 2024
d87a4f8
Merge subsequent changes to sqlite-rsync that were accidentally misse…
Sep 14, 2024
a95620c
Provide more opportunity for the remote side in sqlite3-rsync to send…
Sep 15, 2024
f8cafd7
Improved error message in sqlite3-rsync if the SQL statement for ORIG…
Sep 16, 2024
d70fbff
In sqlite3-rsync,
Sep 16, 2024
61e3067
Cleanup the sqlite3-rsync executable as part of "make clean"
Sep 16, 2024
3b204ec
Fix a typo in an error message in sqlite3-rsync.
Sep 16, 2024
ff60709
In sqlite3-rsync, do not allow the '/' character to appear anywhere i…
Sep 17, 2024
87dce45
Add assert() statements to some of the sqlite3_bind() APIs that help …
Sep 17, 2024
eaa50b8
Fix harmless static analyzer warning in sqlite3-rsync.
Sep 17, 2024
38b31a9
Fix the preupdate hook so that it works when the "old.*" row has a co…
Sep 18, 2024
ae2a4ac
Fix sqlite3-rsync so that it recognizes drive-letters on the front of…
Sep 18, 2024
704561f
Fix the preupdate hook so that it works when the "old.*" row has a co…
Sep 18, 2024
0e8cbd5
Improvements to the scope of valueFromFunction().
Sep 18, 2024
8513eb6
Remove a stray newline.
Sep 19, 2024
f8305e4
Improved rebustness to malformed UTF-16 inputs to sqlite3_prepare16_v…
Sep 19, 2024
db467f5
Fix harmless compiler warning in the vfstrace extension.
Sep 19, 2024
7f0e0c7
New assert()s to help verify union access. No logic changes. Testin…
Sep 20, 2024
8a894cd
Fix comment typo in the fileio.c extension. No changes to code.
Sep 20, 2024
38f2c5f
If the database filename pointer passed to sqlite3_open(), change it
Sep 21, 2024
5e419c1
Add the run-fuzzcheck target to the MSVC makefile.
Sep 21, 2024
d69b424
Merge current trunk into this branch.
Sep 23, 2024
253695c
Fix a couple of problems with the sessions streaming interfaces.
Sep 23, 2024
1d9db01
CLI uses only lib-c for I/O on Windows. No calls to Win32. Works on…
Sep 23, 2024
69cce89
wasm: replace much of the eval makefile spaghetti with equivalent cod…
Sep 23, 2024
6ed21e8
Typo fix in makefile comments.
Sep 23, 2024
415acd0
In the CLI, when displaying results in a columnar format, take into a…
Sep 24, 2024
405ae97
Further wasm build cleanups and tweaks. No functional changes.
Sep 24, 2024
7d24e6b
Remove an ALWAYS() that can sometimes be false, with wildly incorrect…
Sep 24, 2024
118ac6a
Always use fputws() for output to a Windows command-line prompt.
Sep 24, 2024
4e34558
Use _wfopen() instead of fopen() on Windows in the CLI.
Sep 24, 2024
3c90b86
Avoid an error in sqlite3expert if the database has existing indexes …
Sep 24, 2024
88c43ce
Wasm build cleanups. Fix the wasm speedtest1 builds broken by yesterd…
Sep 24, 2024
d2917d9
Minor tweaks in mkwasmbuilds.c.
Sep 24, 2024
57b32ef
Add the sqlite3_stdio.h library for Windows console I/O.
Sep 24, 2024
29057f3
Fix a memory leak in sqlite3expert.c introduced by [f1d76c86].
Sep 24, 2024
0be2dd9
Get output redirection working again in the CLI.
Sep 24, 2024
a55901a
Port sqldiff over to use sqlite3_stdio.
Sep 24, 2024
6ba175f
Port sqlite3_analyzer.exe to use sqlite3_stdio.
Sep 24, 2024
63558ea
Get fiddle working again on this branch.
Sep 24, 2024
697c3fb
Fix error messages in the shell.
Sep 24, 2024
18e2ace
Fix over-length lines in the shell source code.
Sep 24, 2024
613c2ee
Minor wasmfs speedtest1 build tweaks. Disable one wasmfs demo which w…
Sep 24, 2024
f4382b2
Improvements to comments on data structures and subroutines.
Sep 25, 2024
8cd30e3
In the CLI, for columnar output formats, try to account for the prese…
Sep 25, 2024
8f1f9ef
Merge trunk enhancements, and especially the zero- and double-width c…
Sep 25, 2024
38b4158
Use sqlite3_fgets() instead of fgetc() to end the startup debugging p…
Sep 25, 2024
853520d
Fix stray fputs() calls in the CLI.
Sep 25, 2024
777c35d
Prevent regular DELETE and UPDATE statements from running against con…
Sep 25, 2024
9e59c06
Always include a UTF-8 BOM at the beginning of the output CSV when using
Sep 25, 2024
2a9254c
Add the "www" output mode that include <table> in the HTML output.
Sep 25, 2024
62d9691
Improvements to ".www" and ".output -w" so that text that is not part of
Sep 25, 2024
95f35b6
Redirect timer output just like any other text.
Sep 25, 2024
7119a6c
Have the zipfile and fileio extensions use sqlite3_stdio.c when it is
Sep 25, 2024
878db7b
Add the --plain option to the ".www" dot-command.
Sep 25, 2024
66b3ed3
Always show HTML table headers in ".www" output mode.
Sep 25, 2024
b7ceffd
Fix shell test cases to account for recent additions to the ".help" o…
Sep 26, 2024
2fb0553
Clarification of the meaning of the nByte parameter to sqlite3_prepar…
Sep 26, 2024
d0720ee
When possible, avoid taking wal file read-lock 0 in sqlite3_snapshot_…
Sep 26, 2024
2c77d51
Resolve a harmless compiler warning in QNX builds.
Sep 26, 2024
2b041fb
Provide SQLITE_U8TEXT_ONLY and SQLITE_U8TEXT_STDIO compile-time options
Sep 26, 2024
74194f1
Add the ext/misc/sqlite3_stdio.c portability interface and incorporat…
Sep 26, 2024
c94e4a7
Fix a harmless compiler warning in the CLI.
Sep 26, 2024
bcd6d5d
Allow UPDATEs of unindexed columns in fts5 contentless_unindexed=1 ta…
Sep 27, 2024
0992764
Merge trunk changes into this branch.
Sep 27, 2024
c707b2e
Squash sign-comparison warnings reported in [forum:5e605a763a65c3f8 |…
Sep 27, 2024
08f1ba0
Fix a problem with UPDATEs that do not modify all UNINDEXED columns o…
Sep 27, 2024
43eafb7
Fix a problem with UPDATE statements that modify the rowid of content…
Sep 27, 2024
58b4a8f
Extra test cases for UPDATEs of contentless tables.
Sep 27, 2024
add1947
Fix fiddle build broken by recent build-level reworks. Remove a stale…
Sep 27, 2024
3c58039
Merge wasm-build-rework branch into trunk. Summary: 1) add optional b…
Sep 28, 2024
fabae7a
Minor makefile doc fixes. No functional changes.
Sep 28, 2024
51fb37d
For wasm builds: automatically use higher optimization (but slower bu…
Sep 28, 2024
d4c735d
Ensure that the temporary build dir is mkdir'd by wasm deps which dep…
Sep 28, 2024
6a83369
wasm: move the makefile-eval-generated fiddle rules into mkwasmbuilds…
Sep 28, 2024
5ec9ed7
Complete a line of documentation which was interrupted mid-sentence.
Sep 28, 2024
54e35b5
Add tests for DELETE on contentless, contentless-delete and contentle…
Sep 28, 2024
33669ef
Add another missing mkdir to the wasm build process.
Sep 28, 2024
dcf757c
Merge trunk changes into this branch.
Sep 28, 2024
54fd01c
Fix the CLI so that the --bom option only outputs a single BOM, not two.
Sep 28, 2024
d5838ea
In fts5, avoid starting a new merge of level L if there exists alread…
Sep 30, 2024
cacef23
Fix the character width tables for the CLI such that all unicode code…
Sep 30, 2024
ed94e0e
Add an #if'd-out block to sqlite3-wasm.c mentioning the LONGDOUBLE_TY…
Oct 1, 2024
dac22f6
Add compile-time option -DSQLITE_USE_LONG_DOUBLE=0 to omit all attemp…
Oct 1, 2024
c9c1b65
Use the new SQLITE_USE_LONG_DOUBLE to disable long-double support in …
Oct 1, 2024
1f2faa6
Another comment about the LONGDOUBLE wasm topic. No code changes.
Oct 1, 2024
7151010
New #ifdefs to omit code that is unused when SQLITE_USE_LONG DOUBLE i…
Oct 1, 2024
e8b2c92
Remove all code that makes use of the C-language "long double" datatype.
Oct 1, 2024
f9d1141
Update docs for sqlite3_snapshot_get().
Oct 2, 2024
512ad53
Merge latest trunk changes into this branch.
Oct 2, 2024
dceffee
Ensure that if sqlite3_snapshot_get() is called immediately after a "…
Oct 2, 2024
010f9f8
Remove a few more traces of long double from the code.
Oct 2, 2024
92e7157
Remove all use of the "long double" data type from SQLite, as hardwar…
Oct 2, 2024
3b3f230
Adjust the new truncation behavior of sqlite_dbpage(N,null) such that…
Oct 2, 2024
c5c3cbc
Add the contentless_unindexed=1 option to fts5. This causes the value…
Oct 2, 2024
44b8c37
Fix a typo in fts5delete.test.
Oct 2, 2024
46a62af
Modify the behavior of sqlite_dbpage so that the null-INSERT that tru…
Oct 2, 2024
c51dccb
Fix missing return value from the new dbpageRollbackTo() callback.
Oct 3, 2024
1e2834d
Fix to the previous: The dbpageRollbackTo() method should return SQL…
Oct 3, 2024
51bbf0c
Unconditionally include <ctype.h> in sqliteInt.h, even in build…
Oct 3, 2024
c8c95f5
Fix typo in documentation for SQLITE_SUBTYPE. No code changes.
Oct 4, 2024
706fdee
Add ext/wasm to the top-level clean/distclean rules in such a way tha…
Oct 5, 2024
c857b9e
Experimental change to allow expressions with subtypes to be read fro…
Oct 5, 2024
d564bdb
Allow expressions with subtypes to be read from indexes unless they a…
Oct 5, 2024
2c72c55
Back out [2f7eab381e16] because the stderr output on systems without …
Oct 5, 2024
74672ac
New SQL function for testing/debugging use only: parseuri().
Oct 6, 2024
fba24d3
Origin should not send content for the lock-byte page to the replica, in
Oct 6, 2024
29f9764
Fix an assert() failure in "PRAGMA integrity_check" that could occur …
Oct 7, 2024
ce527f2
Fix handling of U+fffd in the LIKE optimization.
Oct 7, 2024
2813eb3
Add the undocumented test/debug function parseuri(), useful for fuzzing.
Oct 7, 2024
5642338
Merge the latest trunk enhancements into the indexed-subtype-expr bra…
Oct 7, 2024
f7f78a6
The (undocumented) subtype() SQL function should have the SQLITE_SUBT…
Oct 7, 2024
ddc764b
Add a NEVER() to an unreachable branch in the new indexed-subtype logic.
Oct 7, 2024
7998b88
Add an ALWAYS() on a branch in the new indexed-subtype logic.
Oct 8, 2024
eaefd9c
Allow expressions with subtypes to be read from indexes unless they are
Oct 8, 2024
dd2deec
Fix the .crnl command in the shell so that it does not get undone by
Oct 8, 2024
ab85d9a
Additional improvements to the behavior of ".crnl" in the CLI. The d…
Oct 8, 2024
7f5a10e
Enable the ".crnl" command on Windows builds of the CLI even if the
Oct 8, 2024
48d1104
Add a few missing $(BEXE) suffixes on makefile targets which are appa…
Oct 9, 2024
4b0a2e0
Improved handling of unicode characters in the LIKE optimization.
Oct 9, 2024
50bb0aa
Changes to the TCL extension and how it is built, suggested by Jan Ni…
Oct 9, 2024
97b0610
Make it so that the TCL extension installed using "make install" has the
Oct 9, 2024
492925a
Change the makefile to prefer the use of tclsh9.0 if it is available.
Oct 9, 2024
48dd75d
Fix the xCheckReservedLock() method of the flock VFS to avoid droppin…
Oct 9, 2024
8f97647
Fix the xCheckReservedLock() method of the flock VFS to avoid droppin…
Oct 9, 2024
da1bf77
Fix a problem in the generate_series() extension introduced by
Oct 9, 2024
94fe1ad
Add quotes around $(CC) in tclextension-related targets so that a CC …
Oct 9, 2024
50ec92f
Improvements to Makefile.msc: (1) Attempt to find sane values for key
Oct 9, 2024
f553588
Adjustments to the Makefile.msc to get static builds of sqlite3_analy…
Oct 10, 2024
7b179a3
For compatibility, allow the TCL interfact to continue working with T…
Oct 10, 2024
64366ae
Improvements to TCL9 support. Fixes to the Makefiles so that the "in…
Oct 10, 2024
0b453b3
Avoid undesirable NL to CRLF translation when doing binary output to the
Oct 11, 2024
b23cce9
Fix the CSV output mode in the CLI such that the line ending is NL by…
Oct 11, 2024
17408fb
An improved method for statically linking sqlite3_analyzer.exe using …
Oct 11, 2024
ed3cf6e
Update the autoconf Makefile.msc
Oct 11, 2024
4723539
Avoid running some new tests in lock5.test with the inmemory_journal …
Oct 11, 2024
b8d18f3
Update the README for the TEA extension in the amalgamation tarball.
Oct 11, 2024
2623a19
Improved instructions in the TEA readme for building the TCL extension.
Oct 11, 2024
c85c102
Add two missing $(BEXE) suffixes, as reported in [forum:9ad28680d394a…
Oct 11, 2024
ea7ea76
Avoid a segfault when calling src-verify without any arguments.
Oct 11, 2024
4dfc4dc
Add the doc/compile-for-unix.md document.
Oct 11, 2024
4859bc9
Update comments in ext/misc/sqlite3_stdio.c to reflect the latest enh…
Oct 11, 2024
589ce93
Additional clarification in the comments to sqlite3_stdio.c. No changes
Oct 11, 2024
d5a780f
Allow the ".expert" command to analyze statements that use built-in v…
Oct 12, 2024
629e1bf
Ensure that test file ext/expert/expert1.test works with non-fts5 bui…
Oct 12, 2024
a4ff06f
Fix a problem with the ".expert" command and queries that use virtual…
Oct 12, 2024
72fea11
Fix a harmless compiler warning in the CLI.
Oct 14, 2024
863fcdc
Be consistent about using "CRLF" instead of "CRNL".
Oct 14, 2024
39b9249
The CLI now default to ".crlf ON" in Windows. CSV output always uses…
Oct 14, 2024
5899d9c
There is no need to DELETE the content of sqlite_sequence in the outp…
Oct 14, 2024
4924847
Avoid the possibility of buffer overrun in the READ_UTF8 macro by using
Oct 14, 2024
dcaae8f
Cross-reference the sqlite3_backup_init() function to the documentati…
Oct 15, 2024
1b59f37
Fix a typo in a comment used to generate document. No code changes.
Oct 15, 2024
45b4dca
Fix the "tool-zip" makefile target so that it includes sqlite3-rsync.
Oct 15, 2024
87cb97b
Fix harmless compiler warning in flockCheckReservedLock().
Oct 15, 2024
9c5fb63
In the unix Makefile, strip compiled binaries prior to adding them to…
Oct 16, 2024
f578ce1
Change the name of the new utility program from sqlite3-rsync to
Oct 16, 2024
88282af
Add has_tclconfig to the tidy makefile target.
Oct 16, 2024
6031de9
When calling OpfsSAHPoolUtil.removeVfs(), ensure that the cached resu…
Oct 17, 2024
cab9574
Ensure that the OPFS VFS's xOpen() writes back the read-only flag to …
Oct 17, 2024
4f5eba1
Attempt to get the TEA builder in the amalgamation-autoconf tarball w…
Oct 17, 2024
bcdb28b
Improved README.txt file in the amalgamation-autoconf tarball.
Oct 17, 2024
a9e4ebc
Fix a typo in compile-for-unix.md. Simplify hyperlinks in the compil…
Oct 17, 2024
fe15ed4
Fixes from code inspection:
Oct 17, 2024
dd719be
Fix obsolete M4 macro in the configure script for the TEA extension w…
Oct 17, 2024
c2e400a
New assert() statements to validate OP_OpenEphemeral logic.
Oct 18, 2024
d8712c6
Fix typo in the README.txt for the amalgamation autoconf tarball.
Oct 18, 2024
f9a02e1
Minor enhancements to the compile-for-windows.md document.
Oct 18, 2024
90675da
Remove a not-strictly-necessary 'undefine' invocation from ext/wasm/G…
Oct 18, 2024
d11a3fd
Remove the unused dbfuzz2-asan/msan makefile targets. Fix a comment t…
Oct 18, 2024
b94228a
Fix a var reference typo in SQLTester.mjs.
Oct 18, 2024
23caead
Fix three bugs in SQLTester.mjs which caused --tableresult tests, esc…
Oct 18, 2024
a525d63
Minor doc cleanups in SQLTester.mjs and confirm that the tests pass w…
Oct 18, 2024
78b6c17
Fix the sqlite3_rsync utility so that it is able to synchronize a dat…
Oct 19, 2024
afb88c5
Remove unnecessary VACUUMs from the previous check-in to sqlite3_rsync.
Oct 19, 2024
624cb96
An assortment of comment typo fixes discovered by aspell. Add several…
Oct 19, 2024
4da7617
Move the #include of hwtime.h from the bottom of util.c to the top of
Oct 19, 2024
885fad8
Add missing $(TEXE) suffixes in the tool-zip makefile target.
Oct 19, 2024
72c5b9b
Add sqlite3_rsync to the docs at the top of mktoolzip.tcl. No code ch…
Oct 19, 2024
b74c788
Fix another problem with ".expert" and virtual tables. [forum:/forump…
Oct 20, 2024
32d2558
Avoid using LIKE in sqlite3expert.c, in case "PRAGMA case_sensitive_l…
Oct 21, 2024
e2f294a
Add a case to testrunner.tcl so that mdevtest can run on openbsd.
Oct 21, 2024
f5fb820
Version 3.47.0
Oct 21, 2024
f0e3e5a
Add missing ZERO_ARGUMENT_GENERATE_SERIES checks to ext/misc/series.c.
Oct 24, 2024
e72a8a4
Patch sqlite3_rsync.c to disable undesirable automatic line ending
Oct 24, 2024
a40e6e9
Replace 3 instances of the == 'test' shell command operator with =, a…
Oct 30, 2024
76b77c6
Fix two mismatched uses of malloc() and sqlite3_free() in sqlite3_std…
Nov 4, 2024
9e36a09
Have the xBestIndex method of the generate_series virtual table ignor…
Nov 5, 2024
b24fc84
Fix an OOB write that could occur in fts3 when dealing with corrupt d…
Nov 7, 2024
e2a6fee
Fix a case in fts3 where a corrupt database record was not being hand…
Nov 9, 2024
b03592c
Add DESTDIR support to the tclextension-install target, via [67a3ca0c…
Nov 16, 2024
375552f
Handle DESTDIR at an earlier phase in buildtclext.tcl to account for …
Nov 16, 2024
46e4155
buildtclext.tcl: add docs explaining the DESTDIR check and break out …
Nov 17, 2024
cdea0eb
Do not report an sqlite3_error_offset() for errors that occur inside of
Nov 20, 2024
7330460
If a subquery is copied and then changes are made to the copy, be sure
Nov 20, 2024
161de89
Cherrypick a couple of changes requested by Mozilla onto the 3.47 bra…
Nov 20, 2024
6eb7764
Bump the version number to 3.47.1
Nov 22, 2024
993632c
Document that -nofollow does not work on Windows. Fix Windows symlink
Nov 22, 2024
b423178
Fix some harmless scanbuild warnings in the shell.
Nov 22, 2024
10f1e4c
Remove a flaky JS test which has a result depending on unrepredictabl…
Nov 22, 2024
5eea255
Fix two problems with argument expansion in sqlite-tclsh on Windows.
Nov 22, 2024
d088df5
Fix a problem handling OOM errors in fts3 that could occur when parsi…
Nov 22, 2024
0592ffe
Version 3.47.1
Nov 25, 2024
1c2023d
Fix the percentile extension so that works as an independent extensio…
Dec 1, 2024
81c31ff
Add the SVG version of the SQLite logo.
Dec 2, 2024
fb90add
Ensure that the query flattener does not change an ON clause term to …
Dec 2, 2024
9a78d47
On x64 hardware, round-trip uint64_t→double→uint64_t conver…
Dec 7, 2024
ae1e169
Increment the version number to 3.47.2
Dec 7, 2024
5a0c345
A cleaner and more robust solution to the floating-point conversion p…
Dec 7, 2024
abfcdb6
Yet another iteration of the solution to the floating-point conversion
Dec 7, 2024
262de1b
Version 3.47.2
Dec 7, 2024
87058cc
Update SQLite to 3.47.2
azizcodesthings May 18, 2026
d68ee72
Fix SQLite 3.47.2 extension CI checks
azizcodesthings May 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16,116 changes: 10,466 additions & 5,650 deletions libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.c

Large diffs are not rendered by default.

310 changes: 270 additions & 40 deletions libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.h

Large diffs are not rendered by default.

124 changes: 88 additions & 36 deletions libsql-ffi/bundled/bindings/bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ extern "C" {
) -> ::std::os::raw::c_int;
}

pub const __GNUC_VA_LIST: i32 = 1;
pub const SQLITE_VERSION: &[u8; 7] = b"3.45.1\0";
pub const SQLITE_VERSION_NUMBER: i32 = 3045001;
pub const SQLITE_VERSION: &[u8; 7] = b"3.47.2\0";
pub const SQLITE_VERSION_NUMBER: i32 = 3047002;
pub const SQLITE_SOURCE_ID: &[u8; 85] =
b"2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257ccalt1\0";
b"2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c1468alt1\0";
pub const LIBSQL_VERSION: &[u8; 6] = b"0.2.3\0";
pub const SQLITE_OK: i32 = 0;
pub const SQLITE_ERROR: i32 = 1;
Expand Down Expand Up @@ -175,6 +174,7 @@ pub const SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN: i32 = 2048;
pub const SQLITE_IOCAP_POWERSAFE_OVERWRITE: i32 = 4096;
pub const SQLITE_IOCAP_IMMUTABLE: i32 = 8192;
pub const SQLITE_IOCAP_BATCH_ATOMIC: i32 = 16384;
pub const SQLITE_IOCAP_SUBPAGE_READ: i32 = 32768;
pub const SQLITE_LOCK_NONE: i32 = 0;
pub const SQLITE_LOCK_SHARED: i32 = 1;
pub const SQLITE_LOCK_RESERVED: i32 = 2;
Expand Down Expand Up @@ -264,6 +264,7 @@ pub const SQLITE_CONFIG_STMTJRNL_SPILL: i32 = 26;
pub const SQLITE_CONFIG_SMALL_MALLOC: i32 = 27;
pub const SQLITE_CONFIG_SORTERREF_SIZE: i32 = 28;
pub const SQLITE_CONFIG_MEMDB_MAXSIZE: i32 = 29;
pub const SQLITE_CONFIG_ROWID_IN_VIEW: i32 = 30;
pub const SQLITE_DBCONFIG_MAINDBNAME: i32 = 1000;
pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001;
pub const SQLITE_DBCONFIG_ENABLE_FKEY: i32 = 1002;
Expand Down Expand Up @@ -357,12 +358,14 @@ pub const SQLITE_DIRECTONLY: i32 = 524288;
pub const SQLITE_SUBTYPE: i32 = 1048576;
pub const SQLITE_INNOCUOUS: i32 = 2097152;
pub const SQLITE_RESULT_SUBTYPE: i32 = 16777216;
pub const SQLITE_SELFORDER1: i32 = 33554432;
pub const SQLITE_WIN32_DATA_DIRECTORY_TYPE: i32 = 1;
pub const SQLITE_WIN32_TEMP_DIRECTORY_TYPE: i32 = 2;
pub const SQLITE_TXN_NONE: i32 = 0;
pub const SQLITE_TXN_READ: i32 = 1;
pub const SQLITE_TXN_WRITE: i32 = 2;
pub const SQLITE_INDEX_SCAN_UNIQUE: i32 = 1;
pub const SQLITE_INDEX_SCAN_HEX: i32 = 2;
pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2;
pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4;
pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8;
Expand Down Expand Up @@ -412,6 +415,7 @@ pub const SQLITE_TESTCTRL_RESERVE: i32 = 14;
pub const SQLITE_TESTCTRL_JSON_SELFCHECK: i32 = 14;
pub const SQLITE_TESTCTRL_OPTIMIZATIONS: i32 = 15;
pub const SQLITE_TESTCTRL_ISKEYWORD: i32 = 16;
pub const SQLITE_TESTCTRL_GETOPT: i32 = 16;
pub const SQLITE_TESTCTRL_SCRATCHMALLOC: i32 = 17;
pub const SQLITE_TESTCTRL_INTERNAL_FUNCTIONS: i32 = 17;
pub const SQLITE_TESTCTRL_LOCALTIME_FAULT: i32 = 18;
Expand Down Expand Up @@ -502,8 +506,6 @@ pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4;
pub const FTS5_TOKENIZE_AUX: i32 = 8;
pub const FTS5_TOKEN_COLOCATED: i32 = 1;
pub const WAL_SAVEPOINT_NDATA: i32 = 4;
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
extern "C" {
pub static sqlite3_version: [::std::os::raw::c_char; 0usize];
}
Expand Down Expand Up @@ -937,12 +939,6 @@ extern "C" {
pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...)
-> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn sqlite3_vmprintf(
arg1: *const ::std::os::raw::c_char,
arg2: *mut __va_list_tag,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn sqlite3_snprintf(
arg1: ::std::os::raw::c_int,
Expand All @@ -951,14 +947,6 @@ extern "C" {
...
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn sqlite3_vsnprintf(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_char,
arg3: *const ::std::os::raw::c_char,
arg4: *mut __va_list_tag,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void;
}
Expand Down Expand Up @@ -2502,13 +2490,6 @@ extern "C" {
extern "C" {
pub fn sqlite3_str_appendf(arg1: *mut sqlite3_str, zFormat: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn sqlite3_str_vappendf(
arg1: *mut sqlite3_str,
zFormat: *const ::std::os::raw::c_char,
arg2: *mut __va_list_tag,
);
}
extern "C" {
pub fn sqlite3_str_append(
arg1: *mut sqlite3_str,
Expand Down Expand Up @@ -3188,6 +3169,34 @@ pub struct Fts5ExtensionApi {
arg3: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub xColumnLocale: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut Fts5Context,
iCol: ::std::os::raw::c_int,
pz: *mut *const ::std::os::raw::c_char,
pn: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub xTokenize_v2: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut Fts5Context,
pText: *const ::std::os::raw::c_char,
nText: ::std::os::raw::c_int,
pLocale: *const ::std::os::raw::c_char,
nLocale: ::std::os::raw::c_int,
pCtx: *mut ::std::os::raw::c_void,
xToken: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_char,
arg4: ::std::os::raw::c_int,
arg5: ::std::os::raw::c_int,
arg6: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int,
>,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand All @@ -3196,6 +3205,41 @@ pub struct Fts5Tokenizer {
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fts5_tokenizer_v2 {
pub iVersion: ::std::os::raw::c_int,
pub xCreate: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
azArg: *mut *const ::std::os::raw::c_char,
nArg: ::std::os::raw::c_int,
ppOut: *mut *mut Fts5Tokenizer,
) -> ::std::os::raw::c_int,
>,
pub xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Tokenizer)>,
pub xTokenize: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut Fts5Tokenizer,
pCtx: *mut ::std::os::raw::c_void,
flags: ::std::os::raw::c_int,
pText: *const ::std::os::raw::c_char,
nText: ::std::os::raw::c_int,
pLocale: *const ::std::os::raw::c_char,
nLocale: ::std::os::raw::c_int,
xToken: ::std::option::Option<
unsafe extern "C" fn(
pCtx: *mut ::std::os::raw::c_void,
tflags: ::std::os::raw::c_int,
pToken: *const ::std::os::raw::c_char,
nToken: ::std::os::raw::c_int,
iStart: ::std::os::raw::c_int,
iEnd: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int,
>,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fts5_tokenizer {
pub xCreate: ::std::option::Option<
unsafe extern "C" fn(
Expand Down Expand Up @@ -3256,6 +3300,23 @@ pub struct fts5_api {
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
) -> ::std::os::raw::c_int,
>,
pub xCreateTokenizer_v2: ::std::option::Option<
unsafe extern "C" fn(
pApi: *mut fts5_api,
zName: *const ::std::os::raw::c_char,
pUserData: *mut ::std::os::raw::c_void,
pTokenizer: *mut fts5_tokenizer_v2,
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
) -> ::std::os::raw::c_int,
>,
pub xFindTokenizer_v2: ::std::option::Option<
unsafe extern "C" fn(
pApi: *mut fts5_api,
zName: *const ::std::os::raw::c_char,
ppUserData: *mut *mut ::std::os::raw::c_void,
ppTokenizer: *mut *mut fts5_tokenizer_v2,
) -> ::std::os::raw::c_int,
>,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down Expand Up @@ -3574,12 +3635,3 @@ extern "C" {
extern "C" {
pub static sqlite3_wal_manager: libsql_wal_manager;
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
Loading
Loading