Fossil

Diff
Login

Differences From Artifact [409243ec24]:

To Artifact [b9400215a3]:


73
74
75
76
77
78
79



80
81
82
83
84
85
86
87
88
89
90
91
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

91
92
93







+
+
+








-



**
** WARNING:  Careless use of this command can corrupt a Fossil repository
** in ways that are unrecoverable.  Be sure you know what you are doing before
** running any SQL commands that modifies the repository database.
*/
void sqlite3_cmd(void){
  extern int sqlite3_shell(int, char**);
  db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
  db_close();
  sqlite3_shutdown();
  sqlite3_shell(g.argc-1, g.argv+1);
}

/*
** This routine is called by the patched sqlite3 command-line shell in order
** to load the name and database connection for the open Fossil database.
*/
void fossil_open(const char **pzRepoName){
  db_must_be_within_tree();
  sqlite3_auto_extension((void(*)(void))sqlcmd_autoinit);
  *pzRepoName = g.zRepositoryName;
}