Diff
Not logged in

Differences From Artifact [2c67fcfb70]:

To Artifact [ed83de0ffb]:


195
196
197
198
199
200
201
202
203
204

205
206
207
208
209
210
211
212
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){
  int noRepository;
  extern int sqlite3_shell(int, char**);
  noRepository = find_option("no-repository", 0, 0)!=0;
  if( !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;