]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Modify the new "--append" option to the .archive so that it takes a filename
authordrh <drh@noemail.net>
Wed, 10 Jan 2018 18:09:20 +0000 (18:09 +0000)
committerdrh <drh@noemail.net>
Wed, 10 Jan 2018 18:09:20 +0000 (18:09 +0000)
argument, the same as "--file".

FossilOrigin-Name: 58e3b07cc8cb5cc915f7d430483bd455b03f14120e0db23286d2e20dbb5391c5

manifest
manifest.uuid
src/shell.c.in

index a7fe4fa39dffe9833ebb6f5a903cdedc59eab824..747f1758ed563e07487a8f4696c91c56cd13f782 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Add\sthe\slsmode(MODE)\sfunction\sin\sthe\sfileio.c\sextension\sand\suse\sthat\sfunction\nin\sthe\s.archive\simplementation.\s\sAdd\sthe\s--append\sand\s--dryrun\soptions\sto\nthe\s.archive\scommand\sand\sremove\sthe\s--zip\soption,\smaking\sit\sautomatic.
-D 2018-01-10T17:44:03.548
+C Modify\sthe\snew\s"--append"\soption\sto\sthe\s.archive\sso\sthat\sit\stakes\sa\sfilename\nargument,\sthe\ssame\sas\s"--file".
+D 2018-01-10T18:09:20.329
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
 F Makefile.in 12b6daa4bdb03fa87da27cbc205ff88ace645475b5be79414a3038b68ade14cb
@@ -484,7 +484,7 @@ F src/random.c 80f5d666f23feb3e6665a6ce04c7197212a88384
 F src/resolve.c bbee7e31d369a18a2f4836644769882e9c5d40ef4a3af911db06410b65cb3730
 F src/rowset.c 7b7e7e479212e65b723bf40128c7b36dc5afdfac
 F src/select.c 8b22abe193e4d8243befa2038e4ae2405802fed1c446e5e502d11f652e09ba74
-F src/shell.c.in 4cb216da4adaac57faf03a502584d44d96f99b3235a6d2956750670c6aabc8b1
+F src/shell.c.in 2e72b9dc9dabde7e1d26142bf1080dfbc182ac1bf9431f85307b5931062a041b
 F src/sqlite.h.in 1f1a2da222ec57465794e8984d77f32d0bd0da80cdc136beadda461a0be9d80c
 F src/sqlite3.rc 5121c9e10c3964d5755191c80dd1180c122fc3a8
 F src/sqlite3ext.h c02d628cca67f3889c689d82d25c3eb45e2c155db08e4c6089b5840d64687d34
@@ -1697,8 +1697,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 1f099b2b45074c89eeff8ff241aa49489c95c2221b25c305fcda670ebf63fb4e 612b30c95f948438016bd11470e9dd114d7bb064418a57e5954a094d2ca77f69
-R 92ad9119ea4a1b866aa95ac38fa72e64
-T +closed 612b30c95f948438016bd11470e9dd114d7bb064418a57e5954a094d2ca77f69
+P 38f28029d16df8489772c27867de8888dd1c26b170861acdc977fd4023939dde
+R 816b51584860870ca4a8d73ef0ed2ba2
 U drh
-Z 0e2d546e002bd2ff2da7a7782cc6fb79
+Z 8ced30e3ccc67e3689656b52b7db29d9
index cc72e08c3d96c41822cc6569500181c7efd6693e..f3f36f5301cf626f9e5db4cfe7a6c2c46975f01c 100644 (file)
@@ -1 +1 @@
-38f28029d16df8489772c27867de8888dd1c26b170861acdc977fd4023939dde
\ No newline at end of file
+58e3b07cc8cb5cc915f7d430483bd455b03f14120e0db23286d2e20dbb5391c5
\ No newline at end of file
index f9942446a536b3c0587561442a43b5f58dd83595..e1fca6a0725d72ff14a6da739ab7996676dc636a 100644 (file)
@@ -4558,9 +4558,9 @@ static int arUsage(FILE *f){
 "And zero or more optional options:\n"
 "  -v, --verbose              Print each filename as it is processed\n"
 "  -f FILE, --file FILE       Operate on archive FILE (default is current db)\n"
+"  -a FILE, --append FILE     Operate on FILE opened using the apndvfs VFS\n"
 "  -C DIR, --directory DIR    Change to directory DIR to read/extract files\n"
 "  -n, --dryrun               Show the SQL that would have occurred\n"
-"  -a, --append               Append the SQLAR to an existing file\n"
 "\n"
 "See also: http://sqlite.org/cli.html#sqlar_archive_support\n"
 "\n"
@@ -4622,8 +4622,7 @@ static int arProcessSwitch(ArCommand *pAr, int eSwitch, const char *zArg){
       break;
     case AR_SWITCH_APPEND:
       pAr->bAppend = 1;
-      break;
-
+      /* Fall thru into --file */
     case AR_SWITCH_FILE:
       pAr->zFile = zArg;
       break;
@@ -4659,8 +4658,8 @@ static int arParseCommand(
     { "help",      'h', AR_CMD_HELP,         0 },
     { "verbose",   'v', AR_SWITCH_VERBOSE,   0 },
     { "file",      'f', AR_SWITCH_FILE,      1 },
+    { "append",    'a', AR_SWITCH_APPEND,    1 },
     { "directory", 'C', AR_SWITCH_DIRECTORY, 1 },
-    { "append",    'a', AR_SWITCH_APPEND,    0 },
     { "dryrun",    'n', AR_SWITCH_DRYRUN,    0 },
   };
   int nSwitch = sizeof(aSwitch) / sizeof(struct ArSwitch);