Lines Matching refs:pArg

2684 static int pcachetraceInit(void *pArg){  in pcachetraceInit()  argument
2687 fprintf(pcachetraceOut, "PCACHETRACE: xInit(%p)\n", pArg); in pcachetraceInit()
2689 nRes = pcacheBase.xInit(pArg); in pcachetraceInit()
2691 fprintf(pcachetraceOut, "PCACHETRACE: xInit(%p) -> %d\n", pArg, nRes); in pcachetraceInit()
2695 static void pcachetraceShutdown(void *pArg){ in pcachetraceShutdown() argument
2697 fprintf(pcachetraceOut, "PCACHETRACE: xShutdown(%p)\n", pArg); in pcachetraceShutdown()
2699 pcacheBase.xShutdown(pArg); in pcachetraceShutdown()
4401 Decimal *pArg; in decimalSumStep() local
4417 pArg = decimal_new(context, argv[0], 1); in decimalSumStep()
4418 decimal_add(p, pArg); in decimalSumStep()
4419 decimal_free(pArg); in decimalSumStep()
4427 Decimal *pArg; in decimalSumInverse() local
4432 pArg = decimal_new(context, argv[0], 1); in decimalSumInverse()
4433 if( pArg ) pArg->sign = !pArg->sign; in decimalSumInverse()
4434 decimal_add(p, pArg); in decimalSumInverse()
4435 decimal_free(pArg); in decimalSumInverse()
8846 static int apndFileControl(sqlite3_file*, int op, void *pArg);
9051 static int apndFileControl(sqlite3_file *pFile, int op, void *pArg){ in apndFileControl() argument
9055 if( op==SQLITE_FCNTL_SIZE_HINT ) *(sqlite3_int64*)pArg += paf->iPgOne; in apndFileControl()
9056 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in apndFileControl()
9058 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", paf->iPgOne,*(char**)pArg); in apndFileControl()
15334 int sqlite3_recover_config(sqlite3_recover*, int op, void *pArg);
18647 static int recoverVfsFileControl(sqlite3_file*, int op, void *pArg);
18942 static int recoverVfsFileControl(sqlite3_file *pFd, int op, void *pArg){ in recoverVfsFileControl() argument
18944 (pFd->pMethods ? pFd->pMethods->xFileControl(pFd, op, pArg) : SQLITE_NOTFOUND) in recoverVfsFileControl()
19238 int sqlite3_recover_config(sqlite3_recover *p, int op, void *pArg){ in sqlite3_recover_config() argument
19253 p->zStateDb = recoverMPrintf(p, "%s", (char*)pArg); in sqlite3_recover_config()
19257 const char *zArg = (const char*)pArg; in sqlite3_recover_config()
19268 p->bFreelistCorrupt = *(int*)pArg; in sqlite3_recover_config()
19272 p->bRecoverRowid = *(int*)pArg; in sqlite3_recover_config()
19276 p->bSlowIndexes = *(int*)pArg; in sqlite3_recover_config()
19605 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
19606 ShellState *p = (ShellState*)pArg; in shellLog()
20497 void *pArg, in shell_callback() argument
20504 ShellState *p = (ShellState*)pArg; in shell_callback()
20889 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
20891 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
20898 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
20899 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
21179 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
21184 if( pArg==0 || pArg->out==0 ) return 0; in display_stats()
21186 if( pArg->pStmt && pArg->statsOn==2 ){ in display_stats()
21188 sqlite3_stmt *pStmt = pArg->pStmt; in display_stats()
21210 if( pArg->statsOn==3 ){ in display_stats()
21211 if( pArg->pStmt ){ in display_stats()
21212 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP,bReset); in display_stats()
21222 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
21238 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
21276 if( pArg->pStmt ){ in display_stats()
21278 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
21281 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
21283 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
21285 iHit = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FILTER_HIT, in display_stats()
21287 iMiss = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FILTER_MISS, in display_stats()
21292 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
21294 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_REPREPARE,bReset); in display_stats()
21296 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_RUN, bReset); in display_stats()
21298 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_MEMUSED, bReset); in display_stats()
21343 ShellState *pArg /* Pointer to ShellState */ in display_explain_scanstats() argument
21346 sqlite3_stmt *p = pArg->pStmt; in display_explain_scanstats()
21350 eqp_reset(pArg); in display_explain_scanstats()
21401 if( zName && pArg->scanstatsOn>1 ){ in display_explain_scanstats()
21411 eqp_append(pArg, iId, iPid, zText); in display_explain_scanstats()
21415 eqp_render(pArg, nTotal); in display_explain_scanstats()
21531 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
21535 UNUSED_PARAMETER(pArg); in display_scanstats()
21537 if( pArg->scanstatsOn==3 ){ in display_scanstats()
21547 sqlite3_stmt *pSave = pArg->pStmt; in display_scanstats()
21548 pArg->pStmt = pStmt; in display_scanstats()
21551 pArg->cnt = 0; in display_scanstats()
21552 pArg->cMode = MODE_ScanExp; in display_scanstats()
21553 explain_data_prepare(pArg, pStmt); in display_scanstats()
21554 exec_prepared_stmt(pArg, pStmt); in display_scanstats()
21555 explain_data_delete(pArg); in display_scanstats()
21558 pArg->pStmt = pSave; in display_scanstats()
21561 display_explain_scanstats(db, pArg); in display_scanstats()
21613 static void bind_prepared_stmt(ShellState *pArg, sqlite3_stmt *pStmt){ in bind_prepared_stmt() argument
21621 if( sqlite3_table_column_metadata(pArg->db, "TEMP", "sqlite_parameters", in bind_prepared_stmt()
21626 rc = sqlite3_prepare_v2(pArg->db, in bind_prepared_stmt()
22086 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
22092 if( pArg->cMode==MODE_Column in exec_prepared_stmt()
22093 || pArg->cMode==MODE_Table in exec_prepared_stmt()
22094 || pArg->cMode==MODE_Box in exec_prepared_stmt()
22095 || pArg->cMode==MODE_Markdown in exec_prepared_stmt()
22097 exec_prepared_stmt_columnar(pArg, pStmt); in exec_prepared_stmt()
22128 && pArg in exec_prepared_stmt()
22129 && (pArg->cMode==MODE_Insert || pArg->cMode==MODE_Quote) in exec_prepared_stmt()
22144 if( shell_callback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
22152 if( pArg->cMode==MODE_Json ){ in exec_prepared_stmt()
22153 fputs("]\n", pArg->out); in exec_prepared_stmt()
22154 }else if( pArg->cMode==MODE_Count ){ in exec_prepared_stmt()
22305 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
22313 sqlite3 *db = pArg->db; in shell_exec()
22320 if( pArg->expert.pExpert ){ in shell_exec()
22321 rc = expertHandleSQL(pArg, zSql, pzErrMsg); in shell_exec()
22322 return expertFinish(pArg, (rc!=SQLITE_OK), pzErrMsg); in shell_exec()
22345 if( pArg ){ in shell_exec()
22346 pArg->pStmt = pStmt; in shell_exec()
22347 pArg->cnt = 0; in shell_exec()
22351 if( pArg && pArg->autoEQP && sqlite3_stmt_isexplain(pStmt)==0 ){ in shell_exec()
22356 if( pArg->autoEQP>=AUTOEQP_trigger ){ in shell_exec()
22368 if( zEQPLine[0]=='-' ) eqp_render(pArg, 0); in shell_exec()
22369 eqp_append(pArg, iEqpId, iParentId, zEQPLine); in shell_exec()
22371 eqp_render(pArg, 0); in shell_exec()
22373 if( pArg->autoEQP>=AUTOEQP_full ){ in shell_exec()
22378 pArg->cMode = MODE_Explain; in shell_exec()
22380 explain_data_prepare(pArg, pExplain); in shell_exec()
22381 exec_prepared_stmt(pArg, pExplain); in shell_exec()
22382 explain_data_delete(pArg); in shell_exec()
22385 if( pArg->autoEQP>=AUTOEQP_trigger && triggerEQP==0 ){ in shell_exec()
22393 if( pArg ){ in shell_exec()
22395 pArg->cMode = pArg->mode; in shell_exec()
22396 if( pArg->autoExplain ){ in shell_exec()
22398 pArg->cMode = MODE_Explain; in shell_exec()
22401 pArg->cMode = MODE_EQP; in shell_exec()
22407 if( pArg->cMode==MODE_Explain && bIsExplain ){ in shell_exec()
22408 explain_data_prepare(pArg, pStmt); in shell_exec()
22412 bind_prepared_stmt(pArg, pStmt); in shell_exec()
22413 exec_prepared_stmt(pArg, pStmt); in shell_exec()
22414 explain_data_delete(pArg); in shell_exec()
22415 eqp_render(pArg, 0); in shell_exec()
22418 if( pArg && pArg->statsOn ){ in shell_exec()
22419 display_stats(db, pArg, 0); in shell_exec()
22423 if( pArg && pArg->scanstatsOn ){ in shell_exec()
22424 display_scanstats(db, pArg); in shell_exec()
22440 if( pArg ){ in shell_exec()
22441 pArg->pStmt = NULL; in shell_exec()
22588 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
22593 ShellState *p = (ShellState *)pArg; in dump_callback()
23799 void *pArg, /* The ShellState pointer */ in sql_trace_callback() argument
23803 ShellState *p = (ShellState*)pArg; in sql_trace_callback()