| /sqlite-3.40.0/src/ |
| H A D | vdbeapi.c | 386 Mem *pOut = pCtx->pOut; in setResultStrOrError() 421 sqlite3_context *pCtx, in sqlite3_result_blob() argument 431 sqlite3_context *pCtx, in sqlite3_result_blob64() argument 473 sqlite3_context *pCtx, in sqlite3_result_pointer() argument 478 Mem *pOut = pCtx->pOut; in sqlite3_result_pointer() 485 Mem *pOut = pCtx->pOut; in sqlite3_result_subtype() 491 sqlite3_context *pCtx, in sqlite3_result_text() argument 500 sqlite3_context *pCtx, in sqlite3_result_text64() argument 517 sqlite3_context *pCtx, in sqlite3_result_text16() argument 573 if( pCtx->pVdbe ) pCtx->pVdbe->rcApp = errCode; in sqlite3_result_error_code() [all …]
|
| H A D | test_func.c | 100 sqlite3_context *pCtx, in test_destructor() argument 123 sqlite3_context *pCtx, in test_destructor16() argument 146 sqlite3_context *pCtx, in test_destructor_count() argument 190 sqlite3_context *pCtx, in test_auxdata() argument 227 sqlite3_context *pCtx, in test_error() argument 277 sqlite3_context *pCtx, in test_isolation() argument 295 sqlite3_context *pCtx, in test_eval() argument 355 sqlite3_context *pCtx, in testHexToUtf16be() argument 382 sqlite3_context *pCtx, in testHexToUtf8() argument 409 sqlite3_context *pCtx, in testHexToUtf16le() argument [all …]
|
| H A D | test_window.c | 50 if( pCtx ){ in doTestWindowStep() 53 if( pCtx->pVal ){ in doTestWindowStep() 68 if( pCtx->pVal ) Tcl_DecrRefCount(pCtx->pVal); in doTestWindowStep() 69 pCtx->pVal = Tcl_DuplicateObj(Tcl_GetObjResult(p->interp)); in doTestWindowStep() 70 Tcl_IncrRefCount(pCtx->pVal); in doTestWindowStep() 82 if( pCtx ){ in doTestWindowFinalize() 85 if( pCtx->pVal ){ in doTestWindowFinalize() 100 if( pCtx->pVal ) Tcl_DecrRefCount(pCtx->pVal); in doTestWindowFinalize() 101 pCtx->pVal = 0; in doTestWindowFinalize() 129 static void testWindowDestroy(void *pCtx){ in testWindowDestroy() argument [all …]
|
| H A D | window.c | 148 sqlite3_context *pCtx, in row_numberStepFunc() argument 179 sqlite3_context *pCtx, in dense_rankStepFunc() argument 211 sqlite3_context *pCtx, in nth_valueStepFunc() argument 264 sqlite3_context *pCtx, in first_valueStepFunc() argument 298 sqlite3_context *pCtx, in rankStepFunc() argument 329 sqlite3_context *pCtx, in percent_rankStepFunc() argument 342 sqlite3_context *pCtx, in percent_rankInvFunc() argument 374 sqlite3_context *pCtx, in cume_distStepFunc() argument 387 sqlite3_context *pCtx, in cume_distInvFunc() argument 423 sqlite3_context *pCtx, in ntileStepFunc() argument [all …]
|
| H A D | os_unix.c | 5725 pNew->lockingContext = pCtx = sqlite3_malloc64( sizeof(*pCtx) ); in fillInUnixFile() 5726 if( pCtx==0 ){ in fillInUnixFile() 7334 (pCtx->lockProxyPath ? pCtx->lockProxyPath : ":auto:"), in proxyTakeConch() 7544 (pCtx->lockProxyPath ? pCtx->lockProxyPath : ":auto:"), in proxyReleaseConch() 7549 pCtx->conchHeld = 0; in proxyReleaseConch() 7689 pCtx = sqlite3_malloc64( sizeof(*pCtx) ); in proxyTransformUnixFile() 7690 if( pCtx==0 ){ in proxyTransformUnixFile() 7693 memset(pCtx, 0, sizeof(*pCtx)); in proxyTransformUnixFile() 7697 rc = proxyCreateUnixFile(pCtx->conchFilePath, &pCtx->conchFile, 0); in proxyTransformUnixFile() 7740 pCtx->conchFile->pMethod->xClose((sqlite3_file *)pCtx->conchFile); in proxyTransformUnixFile() [all …]
|
| H A D | json.c | 165 p->pCtx = pCtx; in jsonInit() 489 jsonInit(&s, pCtx); in jsonReturnJson() 537 sqlite3_result_null(pCtx); in jsonReturn() 541 sqlite3_result_int(pCtx, 1); in jsonReturn() 943 if( pCtx!=0 ){ in jsonParse() 1013 sqlite3_context *pCtx, in jsonParseCached() argument 1311 assert( zErr!=0 && pCtx!=0 ); in jsonLookup() 1328 sqlite3_context *pCtx, in jsonWrongNumArgs() argument 1975 pStr->pCtx = ctx; in jsonArrayStep() 1983 pStr->pCtx = ctx; in jsonArrayCompute() [all …]
|
| /sqlite-3.40.0/ext/rtree/ |
| H A D | test_rtreedoc.c | 40 static void testDelUser(void *pCtx){ in testDelUser() argument 41 BoxGeomCtx *p = (BoxGeomCtx*)pCtx; in testDelUser() 57 Tcl_Interp *interp = pCtx->interp; in invokeTclGeomCb() 182 BoxGeomCtx *pCtx; in register_box_geom() local 192 pCtx->interp = interp; in register_box_geom() 194 Tcl_IncrRefCount(pCtx->pScript); in register_box_geom() 306 Tcl_DecrRefCount(pCtx->pScript); in box_query_destroy() 307 ckfree((char*)pCtx); in box_query_destroy() 319 BoxQueryCtx *pCtx; in register_box_query() local 328 pCtx->interp = interp; in register_box_query() [all …]
|
| /sqlite-3.40.0/ext/session/ |
| H A D | sqlite3session.h | 241 void *pCtx, /* Copy of third arg to _filter_table() */ 244 void *pCtx /* First argument passed to xFilter */ 1198 void *pCtx, /* Copy of sixth arg to _apply() */ 1202 void *pCtx, /* Copy of sixth arg to _apply() */ 1206 void *pCtx /* First argument passed to xConflict */ 1213 void *pCtx, /* Copy of sixth arg to _apply() */ 1217 void *pCtx, /* Copy of sixth arg to _apply() */ 1596 void *pCtx, /* Copy of sixth arg to _apply() */ 1600 void *pCtx, /* Copy of sixth arg to _apply() */ 1611 void *pCtx, /* Copy of sixth arg to _apply() */ [all …]
|
| H A D | sqlite3session.c | 32 void *pCtx; member 1185 static int sessionStat1Count(void *pCtx){ in sessionStat1Count() argument 1187 return p->hook.xCount(p->hook.pCtx); in sessionStat1Count() 1189 static int sessionStat1Depth(void *pCtx){ in sessionStat1Depth() argument 1191 return p->hook.xDepth(p->hook.pCtx); in sessionStat1Depth() 1331 pSession->hook.pCtx = (void*)&stat1; in sessionPreupdateOneChange() 1573 static int sessionDiffCount(void *pCtx){ in sessionDiffCount() argument 1577 static int sessionDiffDepth(void *pCtx){ in sessionDiffDepth() argument 1589 pSession->hook.pCtx = (void*)pDiffCtx; in sessionDiffHooks() 1932 pSession->pFilterCtx = pCtx; in sqlite3session_table_filter() [all …]
|
| H A D | test_session.c | 167 static int test_table_filter(void *pCtx, const char *zTbl){ in test_table_filter() argument 168 TestSession *p = (TestSession*)pCtx; in test_table_filter() 198 void *pCtx, in testStreamOutput() argument 202 TestSessionsBlob *pBlob = (TestSessionsBlob*)pCtx; in testStreamOutput() 284 void *pCtx = (void*)&o; in test_session_cmd() local 286 rc = sqlite3session_patchset_strm(pSession, testStreamOutput, pCtx); in test_session_cmd() 507 TestConflictHandler *p = (TestConflictHandler *)pCtx; in test_filter_handler() 531 TestConflictHandler *p = (TestConflictHandler *)pCtx; in test_conflict_handler() 731 void *pCtx, /* Context pointer */ in testStreamInput() argument 735 TestStreamInput *p = (TestStreamInput*)pCtx; in testStreamInput() [all …]
|
| /sqlite-3.40.0/ext/wasm/api/ |
| H A D | sqlite3-api-glue.js | 261 capi.sqlite3_result_null(pCtx); 266 pCtx, pBlob, val.byteLength, 325 const __udfSetError = (pCtx, e)=>{ argument 335 return function(pCtx, argc, pArgv){ argument 336 try{ __udfSetResult(pCtx, callback(pCtx, ...__udfConvertArgs(argc, pArgv))) } 339 __udfSetError(pCtx, e); 345 return function(pCtx, argc, pArgv){ argument 347 catch(e){ __udfSetError(pCtx, e) } 352 return function(pCtx){ argument 353 try{ __udfSetResult(pCtx, callback(pCtx)) } [all …]
|
| /sqlite-3.40.0/ext/fts5/ |
| H A D | fts5_tcl.c | 150 void *pCtx, in xTokenizeCb() argument 178 void *pCtx in xQueryPhraseCb() argument 621 F5tFunction *pCtx = 0; in f5tCreateFunction() local 633 pCtx->interp = interp; in f5tCreateFunction() 634 pCtx->pScript = pScript; in f5tCreateFunction() 656 void *pCtx, in xTokenizeCb2() argument 767 void *pCtx; member 784 void *pCtx, in f5tTokenizerCreate() argument 829 void *pCtx, in f5tTokenizerTokenize() argument 844 pInst->pContext->pCtx = pCtx; in f5tTokenizerTokenize() [all …]
|
| H A D | fts5_main.c | 1788 Fts5Cursor *pCsr = (Fts5Cursor*)pCtx; in fts5ApiUserData() 1793 Fts5Cursor *pCsr = (Fts5Cursor*)pCtx; in fts5ApiColumnCount() 1798 Fts5Context *pCtx, in fts5ApiColumnTotalSize() argument 1814 Fts5Context *pCtx, in fts5ApiTokenize() argument 1837 Fts5Context *pCtx, in fts5ApiColumnText() argument 1996 Fts5Context *pCtx, in fts5ApiInst() argument 2176 Fts5Context *pCtx, in fts5ApiPhraseFirst() argument 2195 Fts5Context *pCtx, in fts5ApiPhraseNextColumn() argument 2225 Fts5Context *pCtx, in fts5ApiPhraseFirstColumn() argument 2301 Fts5Context *pCtx, in fts5ApiQueryPhrase() argument [all …]
|
| H A D | fts5_test_tok.c | 175 void *pCtx, /* Pointer to fts5_api object */ in fts5tokConnectMethod() argument 181 fts5_api *pApi = (fts5_api*)pCtx; in fts5tokConnectMethod() 325 void *pCtx, /* Pointer to Fts5tokCursor */ in fts5tokCb() argument 332 Fts5tokCursor *pCsr = (Fts5tokCursor*)pCtx; in fts5tokCb() 406 sqlite3_context *pCtx, /* Context for sqlite3_result_xxx() calls */ in fts5tokColumnMethod() argument 415 sqlite3_result_text(pCtx, pCsr->zInput, -1, SQLITE_TRANSIENT); in fts5tokColumnMethod() 418 sqlite3_result_text(pCtx, pRow->zToken, -1, SQLITE_TRANSIENT); in fts5tokColumnMethod() 421 sqlite3_result_int(pCtx, pRow->iStart); in fts5tokColumnMethod() 424 sqlite3_result_int(pCtx, pRow->iEnd); in fts5tokColumnMethod() 428 sqlite3_result_int(pCtx, pRow->iPos); in fts5tokColumnMethod()
|
| H A D | fts5_storage.c | 377 Fts5InsertCtx *pCtx = (Fts5InsertCtx*)pContext; in fts5StorageInsertCallback() local 378 Fts5Index *pIdx = pCtx->pStorage->pIndex; in fts5StorageInsertCallback() 382 pCtx->szCol++; in fts5StorageInsertCallback() 384 return sqlite3Fts5IndexWrite(pIdx, pCtx->iCol, pCtx->szCol-1, pToken, nToken); in fts5StorageInsertCallback() 827 Fts5Termset *pTermset = pCtx->pTermset; in fts5StorageIntegrityCallback() 838 pCtx->szCol++; in fts5StorageIntegrityCallback() 841 switch( pCtx->pConfig->eDetail ){ in fts5StorageIntegrityCallback() 843 iPos = pCtx->szCol-1; in fts5StorageIntegrityCallback() 844 iCol = pCtx->iCol; in fts5StorageIntegrityCallback() 848 iPos = pCtx->iCol; in fts5StorageIntegrityCallback() [all …]
|
| H A D | fts5_test_mi.c | 304 sqlite3_context *pCtx, /* Context for returning error message */ in fts5MatchinfoNew() argument 323 sqlite3_result_error(pCtx, zErr, -1); in fts5MatchinfoNew() 335 sqlite3_result_error_nomem(pCtx); in fts5MatchinfoNew() 349 sqlite3_result_error_code(pCtx, rc); in fts5MatchinfoNew() 360 sqlite3_context *pCtx, /* Context for returning result/error */ in fts5MatchinfoFunc() argument 376 p = fts5MatchinfoNew(pApi, pFts, pCtx, zArg); in fts5MatchinfoFunc() 388 sqlite3_result_error_code(pCtx, rc); in fts5MatchinfoFunc() 392 sqlite3_result_blob(pCtx, (void*)p->aRet, nByte, SQLITE_TRANSIENT); in fts5MatchinfoFunc()
|
| H A D | fts5_tokenize.c | 119 void *pCtx, in fts5AsciiTokenize() argument 165 rc = xToken(pCtx, 0, pFold, nByte, is, ie); in fts5AsciiTokenize() 440 void *pCtx, in fts5UnicodeTokenize() argument 574 void *pCtx, in fts5PorterCreate() argument 578 fts5_api *pApi = (fts5_api*)pCtx; in fts5PorterCreate() 611 void *pCtx; member 1176 void *pCtx, in fts5PorterCb() argument 1183 PorterContext *p = (PorterContext*)pCtx; in fts5PorterCb() 1246 void *pCtx, in fts5PorterTokenize() argument 1254 sCtx.pCtx = pCtx; in fts5PorterTokenize() [all …]
|
| H A D | fts5_aux.c | 206 sqlite3_context *pCtx, /* Context for returning result/error */ in fts5HighlightFunction() argument 216 sqlite3_result_error(pCtx, zErr, -1); in fts5HighlightFunction() 237 sqlite3_result_text(pCtx, (const char*)ctx.zOut, -1, SQLITE_TRANSIENT); in fts5HighlightFunction() 242 sqlite3_result_error_code(pCtx, rc); in fts5HighlightFunction() 378 sqlite3_context *pCtx, /* Context for returning result/error */ in fts5SnippetFunction() argument 400 sqlite3_result_error(pCtx, zErr, -1); in fts5SnippetFunction() 518 sqlite3_result_text(pCtx, (const char*)ctx.zOut, -1, SQLITE_TRANSIENT); in fts5SnippetFunction() 520 sqlite3_result_error_code(pCtx, rc); in fts5SnippetFunction() 637 sqlite3_context *pCtx, /* Context for returning result/error */ in fts5Bm25Function() argument 684 sqlite3_result_double(pCtx, -1.0 * score); in fts5Bm25Function() [all …]
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | percentile.c | 101 static void percentStep(sqlite3_context *pCtx, int argc, sqlite3_value **argv){ in percentStep() argument 113 sqlite3_result_error(pCtx, "2nd argument to percentile() is not " in percentStep() 119 p = (Percentile*)sqlite3_aggregate_context(pCtx, sizeof(*p)); in percentStep() 127 sqlite3_result_error(pCtx, "2nd argument to percentile() is not the " in percentStep() 139 sqlite3_result_error(pCtx, "1st argument to percentile() is not " in percentStep() 147 sqlite3_result_error(pCtx, "Inf input to percentile()", -1); in percentStep() 158 sqlite3_result_error_nomem(pCtx); in percentStep() 182 static void percentFinal(sqlite3_context *pCtx){ in percentFinal() argument 187 p = (Percentile*)sqlite3_aggregate_context(pCtx, 0); in percentFinal() 198 sqlite3_result_double(pCtx, vx); in percentFinal()
|
| /sqlite-3.40.0/ext/lsm1/lsm-test/ |
| H A D | lsmtest5.c | 118 void *pCtx, /* IN/OUT: Pointer to u32 containing cksum */ in dbCksum() argument 123 u32 *pCksum = (u32 *)pCtx; in dbCksum() 273 void *pCtx; member 325 pThread->xMain(pThread->pThreadSet, iThread, pThread->pCtx); in ttMain() 336 void *pCtx in testThreadLaunch() argument 346 pThread->pCtx = pCtx; in testThreadLaunch() 482 static void xMt1Delay(void *pCtx){ in xMt1Delay() argument 483 Mt1DelayCtx *p = (Mt1DelayCtx *)pCtx; in xMt1Delay() 491 static void xMt1Work(lsm_db *pDb, void *pCtx){ in xMt1Work() argument 503 static void mt1Main(ThreadSet *pThreadSet, int iThread, void *pCtx){ in mt1Main() argument [all …]
|
| H A D | lsmtest_io.c | 121 IoContext *pCtx, in doOneCmd() argument 140 return fdatasync(pCtx->fd); in doOneCmd() 158 lseek(pCtx->fd, (off_t)iOff, SEEK_SET); in doOneCmd() 160 write(pCtx->fd, aData, pgsz); in doOneCmd() 162 pCtx->nWrite += nByte/1024; in doOneCmd()
|
| /sqlite-3.40.0/ext/fts3/ |
| H A D | fts3_snippet.c | 265 rc = x(pExpr, *piPhrase, pCtx); in fts3ExprIterate2() 287 return fts3ExprIterate2(pExpr, &iPhrase, x, pCtx); in fts3ExprIterate() 951 MatchInfo *p = (MatchInfo *)pCtx; in fts3ExprGlobalHitsCb() 968 MatchInfo *p = (MatchInfo *)pCtx; in fts3ExprLocalHitsCb() 1102 LcsIterator *aIter = (LcsIterator *)pCtx; in fts3MatchinfoLcsCb() 1394 sqlite3_result_error(pCtx, zErr, -1); in fts3GetMatchinfo() 1426 sqlite3_result_error_code(pCtx, rc); in fts3GetMatchinfo() 1430 sqlite3_result_blob(pCtx, aOut, n, xDestroyOut); in fts3GetMatchinfo() 1464 sqlite3_result_text(pCtx, "", 0, SQLITE_STATIC); in sqlite3Fts3Snippet() 1532 sqlite3_result_error_code(pCtx, rc); in sqlite3Fts3Snippet() [all …]
|
| H A D | fts3_term.c | 61 void *pCtx, /* Non-zero for an fts4prefix table */ in fts3termConnectMethod() argument 76 UNUSED_PARAMETER(pCtx); in fts3termConnectMethod() 300 sqlite3_context *pCtx, /* Context for sqlite3_result_xxx() calls */ in fts3termColumnMethod() argument 308 sqlite3_result_text(pCtx, p->csr.zTerm, p->csr.nTerm, SQLITE_TRANSIENT); in fts3termColumnMethod() 311 sqlite3_result_int64(pCtx, p->iDocid); in fts3termColumnMethod() 314 sqlite3_result_int64(pCtx, p->iCol); in fts3termColumnMethod() 317 sqlite3_result_int64(pCtx, p->iPos); in fts3termColumnMethod()
|
| /sqlite-3.40.0/ext/repair/ |
| H A D | checkfreelist.c | 227 sqlite3_context *pCtx, in checkfreelist_function() argument 234 sqlite3 *db = sqlite3_context_db_handle(pCtx); in checkfreelist_function() 240 sqlite3_result_text(pCtx, zOut?zOut:"ok", -1, SQLITE_TRANSIENT); in checkfreelist_function() 242 sqlite3_result_error_code(pCtx, rc); in checkfreelist_function() 254 sqlite3_context *pCtx, in readint_function() argument 265 pCtx, "wrong number of arguments to function sqlite_readint32()", -1 in readint_function() 280 sqlite3_result_int64(pCtx, (sqlite3_int64)iRet); in readint_function()
|
| /sqlite-3.40.0/test/ |
| H A D | tt3_stress.c | 285 Stress2Ctx *pCtx = (Stress2Ctx*)pArg; in stress2_thread_wrapper() local 293 opendb(&err, &db, pCtx->zDb, 0); in stress2_thread_wrapper() 295 pCtx->xProc(&err, &db, i1); in stress2_thread_wrapper() 313 Stress2Ctx *pCtx = sqlite3_malloc(sizeof(Stress2Ctx)); in stress2_launch_thread_loop() local 314 pCtx->zDb = zDb; in stress2_launch_thread_loop() 315 pCtx->xProc = x; in stress2_launch_thread_loop() 316 launch_thread(pErr, pThreads, stress2_thread_wrapper, (void*)pCtx); in stress2_launch_thread_loop()
|