| /sqlite-3.40.0/src/ |
| H A D | json.c | 1143 iRoot += pRoot->u.iAppend; in jsonLookupStep() 1144 pRoot = &pParse->aNode[iRoot]; in jsonLookupStep() 1156 pRoot = &pParse->aNode[iRoot]; in jsonLookupStep() 1175 int iBase = iRoot; in jsonLookupStep() 1218 iRoot += pRoot->u.iAppend; in jsonLookupStep() 1219 pRoot = &pParse->aNode[iRoot]; in jsonLookupStep() 1624 u32 iRoot; in jsonMergePatch() local 1636 iRoot = iTarget; in jsonMergePatch() 1680 assert( pParse->aNode[iRoot].eU==0 || pParse->aNode[iRoot].eU==2 ); in jsonMergePatch() 1684 pParse->aNode[iRoot].u.iAppend = iStart - iRoot; in jsonMergePatch() [all …]
|
| H A D | vdbevtab.c | 209 Pgno iRoot = (Pgno)pOp->p2; in bytecodevtabColumn() local 215 if( !IsVirtual(pTab) && pTab->tnum==iRoot ){ in bytecodevtabColumn() 224 if( pIdx->tnum==iRoot ){ in bytecodevtabColumn()
|
| H A D | dbstat.c | 586 u32 iRoot = (u32)sqlite3_column_int64(pCsr->pStmt, 1); in statNext() local 592 rc = statGetPage(pBt, iRoot, &pCsr->aPage[0]); in statNext() 593 pCsr->aPage[0].iPgno = iRoot; in statNext()
|
| H A D | btree.c | 181 Pgno iRoot, /* Root page of b-tree */ in hasSharedCacheTableLock() argument 217 if( pIdx->tnum==iRoot ){ in hasSharedCacheTableLock() 229 iTab = iRoot; in hasSharedCacheTableLock() 268 static int hasReadConflicts(Btree *pBtree, Pgno iRoot){ in hasReadConflicts() argument 271 if( p->pgnoRoot==iRoot in hasReadConflicts() 758 static int saveAllCursors(BtShared *pBt, Pgno iRoot, BtCursor *pExcept){ in saveAllCursors() argument 763 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ) break; in saveAllCursors() 765 if( p ) return saveCursorsOnList(p, iRoot, pExcept); in saveAllCursors() 777 Pgno iRoot, /* Only save cursor with this iRoot. Save all if zero */ in saveCursorsOnList() argument 781 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ){ in saveCursorsOnList()
|
| H A D | select.c | 7732 Pgno iRoot = pTab->tnum; /* Root page of scanned b-tree */ in sqlite3Select() local 7759 iRoot = pBest->tnum; in sqlite3Select() 7764 sqlite3VdbeAddOp4Int(v, OP_OpenRead, iCsr, (int)iRoot, iDb, 1); in sqlite3Select()
|
| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_tree.c | 549 if( p->iRoot ){ in dump_tree_contents() 832 pDb->treehdr.root.iRoot = iNew; in treeUpdatePtr() 933 pDb->treehdr.root.iRoot = iRoot; in treeInsert() 1091 pDb->treehdr.root.iRoot = 0; in lsmTreeMakeOld() 1466 if( p->iRoot ){ in treeInsertEntry() 1523 if( p->iRoot==0 ){ in treeInsertEntry() 1648 db->treehdr.root.iRoot = iNewptr; in treeDeleteEntry() 1985 iNodePtr = pRoot->iRoot; in lsmTreeCursorSeek() 2212 iNodePtr = pRoot->iRoot; in lsmTreeCursorEnd() 2308 pMark->iRoot = pDb->treehdr.root.iRoot; in lsmTreeMark() [all …]
|
| H A D | lsm_sorted.c | 986 assert( pSeg->iRoot ); in btreeCursorNew() 1594 if( pPtr[1].pSeg->iRoot ){ in segmentPtrFwdPointer() 1780 iPg = (int)pSeg->iRoot; in seekInBtree() 1862 if( pPtr->pSeg->iRoot ){ in seekInSegment() 3483 int iPg = (int)pSeg->iRoot; in mergeWorkerLoadHierarchy() 4420 pLinked->iRoot = 0; in sortedNewToplevel() 4646 assert( pSeg->iRoot>0 ); in sortedBtreeGobble() 5473 LsmPgno iRoot = pSeg->iRoot; in segToString() local 5483 if( iRoot ){ in segToString() 5492 if( iRoot ){ in segToString() [all …]
|
| H A D | lsmInt.h | 236 u32 iRoot; /* Offset of root node in shm file */ member 279 u32 iRoot; member 407 LsmPgno iRoot; /* Root page number (if any) */ member
|
| H A D | lsm_ckpt.c | 315 ckptAppend64(p, piOut, pSeg->iRoot, pRc); in ckptExportSegment() 510 assert( pSegment->nSize==0 && pSegment->iRoot==0 ); in ckptNewSegment() 513 pSegment->iRoot = ckptGobble64(aIn, piIn); in ckptNewSegment()
|
| H A D | lsm_main.c | 436 pSeg->iFirst, pSeg->iLastPg, pSeg->iRoot, pSeg->nSize in lsmAppendSegmentList()
|
| H A D | lsm_file.c | 1847 || fsPageRedirects(pFS, p, p->iRoot) in fsSegmentRedirects() 2453 fsMovePage(pFS, iTo, iFrom, &pSeg->iRoot); in lsmFsMoveBlock()
|
| /sqlite-3.40.0/ext/repair/ |
| H A D | sqlite3_checker.c.in | 51 int iRoot; local 63 if( Tcl_GetIntFromObj(interp, objv[3], &iRoot) ) return TCL_ERROR; 65 sqlite3_test_control(SQLITE_TESTCTRL_IMPOSTER, db, zSchema, 1, iRoot);
|
| /sqlite-3.40.0/tool/ |
| H A D | offsets.c | 26 int iRoot; /* Root page of the table */ member 89 p->iRoot = sqlite3_column_int(pStmt , 0); in ofstRootAndColumn() 316 ofstTrace(&g, "# iRoot = %d\n", g.iRoot); in main() 323 ofstWalkPage(&g, g.iRoot); in main()
|
| /sqlite-3.40.0/ext/recover/ |
| H A D | sqlite3recover.c | 76 u32 iRoot; /* Root page in original database */ member 1065 pNew->iRoot = iRoot; in recoverAddTable() 1169 i64 iRoot = sqlite3_column_int64(pSelect, 0); in recoverWriteSchema1() local 1189 recoverAddTable(p, zTbl, iRoot); in recoverWriteSchema1() 1357 for(pRet=p->pTblList; pRet && pRet->iRoot!=iRoot; pRet=pRet->pNext); in recoverFindTable() 1519 i64 iRoot = 0; in recoverLostAndFoundOnePage() local 1524 if( recoverLostAndFoundFindRoot(p, iPage, &iRoot) ) return; in recoverLostAndFoundOnePage() 1532 sqlite3_bind_int64(pInsert, 1, iRoot); /* rootpgno */ in recoverLostAndFoundOnePage() 1723 i64 iRoot = sqlite3_column_int64(p1->pTbls, 0); in recoverWriteDataStep() local 1724 p1->pTab = recoverFindTable(p, iRoot); in recoverWriteDataStep() [all …]
|
| /sqlite-3.40.0/test/ |
| H A D | corrupt.test | 190 set iRoot [db one {SELECT rootpage FROM sqlite_master WHERE name = 'i1'}] 191 set iOffset [hexio_get_int [hexio_read test.db [expr 12+($iRoot-1)*1024] 2]] 192 set data [hexio_render_int32 [expr $iRoot - 1]] 193 hexio_write test.db [expr ($iRoot-1)*1024 + $iOffset] $data
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | closure.c | 664 sqlite3_int64 iRoot; in closureFilter() local 683 iRoot = sqlite3_value_int64(argv[0]); in closureFilter() 716 rc = closureInsertNode(&sQueue, pCur, iRoot, 0); in closureFilter()
|
| /sqlite-3.40.0/ext/fts3/ |
| H A D | fts3_write.c | 4102 int iRoot; /* Index of root in pWriter->aNodeWriter */ in fts3IncrmergeRelease() local 4110 for(iRoot=FTS_MAX_APPENDABLE_HEIGHT-1; iRoot>=0; iRoot--){ in fts3IncrmergeRelease() 4111 NodeWriter *pNode = &pWriter->aNodeWriter[iRoot]; in fts3IncrmergeRelease() 4120 if( iRoot<0 ) return; in fts3IncrmergeRelease() 4137 if( iRoot==0 ){ in fts3IncrmergeRelease() 4146 iRoot = 1; in fts3IncrmergeRelease() 4148 pRoot = &pWriter->aNodeWriter[iRoot]; in fts3IncrmergeRelease() 4151 for(i=0; i<iRoot; i++){ in fts3IncrmergeRelease()
|
| /sqlite-3.40.0/ext/rbu/ |
| H A D | sqlite3rbu.c | 4671 u32 iRoot = rbuGetU32(&aBuf[52]) ? 1 : 0; in rbuVfsRead() local 4672 rbuPutU32(&aBuf[52], iRoot); /* largest root page number */ in rbuVfsRead()
|