Fossil

Check-in [384482a8]
Login

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

Overview
Comment:Simplify the previous check-in.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | sqlCmdNoRepo
Files: files | file ages | folders
SHA1: 384482a87c077666f965e108713815bd371816bf
User & Date: mistachkin 2016-01-13 06:19:39
Context
2016-01-14
05:34
Add the '--no-repository' option to the 'fossil sqlite3' command and make use of it for the merge5 test. check-in: 2e1ccc6a user: mistachkin tags: trunk
2016-01-13
06:19
Simplify the previous check-in. Closed-Leaf check-in: 384482a8 user: mistachkin tags: sqlCmdNoRepo
01:31
Add the '--no-repository' option to the 'fossil sqlite3' command and make use of it for the merge5 test. check-in: 56f74a12 user: mistachkin tags: sqlCmdNoRepo
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sqlcmd.c.

195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
**
** Usage example for files_of_checkin:
**
**     CREATE VIRTUAL TABLE temp.foci USING files_of_checkin;
**     SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk');
*/
void cmd_sqlite3(void){
  int noRepository;
  extern int sqlite3_shell(int, char**);
  noRepository = find_option("no-repository", 0, 0)!=0;
  if( !noRepository ){
    db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
    db_close(1);
  }
  sqlite3_shutdown();
  sqlite3_shell(g.argc-1, g.argv+1);
  sqlite3_cancel_auto_extension((void(*)(void))sqlcmd_autoinit);
  g.db = 0;







<

|
<







195
196
197
198
199
200
201

202
203

204
205
206
207
208
209
210
**
** Usage example for files_of_checkin:
**
**     CREATE VIRTUAL TABLE temp.foci USING files_of_checkin;
**     SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk');
*/
void cmd_sqlite3(void){

  extern int sqlite3_shell(int, char**);
  if( !find_option("no-repository", 0, 0)!=0 ){

    db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
    db_close(1);
  }
  sqlite3_shutdown();
  sqlite3_shell(g.argc-1, g.argv+1);
  sqlite3_cancel_auto_extension((void(*)(void))sqlcmd_autoinit);
  g.db = 0;