Diff
Not logged in

Differences From Artifact [031b91c0ee]:

To Artifact [5e6c8fa715]:


173
174
175
176
177
178
179
180
181


182
183

184
185
186









187
188
189
190
191
192
193
173
174
175
176
177
178
179


180
181
182

183

184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201







-
-
+
+

-
+
-


+
+
+
+
+
+
+
+
+







** atexit() handler that cleans up global state modified by this module.
*/
static void sqlcmd_atexit(void) {
  g.zConfigDbName = 0; /* prevent panic */
}

/*
** 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.
** This routine is called by the sqlite3 command-line shell to
** to load the name the Fossil repository database.
*/
void fossil_open(const char **pzRepoName){
void sqlcmd_get_dbname(const char **pzRepoName){
  sqlite3_auto_extension((void(*)(void))sqlcmd_autoinit);
  *pzRepoName = g.zRepositoryName;
}

/*
** This routine is called by the sqlite3 command-line shell to do
** extra initialization prior to starting up the shell.
*/
void sqlcmd_init_proc(void){
  sqlite3_initialize();
  sqlite3_auto_extension((void(*)(void))sqlcmd_autoinit);
}

#if USE_SEE
/*
** This routine is called by the patched sqlite3 command-line shell in order
** to load the encryption key for the open Fossil database.  The memory that
** is pointed to by the value placed in pzKey must be obtained from SQLite.
*/