| /PHP_5_3/ext/sqlite/libsqlite/src/ |
| H A D | attach.c | 90 rc = sqliteBtreeFactory(db, zFile, 0, MAX_PAGES, &aNew->pBt); 119 if( db->aDb[i].pBt ){ 120 sqliteBtreeClose(db->aDb[i].pBt); 121 db->aDb[i].pBt = 0; 148 if( pDb->pBt==0 || pDb->zName==0 ) continue; 165 sqliteBtreeClose(pDb->pBt); 166 pDb->pBt = 0;
|
| H A D | btree.c | 365 Btree *pBt; /* The Btree to which this cursor belongs */ member in struct:BtCursor 405 static int cellSize(Btree *pBt, Cell *pCell){ argument 406 int n = NKEY(pBt, pCell->h) + NDATA(pBt, pCell->h); 421 static void defragmentPage(Btree *pBt, MemPage *pPage){ argument 429 pPage->u.hdr.firstCell = SWAB16(pBt, pc); 439 n = cellSize(pBt, pCell); 440 pCell->h.iNext = SWAB16(pBt, pc + n); 451 pFBlk->iSize = SWAB16(pBt, SQLITE_USABLE_SIZE - pc); 453 pPage->u.hdr.firstFree = SWAB16(pBt, p 470 allocateSpace(Btree *pBt, MemPage *pPage, int nByte) argument 519 freeSpace(Btree *pBt, MemPage *pPage, int start, int size) argument 580 initPage(Bt *pBt, MemPage *pPage, Pgno pgnoThis, MemPage *pParent) argument 639 zeroPage(Btree *pBt, MemPage *pPage) argument 686 Btree *pBt; local 731 fileBtreeClose(Btree *pBt) argument 755 fileBtreeSetCacheSize(Btree *pBt, int mxPage) argument 768 fileBtreeSetSafetyLevel(Btree *pBt, int level) argument 783 lockBtree(Btree *pBt) argument 819 unlockBtreeIfUnused(Btree *pBt) argument 832 newDatabase(Btree *pBt) argument 875 fileBtreeBeginTrans(Btree *pBt) argument 904 fileBtreeCommit(Btree *pBt) argument 922 fileBtreeRollback(Btree *pBt) argument 949 fileBtreeBeginCkpt(Btree *pBt) argument 964 fileBtreeCommitCkpt(Btree *pBt) argument 983 fileBtreeRollbackCkpt(Btree *pBt) argument 1035 fileBtreeCursor(Btree *pBt, int iTable, int wrFlag, BtCursor **ppCur) argument 1101 Btree *pBt = pCur->pBt; local 1180 Btree *pBt = pCur->pBt; local 1335 Btree *pBt = pCur->pBt; local 1394 Btree *pBt = pCur->pBt; local 1475 Btree *pBt = pCur->pBt; local 1752 allocatePage(Btree *pBt, MemPage **ppPage, Pgno *pPgno, Pgno nearby) argument 1816 freePage(Btree *pBt, void *pPage, Pgno pgno) argument 1882 clearCell(Btree *pBt, Cell *pCell) argument 1909 fillInCell( Btree *pBt, Cell *pCell, const void *pKey, int nKey, const void *pData,int nData ) argument 2008 reparentChildPages(Btree *pBt, MemPage *pPage) argument 2031 dropCell(Btree *pBt, MemPage *pPage, int idx, int sz) argument 2057 insertCell(Btree *pBt, MemPage *pPage, int i, Cell *pCell, int sz) argument 2083 relinkCellList(Btree *pBt, MemPage *pPage) argument 2179 balance(Btree *pBt, MemPage *pPage, BtCursor *pCur) argument 2629 Btree *pBt = pCur->pBt; local 2692 Btree *pBt = pCur->pBt; local 2776 fileBtreeCreateTable(Btree *pBt, int *piTable) argument 2800 clearDatabasePage(Btree *pBt, Pgno pgno, int freePageFlag) argument 2839 fileBtreeClearTable(Btree *pBt, int iTable) argument 2863 fileBtreeDropTable(Btree *pBt, int iTable) argument 2990 fileBtreeGetMeta(Btree *pBt, int *aMeta) argument 3008 fileBtreeUpdateMeta(Btree *pBt, int *aMeta) argument 3034 fileBtreePageDump(Btree *pBt, int pgno, int recursive) argument 3124 Btree *pBt = pCur->pBt; local 3152 fileBtreePager(Btree *pBt) argument 3162 Btree *pBt; /* The tree being checked out */ member in struct:IntegrityCk 3297 Btree *pBt; local 3424 fileBtreeIntegrityCheck(Btree *pBt, int *aRoot, int nRoot) argument 3488 fileBtreeGetFilename(Btree *pBt) argument [all...] |
| H A D | btree.h | 100 #define btOps(pBt) (*((BtOps **)(pBt))) 103 #define sqliteBtreeClose(pBt) (btOps(pBt)->Close(pBt)) 104 #define sqliteBtreeSetCacheSize(pBt, sz) (btOps(pBt)->SetCacheSize(pBt, sz)) 105 #define sqliteBtreeSetSafetyLevel(pBt, sl) (btOps(pBt) [all...] |
| H A D | btree_rb.c | 1260 static int memRbtreeSetSafetyLevel(Rbtree *pBt, int level){ argument 1431 static const char *memRbtreeGetFilename(Rbtree *pBt){ argument 1438 static int memRbtreeCopyFile(Rbtree *pBt, Rbtree *pBt2){ argument
|
| H A D | build.c | 258 if( pDb->pBt==0 ){ 265 if( pDb->pBt==0 ){ 474 if( isTemp && db->aDb[1].pBt==0 && !pParse->explain ){ 475 int rc = sqliteBtreeFactory(db, 0, 0, MAX_PAGES, &db->aDb[1].pBt); 483 rc = sqliteBtreeBeginTrans(db->aDb[1].pBt); 2022 if( pParse==0 || (db=pParse->db)==0 || db->aDb[0].pBt==0 ) return; 2042 if( pParse==0 || (db=pParse->db)==0 || db->aDb[0].pBt==0 ) return; 2065 if( pParse==0 || (db=pParse->db)==0 || db->aDb[0].pBt==0 ) return; 2090 assert( db->aDb[iDb].pBt!=0 );
|
| H A D | main.c | 259 if( db->aDb[iDb].pBt==0 ) return SQLITE_OK; 260 rc = sqliteBtreeCursor(db->aDb[iDb].pBt, 2, 0, &curMain); 268 rc = sqliteBtreeGetMeta(db->aDb[iDb].pBt, meta); 311 sqliteBtreeClose(db->aDb[iDb].pBt); 312 db->aDb[iDb].pBt = 0; 315 sqliteBtreeSetCacheSize(db->aDb[iDb].pBt, db->cache_size); 316 sqliteBtreeSetSafetyLevel(db->aDb[iDb].pBt, meta[4]==0 ? 2 : meta[4]); 431 sqliteBtreeGetMeta(db->aDb[0].pBt, meta); 433 sqliteBtreeUpdateMeta(db->aDb[0].pBt, meta); 501 rc = sqliteBtreeFactory(db, zFilename, 0, MAX_PAGES, &db->aDb[0].pBt); [all...] |
| H A D | pragma.c | 95 if( db->aDb[1].pBt!=0 ){ 101 sqliteBtreeClose(db->aDb[1].pBt); 102 db->aDb[1].pBt = 0; 224 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); 257 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); 319 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); 320 sqliteBtreeSetSafetyLevel(db->aDb[0].pBt, db->safety_level); 347 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); 348 sqliteBtreeSetSafetyLevel(db->aDb[0].pBt, db->safety_level); 493 if( db->aDb[i].pBt [all...] |
| H A D | sqliteInt.h | 262 Btree *pBt; /* The B*Tree structure for this database file */ member in struct:Db
|
| H A D | vdbe.c | 2146 if( i>=0 && i<db->nDb && db->aDb[i].pBt && db->aDb[i].inTrans==1 ){ 2147 rc = sqliteBtreeBeginCkpt(db->aDb[i].pBt); 2174 while( db->aDb[i].pBt!=0 && busy ){ 2175 rc = sqliteBtreeBeginTrans(db->aDb[i].pBt); 2228 rc = sqliteBtreeCommit(db->aDb[i].pBt); 2275 assert( db->aDb[pOp->p1].pBt!=0 ); 2276 rc = sqliteBtreeGetMeta(db->aDb[pOp->p1].pBt, aMeta); 2297 assert( db->aDb[pOp->p1].pBt!=0 ); 2300 rc = sqliteBtreeGetMeta(db->aDb[pOp->p1].pBt, aMeta); 2303 rc = sqliteBtreeUpdateMeta(db->aDb[pOp->p1].pBt, aMet [all...] |
| H A D | vdbeInt.h | 76 Btree *pBt; /* Separate file holding temporary table */ member in struct:Cursor
|
| H A D | vdbeaux.c | 734 if( pCx->pBt ){ 735 sqliteBtreeClose(pCx->pBt); 858 if( db->aDb[i].pBt ){ 859 sqliteBtreeRollbackCkpt(db->aDb[i].pBt); 884 if( db->aDb[i].pBt && db->aDb[i].inTrans==2 ){ 885 sqliteBtreeCommitCkpt(db->aDb[i].pBt);
|
| /PHP_5_3/ext/sqlite3/libsqlite/ |
| H A D | sqlite3.c | 8070 SQLITE_PRIVATE int sqlite3BtreeSetVersion(Btree *pBt, int iVersion); 9272 Btree *pBt; /* The B*Tree structure for this database file */ member in struct:Db 12533 Btree *pBt; /* Separate file holding temporary table */ member in struct:VdbeCursor 13041 Btree *pBt = db->aDb[i].pBt; local 13042 if( pBt ){ 13043 Pager *pPager = sqlite3BtreePager(pBt); 15126 void **pBt; local 15140 pBt = (void**)&z[mem.nTitle]; 15141 pHdr = (struct MemBlockHdr*)&pBt[me 15185 void **pBt; local 15348 void **pBt = (void**)pHdr; local 15361 void **pBt; local 46888 BtShared *pBt; /* Pointer to BtShared that this page is part of */ member in struct:MemPage 46942 BtShared *pBt; /* Sharable content of this btree */ member in struct:Btree 47084 BtShared *pBt; /* The BtShared this cursor points to */ member in struct:BtCursor 47225 BtShared *pBt; /* The tree being checked out */ member in struct:IntegrityCk 47268 BtShared *pBt = p->pBt; local 47738 BtShared *pBt = p->pBt; local 47810 BtShared *pBt = p->pBt; local 47874 BtShared *pBt = p->pBt; local 47919 BtShared *pBt = p->pBt; local 47962 invalidateAllOverflowCache(BtShared *pBt) argument 47989 BtShared *pBt = pBtree->pBt; local 48040 btreeSetHasContent(BtShared *pBt, Pgno pgno) argument 48062 btreeGetHasContent(BtShared *pBt, Pgno pgno) argument 48071 btreeClearHasContent(BtShared *pBt) argument 48133 saveAllCursors(BtShared *pBt, Pgno iRoot, BtCursor *pExcept) argument 48253 ptrmapPageno(BtShared *pBt, Pgno pgno) argument 48277 ptrmapPut(BtShared *pBt, Pgno key, u8 eType, Pgno parent, int *pRC) argument 48329 ptrmapGet(BtShared *pBt, Pgno key, u8 *pEType, Pgno *pPgno) argument 48861 BtShared *pBt; /* A copy of pPage->pBt */ local 48906 BtShared *pBt; /* The main btree structure */ local 49006 BtShared *pBt = pPage->pBt; local 49039 btreePageFromDbPage(DbPage *pDbPage, Pgno pgno, BtShared *pBt) argument 49060 btreeGetPage( BtShared *pBt, Pgno pgno, MemPage **ppPage, int noContent ) argument 49081 btreePageLookup(BtShared *pBt, Pgno pgno) argument 49095 btreePagecount(BtShared *pBt) argument 49112 getAndInitPage( BtShared *pBt, Pgno pgno, MemPage **ppPage ) argument 49183 BtShared *pBt = (BtShared*)pArg; local 49221 BtShared *pBt = 0; /* Shared part of btree structure */ local 49479 removeFromSharingList(BtShared *pBt) argument 49517 allocateTempSpace(BtShared *pBt) argument 49526 freeTempSpace(BtShared *pBt) argument 49535 BtShared *pBt = p->pBt; local 49605 BtShared *pBt = p->pBt; local 49628 BtShared *pBt = p->pBt; local 49643 BtShared *pBt = p->pBt; local 49675 BtShared *pBt = p->pBt; local 49808 lockBtree(BtShared *pBt) argument 49958 unlockBtreeIfUnused(BtShared *pBt) argument 49975 newDatabase(BtShared *pBt) argument 50051 BtShared *pBt = p->pBt; local 50193 BtShared *pBt = pPage->pBt; local 50298 relocatePage( BtShared *pBt, MemPage *pDbPage, u8 eType, Pgno iPtrPage, Pgno iFreePage, int isCommit ) argument 50392 incrVacuumStep(BtShared *pBt, Pgno nFin, Pgno iLastPg) argument 50503 BtShared *pBt = p->pBt; local 50530 autoVacuumCommit(BtShared *pBt) argument 50620 BtShared *pBt = p->pBt; local 50642 BtShared *pBt = p->pBt; local 50711 BtShared *pBt = p->pBt; local 50752 countWriteCursors(BtShared *pBt) argument 50806 BtShared *pBt = p->pBt; local 50874 BtShared *pBt = p->pBt; local 50906 BtShared *pBt = p->pBt; local 50965 BtShared *pBt = p->pBt; /* Shared b-tree handle */ local 51082 BtShared *pBt = pCur->pBt; local 51227 getOverflowPage( BtShared *pBt, Pgno ovfl, MemPage **ppPage, Pgno *pPgnoNext ) argument 51356 BtShared *pBt = pCur->pBt; /* Btree this cursor belongs to */ local 51629 BtShared *pBt = pCur->pBt; local 51720 BtShared *pBt = p->pBt; local 52270 allocateBtreePage( BtShared *pBt, MemPage **ppPage, Pgno *pPgno, Pgno nearby, u8 exact ) argument 52549 freePage2(BtShared *pBt, MemPage *pMemPage, Pgno iPage) argument 52681 BtShared *pBt = pPage->pBt; local 52767 BtShared *pBt = pPage->pBt; local 53136 BtShared *const pBt = pPage->pBt; /* B-Tree Database */ local 53277 BtShared * const pBt = pFrom->pBt; local 53362 BtShared *pBt; /* The whole database */ local 53997 BtShared *pBt = pRoot->pBt; /* The BTree */ local 54196 BtShared *pBt = p->pBt; local 54326 BtShared *pBt = p->pBt; local 54448 BtShared *pBt = p->pBt; local 54594 clearDatabasePage( BtShared *pBt, Pgno pgno, int freePageFlag, int *pnChange ) argument 54654 BtShared *pBt = p->pBt; local 54694 BtShared *pBt = p->pBt; local 54817 BtShared *pBt = p->pBt; local 54841 BtShared *pBt = p->pBt; local 55127 BtShared *pBt; local 55349 BtShared *pBt = p->pBt; local 55489 BtShared *pBt = p->pBt; local 55538 BtShared *pBt = p->pBt; local 55657 BtShared *pBt = pBtree->pBt; local 59302 Btree *pBt = db->aDb[i].pBt; local 59334 Btree *pBt = db->aDb[i].pBt; local 59346 Btree *pBt = db->aDb[i].pBt; local 59401 Btree *pBt = db->aDb[i].pBt; local 59446 Btree *pBt = db->aDb[i].pBt; local 59479 Btree *pBt = db->aDb[i].pBt; local 59578 Btree *pBt = db->aDb[i].pBt; local 61114 Btree *pBt = db->aDb[i].pBt; local 63053 Btree *pBt; member in struct:vdbeExecUnion::OP_Transaction_stack_vars 63066 Btree *pBt; member in struct:vdbeExecUnion::OP_VerifyCookie_stack_vars 63263 Btree *pBt; /* Btree to change journal mode of */ member in struct:vdbeExecUnion::OP_JournalMode_stack_vars 63270 Btree *pBt; member in struct:vdbeExecUnion::OP_IncrVacuum_stack_vars 68748 Btree *pBt; local 80775 Btree *pBt; local 81536 sqlite3SchemaGet(sqlite3 *db, Btree *pBt) argument 88491 Btree *pBt = pDb->pBt; local 88516 Btree *pBt = pDb->pBt; local 88685 Btree *pBt = pDb->pBt; local 89531 Btree *pBt; local 90064 Btree *pBt = db->aDb[iDb].pBt; /* Btree database to read cookie from */ local 90180 Btree *pBt = db->aDb[i].pBt; local 108639 Btree *pBt = db->aDb[j].pBt; local [all...] |