Lines Matching defs:globalDb
471 static sqlite3 *globalDb = 0;
16242 if( globalDb ) sqlite3_interrupt(globalDb);
19512 globalDb = p->db;
19626 sqlite3_prepare_v2(globalDb, zSql, -1, &pStmt, 0);
19665 sqlite3_prepare_v2(globalDb, zSql, -1, &pStmt, 0);
19667 sqlite3_exec(globalDb, "PRAGMA page_count", 0, 0, 0); /* Load the schema */
22260 globalDb = p->db = p->pAuxDb->db;
26472 return globalDb;
26482 if(globalDb){
26483 sqlite3_file_control(globalDb, zDbName ? zDbName : "main",
26502 if( globalDb ) sqlite3_interrupt(globalDb);
26507 ** zDbName is NULL. Returns NULL if globalDb is not opened.
26510 return globalDb
26511 ? sqlite3_db_filename(globalDb, zDbName ? zDbName : "main")
26520 if( globalDb ){
26521 int rc = sqlite3_db_config(globalDb, SQLITE_DBCONFIG_RESET_DATABASE, 1, 0);
26522 if( 0==rc ) rc = sqlite3_exec(globalDb, "VACUUM", 0, 0, 0);
26523 sqlite3_db_config(globalDb, SQLITE_DBCONFIG_RESET_DATABASE, 0, 0);