Home
last modified time | relevance | path

Searched refs:iKey (Results 1 – 22 of 22) sorted by relevance

/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest1.c106 int iKey, in testDatasourceFetch() argument
212 iKey = j; in testDbContents()
218 if( iFirst>iKey || iKey>iLast ){ in testDbContents()
549 assert( iKey<100000 && iKey>=0 ); in dt3PutKey()
578 u32 iKey; in doDataTest3() local
584 dt3PutKey(aKey, iKey); in doDataTest3()
587 abPresent[iKey] = 1; in doDataTest3()
594 u32 iKey; in doDataTest3() local
597 dt3PutKey(aKey1, iKey-1); in doDataTest3()
598 dt3PutKey(aKey2, iKey+1); in doDataTest3()
[all …]
H A Dlsmtest5.c82 int iKey, /* Key value */ in dbFormatKey() argument
86 snprintf(aBuf, DB_KEY_BYTES, "k.%.10d", iKey); in dbFormatKey()
163 iFirst = f*(iKey/f); in dbComputeCksum()
181 int iKey, /* Key to read */ in dbReadOperation() argument
193 iCksum = dbComputeCksum(pParam, pDb, i, iKey, pRc); in dbReadOperation()
197 dbFormatKey(pParam, i, iKey, zKey); in dbReadOperation()
216 assert( iKey>=0 && iKey<pParam->nKey ); in dbWriteOperation()
217 dbFormatKey(pParam, 0, iKey, zKey); in dbWriteOperation()
233 dbFormatKey(pParam, i, iKey, zKey); in dbWriteOperation()
536 int iKey; in mt1Main() local
[all …]
H A Dlsmtest_main.c729 int iKey = testPrngValue(i*nWrite+iFetch) % nContent; in do_speed_test2() local
731 testDatasourceFetch(pDb, pData, iKey, &rc); in do_speed_test2()
736 testDatasourceEntry(pData, iKey, &pKey, &nKey, 0, 0); in do_speed_test2()
959 u32 iKey; in do_speed_tests() local
962 iKey = testPrngValue(iSel) % (i+nSelStep); in do_speed_tests()
963 testPrngArray(iKey, aKey, ArraySize(aKey)); in do_speed_tests()
980 u32 iKey; in do_speed_tests() local
988 iKey = testPrngValue(iSel) % nRow; in do_speed_tests()
989 testPrngArray(iKey, aKey, ArraySize(aKey)); in do_speed_tests()
993 testPrngArray(iKey, aVal, ArraySize(aVal)); in do_speed_tests()
H A Dlsmtest6.c157 int iKey, in testOomFetchData() argument
162 testDatasourceEntry(pData, iKey, &pKey, &nKey, &pVal, &nVal); in testOomFetchData()
182 int iKey, in testOomWriteData() argument
187 testDatasourceEntry(pData, iKey, &pKey, &nKey, &pVal, &nVal); in testOomWriteData()
H A Dlsmtest.h253 int iKey,
/sqlite-3.40.0/test/
H A Dkvtest.c547 int iKey = sqlite3_column_int(pStmt, 0); in exportMain() local
556 sqlite3_snprintf(20, zTail, "%02d/%02d", iKey/10000, (iKey/100)%100); in exportMain()
559 iKey/10000, (iKey/100)%100, iKey%100); in exportMain()
893 iKey = integerValue(argv[++i]); in runMain()
978 (iKey/100)%100, iKey%100); in runMain()
1043 sqlite3_bind_int(pStmt, 1, iKey); in runMain()
1052 iKey++; in runMain()
1053 if( iKey>iMax ) iKey = 1; in runMain()
1055 iKey--; in runMain()
1056 if( iKey<=0 ) iKey = iMax; in runMain()
[all …]
H A Dtkt2332.test30 set ::iKey 1
38 db eval { INSERT INTO blobs VALUES($::iKey, zeroblob($Len)) }
43 SELECT length(v) FROM blobs WHERE k = $::iKey;
48 set ::fd [db incrblob blobs v $::iKey]
54 execsql { SELECT length(v) FROM blobs WHERE k = $::iKey; }
58 lindex [execsql {SELECT v FROM blobs WHERE k = $::iKey}] 0
61 incr ::iKey
/sqlite-3.40.0/src/
H A Dpcache1.c675 if( pPage->iKey>=iLimit ){ in pcache1TruncateUnsafe()
876 unsigned int iKey, in pcache1FetchStage2() argument
928 pPage->iKey = iKey; in pcache1FetchStage2()
936 if( iKey>pCache->iMaxKey ){ in pcache1FetchStage2()
937 pCache->iMaxKey = iKey; in pcache1FetchStage2()
1004 unsigned int iKey, in pcache1FetchNoMutex() argument
1012 while( pPage && pPage->iKey!=iKey ){ pPage = pPage->pNext; } in pcache1FetchNoMutex()
1034 unsigned int iKey, in pcache1FetchWithMutex() argument
1049 unsigned int iKey, in pcache1Fetch() argument
1123 assert( pPage->iKey==iOld ); in pcache1Rekey()
[all …]
H A Ddelete.c537 iKey = iPk; in sqlite3DeleteFrom()
539 iKey = ++pParse->nMem; in sqlite3DeleteFrom()
540 sqlite3ExprCodeGetColumnOfTable(v, pTab, iTabCur, -1, iKey); in sqlite3DeleteFrom()
562 iKey = ++pParse->nMem; in sqlite3DeleteFrom()
564 sqlite3VdbeAddOp4(v, OP_MakeRecord, iPk, nPk, iKey, in sqlite3DeleteFrom()
566 sqlite3VdbeAddOp4Int(v, OP_IdxInsert, iEphCur, iKey, iPk, nPk); in sqlite3DeleteFrom()
570 sqlite3VdbeAddOp2(v, OP_RowSetAdd, iRowSet, iKey); in sqlite3DeleteFrom()
608 sqlite3VdbeAddOp3(v, OP_Column, iEphCur, 0, iKey); in sqlite3DeleteFrom()
610 sqlite3VdbeAddOp2(v, OP_RowData, iEphCur, iKey); in sqlite3DeleteFrom()
632 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, 1, iKey, pVTab, P4_VTAB); in sqlite3DeleteFrom()
[all …]
H A Dwal.c1117 int iKey; /* Hash key */ in walCleanupHash() local
1119 for(iKey=walHash(sLoc.aPgno[j]);sLoc.aHash[iKey];iKey=walNextHash(iKey)){ in walCleanupHash()
1120 if( sLoc.aHash[iKey]==j+1 ) break; in walCleanupHash()
1122 assert( sLoc.aHash[iKey]==j+1 ); in walCleanupHash()
1172 for(iKey=walHash(iPage); sLoc.aHash[iKey]; iKey=walNextHash(iKey)){ in walIndexAppend()
1197 for(iKey=walHash(sLoc.aPgno[i]); in walIndexAppend()
1198 sLoc.aHash[iKey]; in walIndexAppend()
1199 iKey=walNextHash(iKey)){ in walIndexAppend()
1202 assert( sLoc.aHash[iKey]==i+1 ); in walIndexAppend()
3197 iKey = walHash(pgno); in sqlite3WalFindFrame()
[all …]
H A Djson.c1021 int iKey; in jsonParseCached() local
1026 for(iKey=0; iKey<JSON_CACHE_SZ; iKey++){ in jsonParseCached()
1029 iMinKey = iKey; in jsonParseCached()
1040 iMinKey = iKey; in jsonParseCached()
2251 pUp->u.iKey = 0; in jsonEachNext()
2253 pUp->u.iKey++; in jsonEachNext()
2325 jsonPrintf(30, pStr, "[%d]", pUp->u.iKey); in jsonEachComputePath()
2347 u32 iKey; in jsonEachColumn() local
2351 iKey = p->sParse.aNode[p->sParse.aUp[p->i]].u.iKey; in jsonEachColumn()
2353 iKey = p->iRowid; in jsonEachColumn()
[all …]
H A Dfkey.c834 int iKey; in fkParentIsModified() local
835 for(iKey=0; iKey<pTab->nCol; iKey++){ in fkParentIsModified()
836 if( aChange[iKey]>=0 || (iKey==pTab->iPKey && bChngRowid) ){ in fkParentIsModified()
837 Column *pCol = &pTab->aCol[iKey]; in fkParentIsModified()
H A Dvdbeblob.c425 sqlite3_int64 iKey; in blobReadWrite() local
426 iKey = sqlite3BtreeIntegerKey(p->pCsr); in blobReadWrite()
430 v, v->apCsr[0], SQLITE_DELETE, p->zDb, p->pTab, iKey, -1, p->iCol in blobReadWrite()
H A Dbtree.c1231 iKey = *pIter; in btreeParseCellPtr()
1232 if( iKey>=0x80 ){ in btreeParseCellPtr()
1234 iKey = ((iKey&0x7f)<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1236 iKey = (iKey<<7) | ((x =*++pIter) & 0x7f); in btreeParseCellPtr()
1238 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1240 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1242 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1244 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1246 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1248 iKey = (iKey<<8) | (*++pIter); in btreeParseCellPtr()
[all …]
H A Dvdbe.c4605 i64 iKey; /* The rowid we are to seek to */ in sqlite3VdbeExec() local
4659 c = sqlite3IntFloatCompare(iKey, pIn3->u.r); in sqlite3VdbeExec()
4685 pC->movetoTarget = iKey; /* Used by OP_Delete */ in sqlite3VdbeExec()
5269 u64 iKey; in sqlite3VdbeExec() local
5285 iKey = x.u.i; in sqlite3VdbeExec()
5294 iKey = pIn3->u.i; in sqlite3VdbeExec()
5306 rc = sqlite3BtreeTableMoveto(pCrsr, iKey, 0, &res); in sqlite3VdbeExec()
5308 pC->movetoTarget = iKey; /* Used by OP_Delete */ in sqlite3VdbeExec()
5622 iKey = pOp->p3 ? aMem[pOp->p3].u.i : 0; in sqlite3VdbeExec()
5687 i64 iKey = sqlite3BtreeIntegerKey(pC->uc.pCursor); in sqlite3VdbeExec() local
[all …]
H A Dselect.c1716 int iKey = iCol+1; in generateSortTail() local
1726 sqlite3VdbeAddOp3(v, OP_Column, iSortTab, iKey++, regKey); in generateSortTail()
1734 sqlite3VdbeAddOp3(v, OP_Column, iSortTab, iKey++, regKey+k); in generateSortTail()
/sqlite-3.40.0/ext/fts5/
H A Dfts5_unicode2.c739 u16 iKey; in sqlite3Fts5UnicodeCategory() local
746 iKey = (iCode & 0xFFFF); in sqlite3Fts5UnicodeCategory()
750 if( iKey>=aFts5UnicodeMap[iTest] ){ in sqlite3Fts5UnicodeCategory()
759 if( iKey>=(aFts5UnicodeMap[iRes]+(aFts5UnicodeData[iRes]>>5)) ) return 0; in sqlite3Fts5UnicodeCategory()
762 return ((iKey - aFts5UnicodeMap[iRes]) & 0x01) ? 5 : 9; in sqlite3Fts5UnicodeCategory()
H A Dfts5_index.c6157 i64 iKey; in fts5IndexIntegrityCheckSegment() local
6166 iKey = FTS5_SEGMENT_ROWID(iSegid, iPg); in fts5IndexIntegrityCheckSegment()
6167 pLeaf = fts5DataRead(p, iKey); in fts5IndexIntegrityCheckSegment()
6177 iKey = FTS5_SEGMENT_ROWID(iSegid, iPrevLeaf); in fts5IndexIntegrityCheckSegment()
6178 pLeaf = fts5DataRead(p, iKey); in fts5IndexIntegrityCheckSegment()
6343 static void fts5DebugRowid(int *pRc, Fts5Buffer *pBuf, i64 iKey){ in fts5DebugRowid() argument
6345 fts5DecodeRowid(iKey, &iSegid, &bDlidx, &iHeight, &iPgno); in fts5DebugRowid()
6348 if( iKey==FTS5_AVERAGES_ROWID ){ in fts5DebugRowid()
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_sorted.c594 int iKey, in pageGetBtreeKey() argument
608 assert( iKey>=0 && iKey<pageGetNRec(aData, nData) ); in pageGetBtreeKey()
1989 int iKey, in multiCursorGetKey() argument
1998 switch( iKey ){ in multiCursorGetKey()
2750 int iKey; in mcursorLocationOk() local
2825 iKey = pCsr->aTree[1]; in mcursorLocationOk()
2826 for(i=0; i<iKey; i++){ in mcursorLocationOk()
3126 if( iKey==CURSOR_DATA_TREE0 || iKey==CURSOR_DATA_TREE1 ){ in lsmMCursorValid()
3229 if( iKey==CURSOR_DATA_TREE0 || iKey==CURSOR_DATA_TREE1 ){ in multiCursorAdvance()
3275 if( iKey==CURSOR_DATA_TREE0 || iKey==CURSOR_DATA_TREE1 ){ in lsmMCursorKey()
[all …]
H A Dlsm_tree.c1370 static void treeOverwriteKey(lsm_db *db, TreeCursor *pCsr, u32 iKey, int *pRc){ in treeOverwriteKey() argument
1387 pNew->aiKeyPtr[iCell] = iKey; in treeOverwriteKey()
1854 u32 iKey; in lsmTreeDelete() local
1860 iKey = csr.apTreeNode[csr.iNode]->aiKeyPtr[csr.aiCell[csr.iNode]]; in lsmTreeDelete()
1863 treeOverwriteKey(db, &csr, iKey, &rc); in lsmTreeDelete()
1864 pKey = treeShmkey(db, iKey, TKV_LOADKEY, &blob, &rc); in lsmTreeDelete()
/sqlite-3.40.0/ext/fts3/unicode/
H A Dmkunicode.tcl715 iKey = (iCode & 0xFFFF);
731 return ((iKey - aFts5UnicodeMap[iRes]) & 0x01) ? $C(Ll) : $C(Lu);
/sqlite-3.40.0/ext/rtree/
H A Drtree.c4082 i64 iKey, /* Key for mapping */ in rtreeCheckMapping() argument
4101 sqlite3_bind_int64(pStmt, 1, iKey); in rtreeCheckMapping()
4105 iKey, iVal, (bLeaf ? "%_rowid" : "%_parent") in rtreeCheckMapping()
4112 iKey, ii, (bLeaf ? "%_rowid" : "%_parent"), iKey, iVal in rtreeCheckMapping()