Lines Matching refs:zKey

35964 static int kvstorageWrite(const char*, const char *zKey, const char *zData);
35965 static int kvstorageDelete(const char*, const char *zKey);
35966 static int kvstorageRead(const char*, const char *zKey, char *zBuf, int nBuf);
35984 ** Both zKey and zData are zero-terminated pure text strings.
35990 const char *zKey,
35995 kvstorageMakeKey(zClass, zKey, zXKey);
36013 static int kvstorageDelete(const char *zClass, const char *zKey){
36015 kvstorageMakeKey(zClass, zKey, zXKey);
36021 /* Read the value associated with a zKey from the key/value namespace given
36036 const char *zKey,
36043 kvstorageMakeKey(zClass, zKey, zXKey);
36089 int (*xRead)(const char *zClass, const char *zKey, char *zBuf, int nBuf);
36090 int (*xWrite)(const char *zClass, const char *zKey, const char *zData);
36091 int (*xDelete)(const char *zClass, const char *zKey);
36338 char zKey[30];
36355 sqlite3_snprintf(sizeof(zKey), zKey, "%u", pgno);
36356 got = sqlite3KvvfsMethods.xRead(pFile->zClass, zKey, aData, sizeof(aData)-1);
36422 char zKey[30];
36430 sqlite3_snprintf(sizeof(zKey), zKey, "%u", pgno);
36432 if( sqlite3KvvfsMethods.xWrite(pFile->zClass, zKey, aData) ){
36460 char zKey[50];
36466 sqlite3_snprintf(sizeof(zKey), zKey, "%u", pgno);
36467 sqlite3KvvfsMethods.xDelete(pFile->zClass, zKey);
116752 char *zKey;
116764 zKey = (char *)sqlite3_value_blob(argv[2]);
116765 rc = sqlite3CodecAttach(db, db->nDb-1, zKey, nKey);
116772 sqlite3CodecGetKey(db, 0, (void**)&zKey, &nKey);
116774 rc = sqlite3CodecAttach(db, db->nDb-1, zKey, nKey);
127317 char *zKey = pFKey->aCol[0].zCol; /* Name of left-most parent key column */
127341 if( !zKey ) return 0;
127342 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zCnName, zKey) ){
127359 if( zKey==0 ){
127360 /* If zKey is NULL, then this foreign key is implicitly mapped to
127371 /* If zKey is non-NULL, then this foreign key was declared to
127957 char *zKey = p->aCol[i].zCol;
127962 if( zKey ){
127963 if( 0==sqlite3StrICmp(pCol->zCnName, zKey) ) return 1;
136777 const char *zKey = zRight;
136786 zKey = zBuf;
136792 rc = sqlite3_key_v2(db, zDb, zKey, n);
136794 rc = sqlite3_rekey_v2(db, zDb, zKey, n);
149758 char *zKey;
149759 sqlite3CodecGetKey(db, iDb, (void**)&zKey, &nKey);
176596 const char *zKey;
176599 }else if( (zKey = uriParameter(zUri, "hexkey"))!=0 && zKey[0] ){
176603 for(i=0, iByte=0; i<(int)(sizeof(zDecoded)*2) && sqlite3Isxdigit(zKey[i]); i++){
176604 iByte = (iByte<<4) + sqlite3HexToInt(zKey[i]);
176609 }else if( (zKey = uriParameter(zUri, "key"))!=0 ){
176610 sqlite3_key_v2(db, zDb, zKey, sqlite3Strlen30(zKey));
176612 }else if( (zKey = uriParameter(zUri, "textkey"))!=0 ){
176613 sqlite3_key_v2(db, zDb, zKey, -1);
191610 char *zKey = (char *)fts3HashKey(pE);
191612 if( nTerm==0 || (nKey>=nTerm && 0==memcmp(zKey, zTerm, nTerm)) ){
194130 ** * The first key read from the input (arguments zKey and nKey) is
194138 const char *zKey, /* First key to write */
194179 /* Check that zKey/nKey is larger than the largest key the candidate */
194193 if( fts3TermCmp(zKey, nKey, reader.term.a, reader.term.n)<=0 ){
194918 const char *zKey = pCsr->zTerm;
194920 rc = fts3IncrmergeLoad(p, iAbsLevel, iIdx-1, zKey, nKey, pWriter);
199315 ** Compare the OBJECT label at pNode against zKey,nKey. Return true on
199318 static int jsonLabelCompare(JsonNode *pNode, const char *zKey, u32 nKey){
199322 return strncmp(pNode->u.zJContent, zKey, nKey)==0;
199325 return strncmp(pNode->u.zJContent+1, zKey, nKey)==0;
199349 const char *zKey;
199357 zKey = zPath + 1;
199368 zKey = zPath;
199379 if( jsonLabelCompare(pRoot+j, zKey, nKey) ){
199395 iLabel = jsonParseAddNode(pParse, JSON_STRING, nKey, zKey);
199883 const char *zKey;
199888 zKey = pPatch[i].u.zJContent;
199894 if( pTarget[j].n==nKey && strncmp(pTarget[j].u.zJContent,zKey,nKey)==0 ){
199919 jsonParseAddNode(pParse, JSON_STRING, nKey, zKey);
226229 const char *zKey,
226235 if( 0==sqlite3_stricmp(zKey, "pgsz") ){
226247 else if( 0==sqlite3_stricmp(zKey, "hashsize") ){
226259 else if( 0==sqlite3_stricmp(zKey, "automerge") ){
226272 else if( 0==sqlite3_stricmp(zKey, "usermerge") ){
226284 else if( 0==sqlite3_stricmp(zKey, "crisismerge") ){
226298 else if( 0==sqlite3_stricmp(zKey, "rank") ){
229521 ** char *fts5EntryKey(Fts5HashEntry *pEntry){ return zKey; }
229704 char *zKey = fts5EntryKey(p);
229705 if( zKey[0]==bByte
229707 && memcmp(&zKey[1], pToken, nToken)==0
229716 char *zKey;
229732 zKey = fts5EntryKey(p);
229733 zKey[0] = bByte;
229734 memcpy(&zKey[1], pToken, nToken);
229735 assert( iHash==fts5HashKey(pHash->nSlot, (u8*)zKey, nToken+1) );
229737 zKey[nToken+1] = '\0';
229939 char *zKey = 0;
229943 zKey = fts5EntryKey(p);
229944 assert( p->nKey+1==(int)strlen(zKey) );
229945 if( nTerm==p->nKey+1 && memcmp(zKey, pTerm, nTerm)==0 ) break;
229993 char *zKey = fts5EntryKey(p);
229994 int nTerm = (int)strlen(zKey);
229996 *pzTerm = zKey;
229997 *ppDoclist = (const u8*)&zKey[nTerm+1];
245262 CODEC_STATIC int sqlite3CodecSetPassword(KeyContext *keyCtx, const void *zKey, int nKey){
245268 errno_t rc = memcpy_s(keyCtx->password, keyCtx->passwordSize, zKey, nKey);
245341 CODEC_STATIC int sqlite3CodecInitKeyContext(CodecContext *ctx, Btree *p, const void *zKey, int nKey, int attachFlag,
245344 CODEC_STATIC int sqlite3CodecInitKeyContext(CodecContext *ctx, Btree *p, const void *zKey, int nKey){
245381 rc += sqlite3CodecSetPassword(keyCtx, zKey, nKey);
245411 CODEC_STATIC int sqlite3CodecInitContext(CodecContext *ctx, Btree *p, const void *zKey, int nKey, int nDb){
245414 CODEC_STATIC int sqlite3CodecInitContext(CodecContext *ctx, Btree *p, const void *zKey, int nKey){
245437 int rc = sqlite3CodecInitKeyContext(ctx, p, zKey, nKey, attachFlag, attachHmacAlgo);
245439 int rc = sqlite3CodecInitKeyContext(ctx, p, zKey, nKey);