Lines Matching refs:dbNew
39 sqlite *dbNew; /* New database */ member
129 p->rc = execsql(p->pzErrMsg, p->dbNew, p->s2.z); in vacuumCallback2()
149 rc = execsql(p->pzErrMsg, p->dbNew, argv[2]); in vacuumCallback1()
205 sqlite *dbNew = 0; /* The new vacuumed database */ in sqliteRunVacuum() local
246 dbNew = sqlite_open(zTemp, 0, &zErrMsg); in sqliteRunVacuum()
247 if( dbNew==0 ){ in sqliteRunVacuum()
253 if( (rc = execsql(pzErrMsg, dbNew, "PRAGMA synchronous=off; BEGIN"))!=0 ){ in sqliteRunVacuum()
258 sVac.dbNew = dbNew; in sqliteRunVacuum()
273 sqliteBtreeGetMeta(dbNew->aDb[0].pBt, meta2); in sqliteRunVacuum()
278 rc = sqliteBtreeUpdateMeta(dbNew->aDb[0].pBt, meta2); in sqliteRunVacuum()
281 rc = sqliteBtreeCopyFile(db->aDb[0].pBt, dbNew->aDb[0].pBt); in sqliteRunVacuum()
292 if( (dbNew && (dbNew->flags & SQLITE_Interrupt)) in sqliteRunVacuum()
296 if( dbNew ) sqlite_close(dbNew); in sqliteRunVacuum()