Home
last modified time | relevance | path

Searched refs:zKey (Results 1 – 16 of 16) sorted by relevance

/sqlite-3.40.0/src/
H A Dos_kv.c195 const char *zKey, in kvstorageWrite() argument
200 kvstorageMakeKey(zClass, zKey, zXKey); in kvstorageWrite()
220 kvstorageMakeKey(zClass, zKey, zXKey); in kvstorageDelete()
241 const char *zKey, in kvstorageRead() argument
248 kvstorageMakeKey(zClass, zKey, zXKey); in kvstorageRead()
543 char zKey[30]; in kvvfsReadDb() local
560 sqlite3_snprintf(sizeof(zKey), zKey, "%u", pgno); in kvvfsReadDb()
627 char zKey[30]; in kvvfsWriteDb() local
635 sqlite3_snprintf(sizeof(zKey), zKey, "%u", pgno); in kvvfsWriteDb()
665 char zKey[50]; in kvvfsTruncateDb() local
[all …]
H A Dfkey.c193 char *zKey = pFKey->aCol[0].zCol; /* Name of left-most parent key column */ in sqlite3FkLocateIndex() local
217 if( !zKey ) return 0; in sqlite3FkLocateIndex()
218 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zCnName, zKey) ){ in sqlite3FkLocateIndex()
235 if( zKey==0 ){ in sqlite3FkLocateIndex()
833 char *zKey = p->aCol[i].zCol; in fkParentIsModified() local
838 if( zKey ){ in fkParentIsModified()
839 if( 0==sqlite3StrICmp(pCol->zCnName, zKey) ) return 1; in fkParentIsModified()
H A Djson.c1074 static int jsonLabelCompare(JsonNode *pNode, const char *zKey, u32 nKey){ in jsonLabelCompare() argument
1078 return strncmp(pNode->u.zJContent, zKey, nKey)==0; in jsonLabelCompare()
1081 return strncmp(pNode->u.zJContent+1, zKey, nKey)==0; in jsonLabelCompare()
1105 const char *zKey; in jsonLookupStep() local
1113 zKey = zPath + 1; in jsonLookupStep()
1124 zKey = zPath; in jsonLookupStep()
1135 if( jsonLabelCompare(pRoot+j, zKey, nKey) ){ in jsonLookupStep()
1151 iLabel = jsonParseAddNode(pParse, JSON_STRING, nKey, zKey); in jsonLookupStep()
1639 const char *zKey; in jsonMergePatch() local
1644 zKey = pPatch[i].u.zJContent; in jsonMergePatch()
[all …]
H A Dshell.c.in9318 const char *zKey = azArg[2]; local
9323 "VALUES(%Q,%s);", zKey, zValue);
9333 "VALUES(%Q,%Q);", zKey, zValue);
/sqlite-3.40.0/ext/fts5/
H A Dfts5_hash.c260 char *zKey = fts5EntryKey(p); in sqlite3Fts5HashWrite() local
261 if( zKey[0]==bByte in sqlite3Fts5HashWrite()
272 char *zKey; in sqlite3Fts5HashWrite() local
288 zKey = fts5EntryKey(p); in sqlite3Fts5HashWrite()
289 zKey[0] = bByte; in sqlite3Fts5HashWrite()
293 zKey[nToken+1] = '\0'; in sqlite3Fts5HashWrite()
495 char *zKey = 0; in sqlite3Fts5HashQuery() local
499 zKey = fts5EntryKey(p); in sqlite3Fts5HashQuery()
549 char *zKey = fts5EntryKey(p); in sqlite3Fts5HashScanEntry() local
550 int nTerm = (int)strlen(zKey); in sqlite3Fts5HashScanEntry()
[all …]
H A Dfts5_config.c823 const char *zKey, in sqlite3Fts5ConfigSetValue() argument
829 if( 0==sqlite3_stricmp(zKey, "pgsz") ){ in sqlite3Fts5ConfigSetValue()
841 else if( 0==sqlite3_stricmp(zKey, "hashsize") ){ in sqlite3Fts5ConfigSetValue()
853 else if( 0==sqlite3_stricmp(zKey, "automerge") ){ in sqlite3Fts5ConfigSetValue()
866 else if( 0==sqlite3_stricmp(zKey, "usermerge") ){ in sqlite3Fts5ConfigSetValue()
878 else if( 0==sqlite3_stricmp(zKey, "crisismerge") ){ in sqlite3Fts5ConfigSetValue()
892 else if( 0==sqlite3_stricmp(zKey, "rank") ){ in sqlite3Fts5ConfigSetValue()
/sqlite-3.40.0/ext/misc/
H A Damatch.c290 while( p && (c = strcmp(zKey, p->zKey))!=0 ){ in amatchAvlSearch()
328 assert( strcmp(p->zKey, pHead->zKey)<0 );
330 assert( strcmp(p->zKey, pHead->zKey)<0 );
335 assert( strcmp(p->zKey, pHead->zKey)>0 );
337 assert( strcmp(p->zKey, pHead->zKey)>0 );
346 assert( strcmp(p->zKey, pNext->zKey)<0 );
364 c = strcmp(pNew->zKey, p->zKey); in amatchAvlInsert()
814 int nKey = (int)strlen(zKey); in amatchValueOfKey()
818 if( memcmp(zStr, zKey, nKey)!=0 ) return 0; in amatchValueOfKey()
1082 pWord->sCost.zKey = pWord->zCost; in amatchAddWord()
[all …]
H A Dclosure.c483 static const char *closureValueOfKey(const char *zKey, const char *zStr){ in closureValueOfKey() argument
484 int nKey = (int)strlen(zKey); in closureValueOfKey()
488 if( memcmp(zStr, zKey, nKey)!=0 ) return 0; in closureValueOfKey()
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest5.c190 char zKey[DB_KEY_BYTES]; in dbReadOperation() local
197 dbFormatKey(pParam, i, iKey, zKey); in dbReadOperation()
198 testFetchStr(pDb, zKey, zCksum, pRc); in dbReadOperation()
212 char zKey[DB_KEY_BYTES]; in dbWriteOperation() local
217 dbFormatKey(pParam, 0, iKey, zKey); in dbWriteOperation()
226 testWriteStr(pDb, zKey, zValue, pRc); in dbWriteOperation()
233 dbFormatKey(pParam, i, iKey, zKey); in dbWriteOperation()
234 testWriteStr(pDb, zKey, zCksum, pRc); in dbWriteOperation()
H A Dlsmtest6.c144 const char *zKey, in testOomFetchStr() argument
148 int nKey = strlen(zKey); in testOomFetchStr()
150 testOomFetch(pOom, pDb, (void *)zKey, nKey, (void *)zVal, nVal, pRc); in testOomFetchStr()
169 const char *zKey, in testOomWriteStr() argument
173 int nKey = strlen(zKey); in testOomWriteStr()
175 testOomWrite(pOom, pDb, (void *)zKey, nKey, (void *)zVal, nVal, pRc); in testOomWriteStr()
350 static int lsmWriteStr(lsm_db *pDb, const char *zKey, const char *zVal){ in lsmWriteStr() argument
351 int nKey = strlen(zKey); in lsmWriteStr()
353 return lsm_insert(pDb, (void *)zKey, nKey, (void *)zVal, nVal); in lsmWriteStr()
H A Dlsmtest_main.c115 const char *zKey, /* Key to query database for */ in testWriteStr() argument
120 testWrite(pDb, (void *)zKey, strlen(zKey), (void *)zVal, nVal, pRc); in testWriteStr()
124 static void testDeleteStr(TestDb *pDb, const char *zKey, int *pRc){
125 testDelete(pDb, (void *)zKey, strlen(zKey), pRc);
130 const char *zKey, /* Key to query database for */ in testFetchStr() argument
135 testFetch(pDb, (void *)zKey, strlen(zKey), (void *)zVal, nVal, pRc); in testFetchStr()
/sqlite-3.40.0/ext/expert/
H A Dsqlite3expert.c233 const char *zKey, in idxHashAdd() argument
236 int nKey = STRLEN(zKey); in idxHashAdd()
237 int iHash = idxHashString(zKey, nKey); in idxHashAdd()
242 if( STRLEN(pEntry->zKey)==nKey && 0==memcmp(pEntry->zKey, zKey, nKey) ){ in idxHashAdd()
248 pEntry->zKey = (char*)&pEntry[1]; in idxHashAdd()
249 memcpy(pEntry->zKey, zKey, nKey); in idxHashAdd()
251 pEntry->zVal = &pEntry->zKey[nKey+1]; in idxHashAdd()
270 if( nKey<0 ) nKey = STRLEN(zKey); in idxHashFind()
271 iHash = idxHashString(zKey, nKey); in idxHashFind()
274 if( STRLEN(pEntry->zKey)==nKey && 0==memcmp(pEntry->zKey, zKey, nKey) ){ in idxHashFind()
[all …]
/sqlite-3.40.0/ext/wasm/api/
H A Dsqlite3-api-glue.js645 xRead: (zClass, zKey, zBuf, nBuf)=>{ argument
649 const zXKey = kvvfsMakeKey(zClass,zKey);
675 xWrite: (zClass, zKey, zData)=>{ argument
678 const zXKey = kvvfsMakeKey(zClass,zKey);
690 xDelete: (zClass, zKey)=>{ argument
693 const zXKey = kvvfsMakeKey(zClass,zKey);
/sqlite-3.40.0/test/
H A Dkvtest.c973 char *zKey; in runMain() local
975 zKey = sqlite3_mprintf("%s/%06d", zDb, iKey); in runMain()
977 zKey = sqlite3_mprintf("%s/%02d/%02d/%02d", zDb, iKey/10000, in runMain()
982 updateFile(zKey, &nData, doFsync); in runMain()
984 pData = readFile(zKey, &nData); in runMain()
987 sqlite3_free(zKey); in runMain()
H A Dspeedtest1.c2207 const char *zKey = 0; /* Encryption key */ in main() local
2285 zKey = argv[++i]; in main()
2490 if( zKey ){ in main()
2491 speedtest1_exec("PRAGMA key('%s')", zKey); in main()
/sqlite-3.40.0/ext/fts3/
H A Dfts3_write.c1723 char *zKey = (char *)fts3HashKey(pE); in sqlite3Fts3SegReaderPending() local
1725 if( nTerm==0 || (nKey>=nTerm && 0==memcmp(zKey, zTerm, nTerm)) ){ in sqlite3Fts3SegReaderPending()
4251 const char *zKey, /* First key to write */ in fts3IncrmergeLoad() argument
4306 if( fts3TermCmp(zKey, nKey, reader.term.a, reader.term.n)<=0 ){ in fts3IncrmergeLoad()
5031 const char *zKey = pCsr->zTerm; in sqlite3Fts3Incrmerge() local
5033 rc = fts3IncrmergeLoad(p, iAbsLevel, iIdx-1, zKey, nKey, pWriter); in sqlite3Fts3Incrmerge()