Fossil SCM

Add a warning to the "fossil sqlite3" command to remind users that careless use of the command can easily corrupt the repository. Ticket [b18338c226f6fb4899].

drh 2010-10-31 21:51 trunk
Commit 4e1241f3236236187ad2a8f205323c05b98c9895
1 file changed +4
+4
--- src/main.c
+++ src/main.c
@@ -1155,10 +1155,14 @@
11551155
** Usage: %fossil sqlite3 ?DATABASE? ?OPTIONS?
11561156
**
11571157
** Run the standalone sqlite3 command-line shell on DATABASE with OPTIONS.
11581158
** If DATABASE is omitted, then the repository that serves the working
11591159
** directory is opened.
1160
+**
1161
+** WARNING: Careless use of this command can corrupt a Fossil repository
1162
+** in ways that are unrecoverable. Be sure you know what you are doing before
1163
+** running any SQL commands that modifies the repository database.
11601164
*/
11611165
void sqlite3_cmd(void){
11621166
extern int sqlite3_shell(int, char**);
11631167
sqlite3_shell(g.argc-1, g.argv+1);
11641168
}
11651169
--- src/main.c
+++ src/main.c
@@ -1155,10 +1155,14 @@
1155 ** Usage: %fossil sqlite3 ?DATABASE? ?OPTIONS?
1156 **
1157 ** Run the standalone sqlite3 command-line shell on DATABASE with OPTIONS.
1158 ** If DATABASE is omitted, then the repository that serves the working
1159 ** directory is opened.
 
 
 
 
1160 */
1161 void sqlite3_cmd(void){
1162 extern int sqlite3_shell(int, char**);
1163 sqlite3_shell(g.argc-1, g.argv+1);
1164 }
1165
--- src/main.c
+++ src/main.c
@@ -1155,10 +1155,14 @@
1155 ** Usage: %fossil sqlite3 ?DATABASE? ?OPTIONS?
1156 **
1157 ** Run the standalone sqlite3 command-line shell on DATABASE with OPTIONS.
1158 ** If DATABASE is omitted, then the repository that serves the working
1159 ** directory is opened.
1160 **
1161 ** WARNING: Careless use of this command can corrupt a Fossil repository
1162 ** in ways that are unrecoverable. Be sure you know what you are doing before
1163 ** running any SQL commands that modifies the repository database.
1164 */
1165 void sqlite3_cmd(void){
1166 extern int sqlite3_shell(int, char**);
1167 sqlite3_shell(g.argc-1, g.argv+1);
1168 }
1169

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button