]>
git.ipfire.org Git - thirdparty/sqlite.git/log
stephan [Sat, 28 Sep 2024 00:37:23 +0000 (00:37 +0000)]
Merge trunk into autosetup branch for latest wasm pieces.
FossilOrigin-Name:
c3877d1241f946b470a7a4868f13e1106e8aac4851d4bc5a64c90e0569444b81
stephan [Sat, 28 Sep 2024 00:02:52 +0000 (00:02 +0000)]
Merge wasm-build-rework branch into trunk. Summary: 1) add optional bare-bones build, stripped of many optional library features, 2) replace much of the hyper-spaghetti wasm-specific makefile code with a more legible static code generator.
FossilOrigin-Name:
208c27714646c9bc26eef11266086a71da04bc24e87078de0955e7beb68a821e
stephan [Fri, 27 Sep 2024 23:45:40 +0000 (23:45 +0000)]
Fix fiddle build broken by recent build-level reworks. Remove a stale reference to an old CSS file.
FossilOrigin-Name:
f904b3b7842da036c3e8423bae02cdf207573c92dc379a601eae289eb3c5f547
stephan [Fri, 27 Sep 2024 16:43:47 +0000 (16:43 +0000)]
stephan [Fri, 27 Sep 2024 16:20:03 +0000 (16:20 +0000)]
stephan [Fri, 27 Sep 2024 13:29:50 +0000 (13:29 +0000)]
Add basic libreadline detection and build CLI shell.
FossilOrigin-Name:
2ba7ab562580667bc9249f2d1f2402c605553d5583eec497398abe6d196c83d4
stephan [Fri, 27 Sep 2024 12:15:14 +0000 (12:15 +0000)]
General tinkering and cleanups in the autosetup bits.
FossilOrigin-Name:
a290e3b15de75f6a0a4975b5747449525fb2b58b3947b8ca0ab64a4d3cca228e
stephan [Fri, 27 Sep 2024 09:40:55 +0000 (09:40 +0000)]
Rename TCL_GENERATOR to BTCL for consistency with BCC/TCC.
FossilOrigin-Name:
a7ff8f3c2c86f435a08d568a07f019a59dcca8f66a719d242289fa0c7097c2af
stephan [Fri, 27 Sep 2024 03:16:01 +0000 (03:16 +0000)]
Disable the optional extending of JimTCL on the grounds of YAGNI.
FossilOrigin-Name:
f395c269d55c2b5ceb074f26d0b63f65b1f04ec513fe203c7e73e3a876b1f055
stephan [Fri, 27 Sep 2024 03:04:16 +0000 (03:04 +0000)]
General auto.def cleanups, mostly around JimTCL. Swap out impl for the sqlite_cfg.h generator - this approach is lower-maintenance (requires no hand-maintained template) but may not be compatible with expectations.
FossilOrigin-Name:
da197946dbaacedb6e74827db9b5dd195d4aaf78ad9411a14aca732ab77917c6
stephan [Fri, 27 Sep 2024 02:35:41 +0000 (02:35 +0000)]
Tweak build to fall back to system-side tclsh if we cannot find realpath() or _fullpath() for JimTCL (needed for some of the code generator scripts to work).
FossilOrigin-Name:
b31dbb9945d0ac5e22d146565443bcdc0dd1a1c83034cfb5867b2303ada2bdea
stephan [Fri, 27 Sep 2024 01:42:52 +0000 (01:42 +0000)]
Run all of the TCL-based code generators using JimTCL.
FossilOrigin-Name:
3193b86a91d8096be68cb83133c7665129694521d7da81bf725e285c229271f7
stephan [Fri, 27 Sep 2024 01:30:34 +0000 (01:30 +0000)]
Generate sqlite3.h/.c with jimsh, somewhat to my surprise.
FossilOrigin-Name:
c365d8e1f7aa19e424f60f976db683c3ccb489900124811541e02d47f9a1cbe3
stephan [Fri, 27 Sep 2024 01:25:49 +0000 (01:25 +0000)]
Experimentally build shell.c using the autosetup-provided JimTCL.
FossilOrigin-Name:
5bd62cdbc4b188a59c83fb04685f9967d6a5270772eb48f950a5d86409eb8a1b
stephan [Fri, 27 Sep 2024 01:04:09 +0000 (01:04 +0000)]
Remove some gratuitous overengineering before it can spread.
FossilOrigin-Name:
94340011ed903434cd12ca982f226c548f7ec43019d449b4ee12e18ec886fb27
stephan [Fri, 27 Sep 2024 01:00:32 +0000 (01:00 +0000)]
drh [Thu, 26 Sep 2024 22:25:13 +0000 (22:25 +0000)]
stephan [Thu, 26 Sep 2024 21:09:22 +0000 (21:09 +0000)]
stephan [Thu, 26 Sep 2024 21:08:00 +0000 (21:08 +0000)]
Latest hwaci-common.tcl after refactoring to facilitate including a copy in the libfossil tree.
FossilOrigin-Name:
feea65bcd54f9266445bc4d65ea5e3cfadee8e3abff5b682e31cdc0034354fbf
drh [Thu, 26 Sep 2024 19:38:34 +0000 (19:38 +0000)]
Add the ext/misc/sqlite3_stdio.c portability interface and incorporate it
into the CLI, sqldiff, and sqlite3_analyzer. Enhance the CLI with the new
".www" dot-command and related options on .once and .output.
FossilOrigin-Name:
f97f9944b829a49da12786f934da0a5ad51591afd6d8a19a4a0835f51bbdbff2
drh [Thu, 26 Sep 2024 19:16:20 +0000 (19:16 +0000)]
Provide SQLITE_U8TEXT_ONLY and SQLITE_U8TEXT_STDIO compile-time options
to the sqlite3_stdio.c module.
FossilOrigin-Name:
f31588520e3f45b50dcaa9eecab17f52ebb56bb53d0f9bdb88cc596d1a156353
stephan [Thu, 26 Sep 2024 18:40:07 +0000 (18:40 +0000)]
Get lemon building. Re-indent hwaci-common.tcl for consistency.
FossilOrigin-Name:
53dc33d5e20062e8c4c9856349bbc143c858327ef41f356ffcc574b36d0cc73c
stephan [Thu, 26 Sep 2024 18:13:10 +0000 (18:13 +0000)]
Resolve a harmless compiler warning in QNX builds.
FossilOrigin-Name:
2916460179c6089375188c6e4e3cff1fca5bbbbb7280a10c919e09e75d1f11f8
stephan [Thu, 26 Sep 2024 14:09:23 +0000 (14:09 +0000)]
Do not remove *.def in the cleanup rules because auto.def is a required part of autosetup. Remove the .o vs .obj detection/distinction because the Unix-like Windows environments use .o.
FossilOrigin-Name:
65eb1072e297f01ba4ce21fe644f709e75ebaec5307764b549efceafb88f6ebf
drh [Thu, 26 Sep 2024 13:12:19 +0000 (13:12 +0000)]
Clarification of the meaning of the nByte parameter to sqlite3_prepare().
Comment and documentation change only - no changes to the code.
FossilOrigin-Name:
92d71eee4f3a5edb3877c108d14972d80654982b0de3e635d9d008e9d3b6591f
stephan [Thu, 26 Sep 2024 12:16:46 +0000 (12:16 +0000)]
Cleanups of the --with-wasi-sdk bits. Straighten out VERSION vs RELEASE.
FossilOrigin-Name:
7638f3ad1588ff16c2980763c6c4c1386a711acd64adb21c465f186a47bc975d
stephan [Thu, 26 Sep 2024 08:53:37 +0000 (08:53 +0000)]
stephan [Thu, 26 Sep 2024 08:25:10 +0000 (08:25 +0000)]
Remove a misled acrobatics related to cross-compilation, based on suggestions from Steve Bennett. Add a quick-n-dirty placeholder check for tclsh to move that part along.
FossilOrigin-Name:
c419168938b009b2cf8a42a01272971497b5329792ccb8cef235f47ab5f142e2
drh [Thu, 26 Sep 2024 01:29:22 +0000 (01:29 +0000)]
Fix shell test cases to account for recent additions to the ".help" output.
FossilOrigin-Name:
54c22bc6165affbea0d1166a0912d19939300ccc4ae33a6b2ed8c510ab61c574
stephan [Wed, 25 Sep 2024 23:09:38 +0000 (23:09 +0000)]
stephan [Wed, 25 Sep 2024 22:13:49 +0000 (22:13 +0000)]
Integrate the configure-time Emscripten bits.
FossilOrigin-Name:
456125a14454180d608d8f5bc651aa4350958cdd14f4011ef540beb278ca2d51
stephan [Wed, 25 Sep 2024 18:03:26 +0000 (18:03 +0000)]
drh [Wed, 25 Sep 2024 16:11:27 +0000 (16:11 +0000)]
Always show HTML table headers in ".www" output mode.
FossilOrigin-Name:
660ca5ce6600d897cc2b00b9d39e5d993c1c0e71ec0d5dc706246c053a163281
drh [Wed, 25 Sep 2024 15:55:52 +0000 (15:55 +0000)]
Add the --plain option to the ".www" dot-command.
FossilOrigin-Name:
a9209519f612e66cfe11c89e70efd8285a0185ac0d3e5795846aafbd05d7a21f
drh [Wed, 25 Sep 2024 15:26:37 +0000 (15:26 +0000)]
Have the zipfile and fileio extensions use sqlite3_stdio.c when it is
available - such as when those extensions are preloaded into the CLI.
FossilOrigin-Name:
74bbb2b2b4507d9acbd91209a2ce341968e9ff64f3aebe9e817bfe488d39ae03
stephan [Wed, 25 Sep 2024 14:58:09 +0000 (14:58 +0000)]
stephan [Wed, 25 Sep 2024 14:38:46 +0000 (14:38 +0000)]
Lots of work on auto.def and the utility tcl lib. Still lots more to do.
FossilOrigin-Name:
2141527a38ca8170e79b5b5e664378f0d8464055119f5b986e5d7b1be75e919e
drh [Wed, 25 Sep 2024 14:09:47 +0000 (14:09 +0000)]
Redirect timer output just like any other text.
FossilOrigin-Name:
3b5ae21074958788b23ccf449e52fbbad1f81779e07a6ca62ad8395f88a37286
drh [Wed, 25 Sep 2024 13:56:05 +0000 (13:56 +0000)]
Improvements to ".www" and ".output -w" so that text that is not part of
query output is shown using <pre>.
FossilOrigin-Name:
f8ef65c52305b2180ec56760f5762ac5638584cd504c79d57e86f61736901aa4
drh [Wed, 25 Sep 2024 13:29:03 +0000 (13:29 +0000)]
Add the "www" output mode that include <table> in the HTML output.
Add the ".www" command and the "-w" option to ".once".
FossilOrigin-Name:
b06fd9e6bcce09f12c994dc34f329a8d267ea0601bb07c9b00903c5017d55d42
drh [Wed, 25 Sep 2024 12:56:44 +0000 (12:56 +0000)]
Always include a UTF-8 BOM at the beginning of the output CSV when using
the ".excel" command on Windows, as the actual Excel program requires the
BOM in order to work correctly.
FossilOrigin-Name:
04727fc00207325a76a5d5f20549c00232810ac727dedb70bc9e8112e60b3f56
stephan [Wed, 25 Sep 2024 12:16:13 +0000 (12:16 +0000)]
Change --enable-tempstore to --with-tempstore to avoid the uphill (and losing) battle with autosetup's built-in handling of the --enable/--disable prefixes.
FossilOrigin-Name:
8bea45fbbf8557760e792cdfcede72afa9e25dd7b90e4ce3297efebe8d0cfb1c
drh [Wed, 25 Sep 2024 11:38:00 +0000 (11:38 +0000)]
drh [Wed, 25 Sep 2024 11:27:59 +0000 (11:27 +0000)]
Use sqlite3_fgets() instead of fgetc() to end the startup debugging pause
in the CLI.
FossilOrigin-Name:
869b3c05e852a797b5801a81d30a1f7955c31afad0274327f7af2284b555f23a
drh [Wed, 25 Sep 2024 09:43:05 +0000 (09:43 +0000)]
Merge trunk enhancements, and especially the zero- and double-width character
processing for columnar outputs into the cli-stdlib branch.
FossilOrigin-Name:
d6262a4bcd7b0334b23ae4d194ca2bce7c6554ee6c678666b24c830e4c14a467
drh [Wed, 25 Sep 2024 09:39:11 +0000 (09:39 +0000)]
In the CLI, for columnar output formats, try to account for the presence of
zero-width and double-width characters in the output and adjust column widths
accordingly.
FossilOrigin-Name:
9592b9ba3ad7a842cdd4c4010da278485a6fdec7e811bda01ebe640162a8c3b6
drh [Wed, 25 Sep 2024 09:33:14 +0000 (09:33 +0000)]
Improvements to comments on data structures and subroutines.
FossilOrigin-Name:
b217e3004b58af0e777726bdd652b999ad41815261299ef4ce8f8d2f6b0afe8d
stephan [Wed, 25 Sep 2024 08:04:14 +0000 (08:04 +0000)]
stephan [Wed, 25 Sep 2024 07:30:54 +0000 (07:30 +0000)]
Add --enable-tempstore support and document some of the weirdness of trying to use an explicit prefix of --enable with non-boolean flags (autosetup unconditionally handles --enable and --disable prefixes on its own and always treats them as boolean flags).
FossilOrigin-Name:
fe6fa4ce5271c6265985574e1c406dda5b57f0dc360626800b6173a8f054bdab
stephan [Wed, 25 Sep 2024 06:25:33 +0000 (06:25 +0000)]
Re-enable the --enable-all bits after figuring out that autosetup(options) is not a dict, but a list.
FossilOrigin-Name:
beb2a12045447586cc74f243d4f519c967595d929abe6330c2b1049897e8eaad
stephan [Wed, 25 Sep 2024 06:07:54 +0000 (06:07 +0000)]
Disable with --enable-all bits, as the helper function it uses is dying for reasons beyond my meager tcl-fu.
FossilOrigin-Name:
d2b883120e7ab374092d2bdef0faa22eaa9639cb103f9fbbbbfd16639fbfd323
stephan [Wed, 25 Sep 2024 04:34:16 +0000 (04:34 +0000)]
Correct some copy/paste errors in the previous checkin.
FossilOrigin-Name:
9752768d8a83052cb69fa07d51e2c82e710c20482cc02c33a4412ffdfa3dc699
stephan [Wed, 25 Sep 2024 04:20:58 +0000 (04:20 +0000)]
stephan [Wed, 25 Sep 2024 03:37:34 +0000 (03:37 +0000)]
Get several of the --enable/--disable configure flags working.
FossilOrigin-Name:
fd16d53d3a95cd4f5f81f4b1b09955f04c89116586aa16fa01627ae4904d587b
stephan [Wed, 25 Sep 2024 02:00:09 +0000 (02:00 +0000)]
Testing libfossil checkin fix for inheritance of privateness.
FossilOrigin-Name:
4b104926bf0862a5088e51549c2d688c2af649d45bf0e396cc48e171bed06b0a
stephan [Wed, 25 Sep 2024 01:39:39 +0000 (01:39 +0000)]
Get skeleton auto.def running, but it doesn't really do much except some standard boilerplate stuff.
FossilOrigin-Name:
e707634cf755346752bb83b7be5d0c683e39d6e0a497846019323fed31c08b9d
stephan [Tue, 24 Sep 2024 21:54:37 +0000 (21:54 +0000)]
Minor wasmfs speedtest1 build tweaks. Disable one wasmfs demo which was broken by Emscripten-side changes.
FossilOrigin-Name:
5ccc85d8f5809d961602dff557dca1ed34f5db61203912387272034e4da02614
stephan [Tue, 24 Sep 2024 21:08:49 +0000 (21:08 +0000)]
drh [Tue, 24 Sep 2024 19:47:12 +0000 (19:47 +0000)]
Fix over-length lines in the shell source code.
FossilOrigin-Name:
f3fdf76a0d3abeb5202f2b6f26318815396da7df680073955bde60b13f84e797
drh [Tue, 24 Sep 2024 19:19:53 +0000 (19:19 +0000)]
drh [Tue, 24 Sep 2024 18:01:50 +0000 (18:01 +0000)]
drh [Tue, 24 Sep 2024 17:49:06 +0000 (17:49 +0000)]
Port sqlite3_analyzer.exe to use sqlite3_stdio.
FossilOrigin-Name:
7c1c1226d803dbaf8e75085b1cc2aad88aef4c3168288e587c8c736633d09054
drh [Tue, 24 Sep 2024 17:40:54 +0000 (17:40 +0000)]
drh [Tue, 24 Sep 2024 16:09:50 +0000 (16:09 +0000)]
Get output redirection working again in the CLI.
FossilOrigin-Name:
086034c3508d95e4f620c5e0580fae770e85410b0c8bd94f600fc0fd25088947
dan [Tue, 24 Sep 2024 15:11:34 +0000 (15:11 +0000)]
Fix a memory leak in sqlite3expert.c introduced by [
f1d76c86 ].
FossilOrigin-Name:
42bb941584a1ac922ee6b0b6ecadce71c9259555563cf49913a6f820f3f9b887
drh [Tue, 24 Sep 2024 13:46:32 +0000 (13:46 +0000)]
Add the sqlite3_stdio.h library for Windows console I/O.
FossilOrigin-Name:
fcd0ecffc9889f8c855ea340f075ec42cdca482df82d6e67dc9c32613e8d5846
stephan [Tue, 24 Sep 2024 13:00:21 +0000 (13:00 +0000)]
stephan [Tue, 24 Sep 2024 12:16:05 +0000 (12:16 +0000)]
Wasm build cleanups. Fix the wasm speedtest1 builds broken by yesterday's refactoring.
FossilOrigin-Name:
5d4a090230d1d7609e70b9c28d662dc8b0f8dd4d70a254f3ce6e449c68a25897
dan [Tue, 24 Sep 2024 11:26:21 +0000 (11:26 +0000)]
Avoid an error in sqlite3expert if the database has existing indexes on expressions.
FossilOrigin-Name:
f1d76c8636866424fe0b57d8814b8bb1a0ed4e2ca1b75d8e308d4b962ad8dc3b
drh [Tue, 24 Sep 2024 10:30:07 +0000 (10:30 +0000)]
Use _wfopen() instead of fopen() on Windows in the CLI.
FossilOrigin-Name:
21a8cac5e9a0d5ead29ca1114be7520d182348f7e2e2e2416852b827d7e09f21
drh [Tue, 24 Sep 2024 09:51:53 +0000 (09:51 +0000)]
Always use fputws() for output to a Windows command-line prompt.
FossilOrigin-Name:
33950a8c3f3e48e5107fe56647da05147aa84f9c3eccbe7c8671f5b502ebb70b
drh [Tue, 24 Sep 2024 00:53:27 +0000 (00:53 +0000)]
Remove an ALWAYS() that can sometimes be false, with wildly incorrect SQL
inputs. dbsqlfuzz
707afcf73930de2624cdeca0ad1f0deea982dfea
FossilOrigin-Name:
766cf5535b9f51decd88c1736b988def929a90f68eb6a52bcaa21bb321586a08
stephan [Tue, 24 Sep 2024 00:31:08 +0000 (00:31 +0000)]
Further wasm build cleanups and tweaks. No functional changes.
FossilOrigin-Name:
3b72a143431537ec275aefae739e56330c1d445c9ea80885882a2b9aa2201179
drh [Tue, 24 Sep 2024 00:01:47 +0000 (00:01 +0000)]
In the CLI, when displaying results in a columnar format, take into account
zero-width and double-width Unicode characters.
FossilOrigin-Name:
47cfad71eddc6fc4414ff853ee172da72527620eee743721806072c6e0a80caa
stephan [Mon, 23 Sep 2024 22:56:54 +0000 (22:56 +0000)]
stephan [Mon, 23 Sep 2024 21:22:09 +0000 (21:22 +0000)]
wasm: replace much of the eval makefile spaghetti with equivalent code generated from a small C app. It turns out that's easier to read and write than doing the same thing from shell or tcl code, due entirely to C's lack of need for escaping dollar signs.
FossilOrigin-Name:
5440de48903e94f91090e2df65702ec0c504e33dd5cbd50f684cf30988f20b02
drh [Mon, 23 Sep 2024 20:23:43 +0000 (20:23 +0000)]
CLI uses only lib-c for I/O on Windows. No calls to Win32. Works on Win11,
at least. Reads and writes unicode to/from the console and UTF-8 to/from files.
Prototype code only - must testing and additional work required.
FossilOrigin-Name:
5c54530d5a0a4125a1ba44f22537c4f63d5e5708f347c43cbac3e1832c4335da
dan [Mon, 23 Sep 2024 19:32:06 +0000 (19:32 +0000)]
Fix a couple of problems with the sessions streaming interfaces.
FossilOrigin-Name:
9a1fc8d36b5b262f9d17a4743b4b9bb54510cf257d2d9778ebc42d5224856b1e
stephan [Mon, 23 Sep 2024 17:06:06 +0000 (17:06 +0000)]
drh [Sat, 21 Sep 2024 17:27:47 +0000 (17:27 +0000)]
Add the run-fuzzcheck target to the MSVC makefile.
FossilOrigin-Name:
2e5194407a1b34dd0659c350ea8098bfef7b3f11aa5b2a07ecd2bce5582655a2
drh [Sat, 21 Sep 2024 15:57:06 +0000 (15:57 +0000)]
If the database filename pointer passed to sqlite3_open(), change it
into ":memory:".
FossilOrigin-Name:
62e11a3a78edf9853b74d6495ccd8ae9ac1966c7d78eb3682cf2d5885e3740ec
drh [Fri, 20 Sep 2024 17:41:05 +0000 (17:41 +0000)]
Fix comment typo in the fileio.c extension. No changes to code.
FossilOrigin-Name:
bf2c5b368ac094e048ca33a5e9175fe6a1fb5e2b1e392935eb29388e8999c40b
drh [Fri, 20 Sep 2024 12:58:15 +0000 (12:58 +0000)]
New assert()s to help verify union access. No logic changes. Testing and
validation code only.
FossilOrigin-Name:
b7b64c53f5d7f6b405ee3f1f1be1d84230aa79db5a502c8ad78d3e524f4384fb
drh [Thu, 19 Sep 2024 15:44:41 +0000 (15:44 +0000)]
Fix harmless compiler warning in the vfstrace extension.
FossilOrigin-Name:
c8b4d092a22d87f1231424c8e3fa6a02f17fb965cb2a931621e1b51f4d215de7
drh [Thu, 19 Sep 2024 13:39:06 +0000 (13:39 +0000)]
Improved rebustness to malformed UTF-16 inputs to sqlite3_prepare16_v2().
FossilOrigin-Name:
7b3a517b3e16ea487ca77a2c88a0c11d737de366524fc911aa1bdd6bfb7ad148
mistachkin [Thu, 19 Sep 2024 00:05:18 +0000 (00:05 +0000)]
drh [Wed, 18 Sep 2024 16:33:07 +0000 (16:33 +0000)]
Improvements to the scope of valueFromFunction().
FossilOrigin-Name:
a0f39419cb5bdfa42ab2978cf3819e3d7821212996571f8251d2efbeaa26c603
dan [Wed, 18 Sep 2024 15:52:05 +0000 (15:52 +0000)]
Fix the preupdate hook so that it works when the "old.*" row has a column with a non-NULL default value that was added by ALTER TABLE ADD COLUMN after the current record was created.
FossilOrigin-Name:
6a8c687904e92f00c1a5f768947545d2920ab9025bf8649adb0ea8053f5aec4e
drh [Wed, 18 Sep 2024 15:38:05 +0000 (15:38 +0000)]
Fix sqlite3-rsync so that it recognizes drive-letters on the front of pathnames
in Windows, and does not misinterpret them as hostnames.
FossilOrigin-Name:
54a3bbd5781f76bd73f5276b632d1107312f7a789134910793262317edd8359c
dan [Wed, 18 Sep 2024 15:02:27 +0000 (15:02 +0000)]
Fix the preupdate hook so that it works when the "old.*" row has a column with a non-NULL default value that was added by ALTER TABLE ADD COLUMN after the current record was created.
FossilOrigin-Name:
00a398cf900179aa5a8aab09fe4a671d99e7a31583282848ef39390f2ef246eb
drh [Tue, 17 Sep 2024 22:57:08 +0000 (22:57 +0000)]
Fix harmless static analyzer warning in sqlite3-rsync.
FossilOrigin-Name:
a63e412b6b2939422ecfa99d91fccb7a9c61e1533bb0db20ff12f3815ef41a2c
drh [Tue, 17 Sep 2024 21:42:04 +0000 (21:42 +0000)]
Add assert() statements to some of the sqlite3_bind() APIs that help human
readers and static analyzers, both, reason about the code and verify that it
is memory safe.
FossilOrigin-Name:
97528788145b83a1486dbaf09326ebedbc07bd0b47a57cdff773885b0b984604
drh [Tue, 17 Sep 2024 10:36:33 +0000 (10:36 +0000)]
In sqlite3-rsync, do not allow the '/' character to appear anywhere in the
USER@HOST: prefix to one of the argument databases.
FossilOrigin-Name:
6089a90463dcb3ba8e1584cfc5e2528fbc131311c6df7834fb41a5614a8ca9e8
drh [Mon, 16 Sep 2024 20:53:52 +0000 (20:53 +0000)]
Fix a typo in an error message in sqlite3-rsync.
FossilOrigin-Name:
3f25d6c8eac25de4afff486b134a339bc06404ddaed15b46db48c6770535b1e6
drh [Mon, 16 Sep 2024 14:11:14 +0000 (14:11 +0000)]
Cleanup the sqlite3-rsync executable as part of "make clean"
FossilOrigin-Name:
8c5e481b49d86d97fefa345d0c1b96c050846ef9fc51d8b9dd203ee35afd6f6d
drh [Mon, 16 Sep 2024 10:58:11 +0000 (10:58 +0000)]
In sqlite3-rsync,
open the replica database using ATTACH since the sqlite3_dbpage virtual table
is technically a part of "main". This avoids locking problems.
FossilOrigin-Name:
39c56c836a8ae52c5b42cc0d04b92f7c0e6889a03c4fdffd301209383b7c1f87
drh [Mon, 16 Sep 2024 09:12:11 +0000 (09:12 +0000)]
Improved error message in sqlite3-rsync if the SQL statement for ORIGIN_TXN
fails.
FossilOrigin-Name:
73bde71ed10f52b851e220de35519d5fb7e65a932437ab82a194faff490b7930
drh [Sun, 15 Sep 2024 18:37:34 +0000 (18:37 +0000)]
Provide more opportunity for the remote side in sqlite3-rsync to send error
messages back to the local side. Be sure to invoke pclose2() when done.
FossilOrigin-Name:
23a63505152ff995e4ce0963dc4ab9f76ed55da7e7f5e1b85a2577473642e3ad
drh [Sat, 14 Sep 2024 16:52:45 +0000 (16:52 +0000)]
Merge subsequent changes to sqlite-rsync that were accidentally missed by
the prior check-in.
FossilOrigin-Name:
50762ba0783a04e0dcd9456a1ae17d875b0a9272f2f09854a23d9d5253761e9f
drh [Sat, 14 Sep 2024 16:39:02 +0000 (16:39 +0000)]
Enhancements to sqlite_dbpage() so that it accepts INSERT statements that can
extend or truncate the database. Add the sqlite3-rsync utility program that
make a copy of a live database over SSH.
FossilOrigin-Name:
b7a8ce4c8c5fc6a3b4744d412d96f99d2452eb4086ad84472511da3b4d6afec6