Lines Matching refs:pBt
111 if( pNew->pBt ) sqlite3BtreeClose(pNew->pBt); in attachFunc()
112 pNew->pBt = 0; in attachFunc()
114 rc = sqlite3BtreeOpen(pVfs, "x\0", db, &pNew->pBt, 0, SQLITE_OPEN_MAIN_DB); in attachFunc()
167 rc = sqlite3BtreeOpen(pVfs, zPath, db, &pNew->pBt, 0, flags); in attachFunc()
177 pNew->pSchema = sqlite3SchemaGet(db, pNew->pBt); in attachFunc()
185 sqlite3BtreeEnter(pNew->pBt); in attachFunc()
186 pPager = sqlite3BtreePager(pNew->pBt); in attachFunc()
188 sqlite3BtreeSecureDelete(pNew->pBt, in attachFunc()
189 sqlite3BtreeSecureDelete(db->aDb[0].pBt,-1) ); in attachFunc()
191 sqlite3BtreeSetPagerFlags(pNew->pBt, in attachFunc()
194 sqlite3BtreeLeave(pNew->pBt); in attachFunc()
230 if( db->aDb[iDb].pBt ){ in attachFunc()
231 sqlite3BtreeClose(db->aDb[iDb].pBt); in attachFunc()
232 db->aDb[iDb].pBt = 0; in attachFunc()
284 if( pDb->pBt==0 ) continue; in detachFunc()
296 if( sqlite3BtreeTxnState(pDb->pBt)!=SQLITE_TXN_NONE in detachFunc()
297 || sqlite3BtreeIsInBackup(pDb->pBt) in detachFunc()
315 sqlite3BtreeClose(pDb->pBt); in detachFunc()
316 pDb->pBt = 0; in detachFunc()