/external/chromium_org/third_party/sqlite/src/src/ |
test_btree.c | 33 BtShared *pBt; 35 for(pBt=GLOBAL(BtShared*,sqlite3SharedCacheList); pBt; pBt=pBt->pNext){ 36 const char *zFile = sqlite3PagerFilename(pBt->pPager); 38 Tcl_ListObjAppendElement(interp, pRet, Tcl_NewIntObj(pBt->nRef)); 51 BtShared *pBt = p->pBt; 52 for(pCur=pBt->pCursor; pCur; pCur=pCur->pNext) [all...] |
btreeInt.h | 221 #define MX_CELL_SIZE(pBt) ((int)(pBt->pageSize-8)) 228 #define MX_CELL(pBt) ((pBt->pageSize-8)/6) 270 ** stored in MemPage.pBt->mutex. 290 BtShared *pBt; /* Pointer to BtShared that this page is part of */ 337 ** The pBt pointer itself may not be changed while there exists cursors 344 BtShared *pBt; /* Sharable content of this btree */ 346 u8 sharable; /* True if we can share pBt with another db */ 347 u8 locked; /* True if db currently has pBt locked * [all...] |
btree.c | 127 Schema *pSchema = (Schema *)pBtree->pBt->pSchema; 169 for(pLock=pBtree->pBt->pLock; pLock; pLock=pLock->pNext){ 204 for(p=pBtree->pBt->pCursor; p; p=p->pNext){ 223 BtShared *pBt = p->pBt; 235 assert( eLock==READ_LOCK || (p==pBt->pWriter && p->inTrans==TRANS_WRITE) ); 236 assert( eLock==READ_LOCK || pBt->inTransaction==TRANS_WRITE ); 246 if( pBt->pWriter!=p && pBt->isExclusive ){ 247 sqlite3ConnectionBlocked(p->db, pBt->pWriter->db) [all...] |
btmutex.c | 29 assert( sqlite3_mutex_notheld(p->pBt->mutex) ); 32 sqlite3_mutex_enter(p->pBt->mutex); 33 p->pBt->db = p->db; 42 BtShared *pBt = p->pBt; 44 assert( sqlite3_mutex_held(pBt->mutex) ); 46 assert( p->db==pBt->db ); 48 sqlite3_mutex_leave(pBt->mutex); 73 ** Btree.pBt value. All elements of the list should belong to 75 assert( p->pNext==0 || p->pNext->pBt>p->pBt ) [all...] |
test3.c | 66 Btree *pBt; 81 rc = sqlite3BtreeOpen(argv[1], &sDb, &pBt, 0, 87 sqlite3BtreeSetCacheSize(pBt, nCache); 88 sqlite3_snprintf(sizeof(zBuf), zBuf,"%p", pBt); 104 Btree *pBt; 111 pBt = sqlite3TestTextToPtr(argv[1]); 112 rc = sqlite3BtreeClose(pBt); 139 Btree *pBt; 146 pBt = sqlite3TestTextToPtr(argv[1]); 147 sqlite3BtreeEnter(pBt); [all...] |
mem2.c | 244 void **pBt; 258 pBt = (void**)&z[mem.nTitle]; 259 pHdr = (struct MemBlockHdr*)&pBt[mem.nBacktrace]; 275 memcpy(pBt, &aAddr[1], pHdr->nBacktrace*sizeof(void*)); 276 assert(pBt[0]); 303 void **pBt; 308 pBt = (void**)pHdr; 309 pBt -= pHdr->nBacktraceSlots; 325 z = (char*)pBt; 466 void **pBt = (void**)pHdr [all...] |
prepare.c | 176 assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) ); 211 if( pDb->pBt==0 ){ 221 sqlite3BtreeEnter(pDb->pBt); 222 if( !sqlite3BtreeIsInReadTrans(pDb->pBt) ){ 223 rc = sqlite3BtreeBeginTrans(pDb->pBt, 0); 249 sqlite3BtreeGetMeta(pDb->pBt, i+1, (u32 *)&meta[i]); 284 sqlite3BtreeSetCacheSize(pDb->pBt, pDb->pSchema->cache_size); 362 sqlite3BtreeCommit(pDb->pBt); 364 sqlite3BtreeLeave(pDb->pBt); 454 Btree *pBt = db->aDb[iDb].pBt; /* Btree database to read cookie from * [all...] |
attach.c | 127 rc = sqlite3BtreeOpen(zFile, db, &aNew->pBt, 0, 135 aNew->pSchema = sqlite3SchemaGet(db, aNew->pBt); 143 pPager = sqlite3BtreePager(aNew->pBt); 145 sqlite3BtreeSecureDelete(aNew->pBt, 146 sqlite3BtreeSecureDelete(db->aDb[0].pBt,-1) ); 179 if( nKey>0 || sqlite3BtreeGetReserve(db->aDb[0].pBt)>0 ){ 200 if( db->aDb[iDb].pBt ){ 201 sqlite3BtreeClose(db->aDb[iDb].pBt); 202 db->aDb[iDb].pBt = 0; 252 if( pDb->pBt==0 ) continue [all...] |
pragma.c | 110 if( db->aDb[1].pBt!=0 ){ 111 if( !db->autoCommit || sqlite3BtreeIsInReadTrans(db->aDb[1].pBt) ){ 116 sqlite3BtreeClose(db->aDb[1].pBt); 117 db->aDb[1].pBt = 0; 393 sqlite3BtreeSetCacheSize(pDb->pBt, pDb->pSchema->cache_size); 407 Btree *pBt = pDb->pBt; 408 assert( pBt!=0 ); 410 int size = ALWAYS(pBt) ? sqlite3BtreeGetPageSize(pBt) : 0 [all...] |
status.c | 145 Btree *pBt = db->aDb[i].pBt; 146 if( pBt ){ 147 Pager *pPager = sqlite3BtreePager(pBt);
|
test_stat.c | 279 static int statDecodePage(Btree *pBt, StatPage *p){ 307 int nUsable = sqlite3BtreeGetPageSize(pBt) - sqlite3BtreeGetReserve(pBt); 346 rc = sqlite3PagerGet(sqlite3BtreePager(pBt), iPrev, &pPg); 370 Btree *pBt = pTab->db->aDb[0].pBt; 371 Pager *pPager = sqlite3BtreePager(pBt); 403 int nUsable = sqlite3BtreeGetPageSize(pBt)-sqlite3BtreeGetReserve(pBt); 456 statDecodePage(pBt, p) [all...] |
vacuum.c | 129 pMain = db->aDb[0].pBt; 158 pTemp = db->aDb[db->nDb-1].pBt; 333 sqlite3BtreeClose(pDb->pBt); 334 pDb->pBt = 0;
|
backup.c | 117 return pDb->aDb[i].pBt; 232 assert( iSrcPg!=PENDING_BYTE_PAGE(p->pSrc->pBt) ); 269 if( iDest==PENDING_BYTE_PAGE(p->pDest->pBt) ) continue; 349 if( p->pDestDb && p->pSrc->pBt->inTransaction==TRANS_WRITE ){ 388 if( iSrcPg!=PENDING_BYTE_PAGE(p->pSrc->pBt) ){ 439 if( nDestTruncate==(int)PENDING_BYTE_PAGE(p->pDest->pBt) ){ 464 nDestTruncate==(int)(PENDING_BYTE_PAGE(p->pDest->pBt)-1) 619 assert( sqlite3_mutex_held(p->pSrc->pBt->mutex) ); 652 assert( sqlite3_mutex_held(p->pSrc->pBt->mutex) ); 694 pTo->pBt->pageSizeFixed = 0 [all...] |
vdbeaux.c | 962 if( i!=1 && sqlite3BtreeSharable(p->db->aDb[i].pBt) ){ 1000 if( i!=1 && (mask & p->lockMask)!=0 && ALWAYS(aDb[i].pBt!=0) ){ 1001 sqlite3BtreeEnter(aDb[i].pBt); 1022 if( i!=1 && (mask & p->lockMask)!=0 && ALWAYS(aDb[i].pBt!=0) ){ 1023 sqlite3BtreeLeave(aDb[i].pBt); [all...] |
vdbe.c | [all...] |
callback.c | 440 Schema *sqlite3SchemaGet(sqlite3 *db, Btree *pBt){ 442 if( pBt ){ 443 p = (Schema *)sqlite3BtreeSchema(pBt, sizeof(Schema), sqlite3SchemaClear);
|
main.c | 712 Btree *pBt = db->aDb[j].pBt; 713 if( pBt && sqlite3BtreeIsInBackup(pBt) ){ 726 if( pDb->pBt ){ 727 sqlite3BtreeClose(pDb->pBt); 728 pDb->pBt = 0; 812 if( db->aDb[i].pBt ){ 813 if( sqlite3BtreeIsInTrans(db->aDb[i].pBt) ){ 816 sqlite3BtreeRollback(db->aDb[i].pBt); [all...] |
btree.h | 182 int sqlite3BtreeSetVersion(Btree *pBt, int iVersion);
|
recover.c | 395 Btree *pBt = NULL; 399 pBt = db->aDb[i].pBt; 403 if( !pBt ){ 407 *pPager = sqlite3BtreePager(pBt); 408 *pnPageSize = sqlite3BtreeGetPageSize(pBt) - sqlite3BtreeGetReserve(pBt); [all...] |
vdbeInt.h | 45 Btree *pBt; /* Separate file holding temporary table */
|
vdbeapi.c | 320 Btree *pBt = db->aDb[i].pBt; 321 if( pBt ){ 322 int nEntry = sqlite3PagerWalCallback(sqlite3BtreePager(pBt)); [all...] |
build.c | 453 if( pDb->pBt==0 ){ [all...] |
/external/chromium_org/third_party/sqlite/amalgamation/ |
sqlite3.c | [all...] |
/external/sqlite/dist/orig/ |
sqlite3.c | [all...] |
/external/sqlite/dist/ |
sqlite3.c | [all...] |