Home
last modified time | relevance | path

Searched refs:pKey (Results 1 – 25 of 40) sorted by relevance

12

/sqlite-3.40.0/ext/fts1/
H A Dft_hash.c73 if( pH->copyKey && elem->pKey ){ in HashClear()
74 pH->xFree(elem->pKey); in HashClear()
99 uptr x = Addr(pKey);
270 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){ in findElementGivenHash()
305 pH->xFree(elem->pKey); in removeElementGivenHash()
328 h = (*xHash)(pKey,nKey); in HashFind()
359 hraw = (*xHash)(pKey, nKey); in HashInsert()
375 if( pH->copyKey && pKey!=0 ){ in HashInsert()
377 if( new_elem->pKey==0 ){ in HashInsert()
381 memcpy((void*)new_elem->pKey, pKey, nKey); in HashInsert()
[all …]
H A Dfts1_hash.c80 if( pH->copyKey && elem->pKey ){ in sqlite3Fts1HashClear()
81 pH->xFree(elem->pKey); in sqlite3Fts1HashClear()
228 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){ in findElementGivenHash()
262 if( pH->copyKey && elem->pKey ){ in removeElementGivenHash()
263 pH->xFree(elem->pKey); in removeElementGivenHash()
286 h = (*xHash)(pKey,nKey); in sqlite3Fts1HashFind()
322 hraw = (*xHash)(pKey, nKey); in sqlite3Fts1HashInsert()
338 if( pH->copyKey && pKey!=0 ){ in sqlite3Fts1HashInsert()
340 if( new_elem->pKey==0 ){ in sqlite3Fts1HashInsert()
344 memcpy((void*)new_elem->pKey, pKey, nKey); in sqlite3Fts1HashInsert()
[all …]
H A Dft_hash.h55 void *pKey; int nKey; /* Key associated with this element */ member
84 void *HashInsert(Hash*, const void *pKey, int nKey, void *pData);
85 void *HashFind(const Hash*, const void *pKey, int nKey);
103 #define HashKey(E) ((E)->pKey)
H A Dfts1_hash.h55 void *pKey; int nKey; /* Key associated with this element */ member
77 void *sqlite3Fts1HashInsert(fts1Hash*, const void *pKey, int nKey, void *pData);
78 void *sqlite3Fts1HashFind(const fts1Hash*, const void *pKey, int nKey);
104 #define fts1HashKey(E) ((E)->pKey)
/sqlite-3.40.0/ext/fts3/
H A Dfts3_hash.c85 if( pH->copyKey && elem->pKey ){ in sqlite3Fts3HashClear()
86 fts3HashFree(elem->pKey); in sqlite3Fts3HashClear()
236 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){ in fts3FindElementByHash()
271 fts3HashFree(elem->pKey); in fts3RemoveElementByHash()
284 const void *pKey, in sqlite3Fts3HashFindElem() argument
293 h = (*xHash)(pKey,nKey); in sqlite3Fts3HashFindElem()
340 hraw = (*xHash)(pKey, nKey); in sqlite3Fts3HashInsert()
363 if( pH->copyKey && pKey!=0 ){ in sqlite3Fts3HashInsert()
365 if( new_elem->pKey==0 ){ in sqlite3Fts3HashInsert()
369 memcpy((void*)new_elem->pKey, pKey, nKey); in sqlite3Fts3HashInsert()
[all …]
H A Dfts3_hash.h53 void *pKey; int nKey; /* Key associated with this element */ member
75 void *sqlite3Fts3HashInsert(Fts3Hash*, const void *pKey, int nKey, void *pData);
76 void *sqlite3Fts3HashFind(const Fts3Hash*, const void *pKey, int nKey);
104 #define fts3HashKey(E) ((E)->pKey)
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_tdb2.cc96 if( pKey==0 ) break; in test_kc_delete_range()
108 delete [] pKey; in test_kc_delete_range()
113 delete [] pKey; in test_kc_delete_range()
122 void *pKey, in test_kc_fetch() argument
181 delete [] pKey; in test_kc_scan()
187 delete [] pKey; in test_kc_scan()
193 delete [] pKey; in test_kc_scan()
269 key.mv_data = pKey; in test_mdb_write()
291 key.mv_data = pKey; in test_mdb_delete()
307 void *pKey, in test_mdb_fetch() argument
[all …]
H A Dlsmtest_tdb.c65 void *pKey, in test_leveldb_write() argument
85 void *pKey, in test_leveldb_fetch() argument
94 if( pKey==0 ) return 0; in test_leveldb_fetch()
240 void *pKey, in kc_write() argument
262 void *pKey, in kc_fetch() argument
326 void *pKey, in mdb_write() argument
340 void *pKey, in mdb_fetch() argument
444 void *pKey, in sql_write() argument
477 void *pKey, in sql_fetch() argument
486 if( pKey==0 ){ in sql_fetch()
[all …]
H A Dlsmtest6.c86 void *pKey, int nKey, in testOomFetch() argument
125 void *pKey, int nKey, in testOomWrite() argument
133 rc = lsm_insert(pDb, pKey, nKey, pVal, nVal); in testOomWrite()
160 void *pKey; int nKey; in testOomFetchData() local
163 testOomFetch(pOom, pDb, pKey, nKey, pVal, nVal, pRc); in testOomFetchData()
185 void *pKey; int nKey; in testOomWriteData() local
188 testOomWrite(pOom, pDb, pKey, nKey, pVal, nVal, pRc); in testOomWriteData()
195 const void *pKey, int nKey, in testOomScan() argument
211 rc = lsm_csr_seek(pCsr, pKey, nKey, LSM_SEEK_LE); in testOomScan()
433 void *pKey; int nKey; in setup_populate_db2() local
[all …]
H A Dlsmtest1.c109 void *pKey; int nKey; /* Database key to query for */ in testDatasourceFetch() local
112 testDatasourceEntry(pData, iKey, &pKey, &nKey, &pVal, &nVal); in testDatasourceFetch()
113 testFetch(pDb, pKey, nKey, pVal, nVal, pRc); in testDatasourceFetch()
173 void *pKey; int nKey; /* Database key to insert */ in testDbContents() local
176 rc = tdb_write(pDb2, pKey, nKey, pVal, nVal); in testDbContents()
223 testFetch(pDb, pKey, nKey, pVal, nVal, &rc); in testDbContents()
247 void *pCtx, void *pKey, int nKey, void *pVal, int nVal
249 printf("%s\n", (char *)pKey);
419 void *pKey; int nKey; in testCompareDb() local
420 testDatasourceEntry(pData, i, &pKey, &nKey, 0, 0); in testCompareDb()
[all …]
H A Dlsmtest_main.c43 rc = tdb_fetch(pDb, pKey, nKey, &pDbVal, &nDbVal); in testFetch()
61 rc = tdb_write(pDb, pKey, nKey, pVal, nVal); in testWrite()
72 *pRc = rc = tdb_delete(pDb, pKey, nKey); in testDelete()
141 void *pKey, int nKey, in testFetchCompare() argument
156 rc = tdb_fetch(pDb, pKey, nKey, &pDbVal2, &nDbVal2); in testFetchCompare()
194 void *pKey, int nKey, in scanCompareCb() argument
198 u8 *aKey = (u8 *)pKey; in scanCompareCb()
213 testFetch(p->pDb, pKey, nKey, pVal, nVal, &rc); in scanCompareCb()
245 (memcmp(p->pKey1, pKey, MIN(p->nKey1, nKey))>0) in scanCompareCb()
251 (memcmp(p->pKey2, pKey, MIN(p->nKey2, nKey))<0) in scanCompareCb()
[all …]
H A Dlsmtest3.c99 void *pKey; int nKey; in testWriteDatasource() local
101 testDatasourceEntry(pData, i, &pKey, &nKey, &pVal, &nVal); in testWriteDatasource()
102 testWrite(pDb, pKey, nKey, pVal, nVal, pRc); in testWriteDatasource()
109 void *pKey; int nKey; in testDeleteDatasource() local
110 testDatasourceEntry(pData, i, &pKey, &nKey, 0, 0); in testDeleteDatasource()
111 testDelete(pDb, pKey, nKey, pRc); in testDeleteDatasource()
H A Dlsmtest2.c24 void *pKey, int nKey, in scanCksumDb() argument
32 p->cksum1 += ((u8 *)pKey)[i]; in scanCksumDb()
46 void *pKey, int nKey, in scanCountDb() argument
52 unused_parameter(pKey); in scanCountDb()
394 void *pKey; int nKey; in crash_test2() local
397 testDatasourceEntry(pData, 100+iIns, &pKey, &nKey, &pVal, &nVal); in crash_test2()
398 testrc = tdb_write(pDb, pKey, nKey, pVal, nVal); in crash_test2()
H A Dlsmtest_tdb.h46 int tdb_write(TestDb *pDb, void *pKey, int nKey, void *pVal, int nVal);
51 int tdb_delete(TestDb *pDb, void *pKey, int nKey);
63 int tdb_fetch(TestDb *pDb, void *pKey, int nKey, void **ppVal, int *pnVal);
124 void (*xCallback)(void *pCtx, void *pKey, int nKey, void *pVal, int nVal)
H A Dlsmtest_tdb3.c570 void *pKey, in test_lsm_write() argument
588 rc = lsm_insert(pDb->db, pKey, nKey, pVal, nVal); in test_lsm_write()
595 return lsm_delete(pDb->db, pKey, nKey); in test_lsm_delete()
609 void *pKey, in test_lsm_fetch() argument
618 if( pKey==0 ) return LSM_OK; in test_lsm_fetch()
627 rc = lsm_csr_seek(csr, pKey, nKey, LSM_SEEK_EQ); in test_lsm_fetch()
699 const void *pKey; int nKey; in test_lsm_scan() local
703 lsm_csr_key(csr, &pKey, &nKey); in test_lsm_scan()
707 cmp = memcmp(pFirst, pKey, MIN(nKey, nFirst)); in test_lsm_scan()
710 cmp = memcmp(pLast, pKey, MIN(nKey, nLast)); in test_lsm_scan()
[all …]
/sqlite-3.40.0/ext/fts2/
H A Dfts2_hash.c87 if( pH->copyKey && elem->pKey ){ in sqlite3Fts2HashClear()
88 fts2HashFree(elem->pKey); in sqlite3Fts2HashClear()
235 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){ in findElementGivenHash()
269 if( pH->copyKey && elem->pKey ){ in removeElementGivenHash()
270 fts2HashFree(elem->pKey); in removeElementGivenHash()
293 h = (*xHash)(pKey,nKey); in sqlite3Fts2HashFind()
329 hraw = (*xHash)(pKey, nKey); in sqlite3Fts2HashInsert()
345 if( pH->copyKey && pKey!=0 ){ in sqlite3Fts2HashInsert()
347 if( new_elem->pKey==0 ){ in sqlite3Fts2HashInsert()
351 memcpy((void*)new_elem->pKey, pKey, nKey); in sqlite3Fts2HashInsert()
[all …]
H A Dfts2_hash.h53 void *pKey; int nKey; /* Key associated with this element */ member
75 void *sqlite3Fts2HashInsert(fts2Hash*, const void *pKey, int nKey, void *pData);
76 void *sqlite3Fts2HashFind(const fts2Hash*, const void *pKey, int nKey);
102 #define fts2HashKey(E) ((E)->pKey)
/sqlite-3.40.0/src/
H A Dhash.c135 unsigned int h = strHash(elem->pKey) % new_size; in rehash()
149 const char *pKey, /* The key we are searching for */ in findElementWithHash() argument
159 h = strHash(pKey) % pH->htsize; in findElementWithHash()
171 if( sqlite3StrICmp(elem->pKey,pKey)==0 ){ in findElementWithHash()
219 assert( pKey!=0 ); in sqlite3HashFind()
220 return findElementWithHash(pH, pKey, 0)->data; in sqlite3HashFind()
243 assert( pKey!=0 ); in sqlite3HashInsert()
244 elem = findElementWithHash(pH,pKey,&h); in sqlite3HashInsert()
251 elem->pKey = pKey; in sqlite3HashInsert()
258 new_elem->pKey = pKey; in sqlite3HashInsert()
[all …]
H A Dhash.h62 const char *pKey; /* Key associated with this element */ member
69 void *sqlite3HashInsert(Hash*, const char *pKey, void *pData);
70 void *sqlite3HashFind(const Hash*, const char *pKey);
H A Dtest_wsd.c34 void *pKey; member
66 for(pVar=pGlobal->aData[iHash]; pVar && pVar->pKey!=K; pVar=pVar->pNext); in sqlite3_wsd_find()
73 pVar->pKey = K; in sqlite3_wsd_find()
H A Dattach.c336 Expr *pKey /* Database key for encryption extension */ in codeAttach() argument
351 SQLITE_OK!=resolveAttachExpr(&sName, pKey) in codeAttach()
377 sqlite3ExprCode(pParse, pKey, regArgs+2); in codeAttach()
393 sqlite3ExprDelete(db, pKey); in codeAttach()
421 void sqlite3Attach(Parse *pParse, Expr *p, Expr *pDbname, Expr *pKey){ in sqlite3Attach() argument
433 codeAttach(pParse, SQLITE_ATTACH, &attach_func, p, p, pDbname, pKey); in sqlite3Attach()
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_sorted.c171 void *pKey; member
527 u8 *pKey; in pageGetKey() local
540 pKey += lsmVarintGet32(pKey, &nDummy); in pageGetKey()
541 pKey += lsmVarintGet32(pKey, pnKey); in pageGetKey()
543 pKey += lsmVarintGet32(pKey, &nDummy); in pageGetKey()
548 return pKey; in pageGetKey()
1403 void *pKey, in assertSeekResult() argument
2056 pKey = pCsr->pBtCsr->pKey; in multiCursorGetKey()
2063 pKey = pPtr->pKey; in multiCursorGetKey()
3581 void *pKey, in mergeWorkerBtreeWrite() argument
[all …]
H A Dlsm_tree.c510 strAppendFlags(&s, pKey->flags); in dump_node_contents()
511 lsmAppendStrBlob(&s, TKV_KEY(pKey), pKey->nKey); in dump_node_contents()
532 strAppendFlags(&s, pKey->flags); in dump_node_contents()
533 lsmAppendStrBlob(&s, TKV_KEY(pKey), pKey->nKey); in dump_node_contents()
611 TreeKey *pKey = pCsr->pSave; in treeCursorRestore() local
614 rc = lsmTreeCursorSeek(pCsr, TKV_KEY(pKey), pKey->nKey, pRes); in treeCursorRestore()
752 a = (u8 *)pKey; in newTreeKey()
1855 TreeKey *pKey; in lsmTreeDelete() local
1865 if( pKey ){ in lsmTreeDelete()
1866 rc = lsmTreeCursorSeek(&csr, TKV_KEY(pKey), pKey->nKey, &res); in lsmTreeDelete()
[all …]
H A Dlsm_main.c660 const void *pKey, int nKey, /* Key to write or delete */ in doWriteOp() argument
673 rc = lsmLogWrite(pDb, eType, (void *)pKey, nKey, (void *)pVal, nVal); in doWriteOp()
691 rc = lsmTreeDelete(pDb, (void *)pKey, nKey, (void *)pVal, nVal); in doWriteOp()
693 rc = lsmTreeInsert(pDb, (void *)pKey, nKey, (void *)pVal, nVal); in doWriteOp()
721 const void *pKey, int nKey, /* Key to write or delete */ in lsm_insert() argument
724 return doWriteOp(db, 0, pKey, nKey, pVal, nVal); in lsm_insert()
730 int lsm_delete(lsm_db *db, const void *pKey, int nKey){ in lsm_delete() argument
731 return doWriteOp(db, 0, pKey, nKey, 0, -1); in lsm_delete()
806 int lsm_csr_seek(lsm_cursor *pCsr, const void *pKey, int nKey, int eSeek){ in lsm_csr_seek() argument
807 return lsmMCursorSeek((MultiCursor *)pCsr, 0, (void *)pKey, nKey, eSeek); in lsm_csr_seek()
H A Dlsm.h514 int lsm_insert(lsm_db*, const void *pKey, int nKey, const void *pVal, int nVal);
520 int lsm_delete(lsm_db *, const void *pKey, int nKey);
605 int lsm_csr_seek(lsm_cursor *pCsr, const void *pKey, int nKey, int eSeek);
664 int lsm_csr_cmp(lsm_cursor *pCsr, const void *pKey, int nKey, int *piRes);

12