Lines Matching refs:pArg

2670 static int pcachetraceInit(void *pArg){  in pcachetraceInit()  argument
2673 fprintf(pcachetraceOut, "PCACHETRACE: xInit(%p)\n", pArg); in pcachetraceInit()
2675 nRes = pcacheBase.xInit(pArg); in pcachetraceInit()
2677 fprintf(pcachetraceOut, "PCACHETRACE: xInit(%p) -> %d\n", pArg, nRes); in pcachetraceInit()
2681 static void pcachetraceShutdown(void *pArg){ in pcachetraceShutdown() argument
2683 fprintf(pcachetraceOut, "PCACHETRACE: xShutdown(%p)\n", pArg); in pcachetraceShutdown()
2685 pcacheBase.xShutdown(pArg); in pcachetraceShutdown()
4387 Decimal *pArg; in decimalSumStep() local
4403 pArg = decimal_new(context, argv[0], 1); in decimalSumStep()
4404 decimal_add(p, pArg); in decimalSumStep()
4405 decimal_free(pArg); in decimalSumStep()
4413 Decimal *pArg; in decimalSumInverse() local
4418 pArg = decimal_new(context, argv[0], 1); in decimalSumInverse()
4419 if( pArg ) pArg->sign = !pArg->sign; in decimalSumInverse()
4420 decimal_add(p, pArg); in decimalSumInverse()
4421 decimal_free(pArg); in decimalSumInverse()
8768 static int apndFileControl(sqlite3_file*, int op, void *pArg);
8973 static int apndFileControl(sqlite3_file *pFile, int op, void *pArg){ in apndFileControl() argument
8977 if( op==SQLITE_FCNTL_SIZE_HINT ) *(sqlite3_int64*)pArg += paf->iPgOne; in apndFileControl()
8978 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in apndFileControl()
8980 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", paf->iPgOne,*(char**)pArg); in apndFileControl()
14133 int sqlite3_recover_config(sqlite3_recover*, int op, void *pArg);
17384 static int recoverVfsFileControl(sqlite3_file*, int op, void *pArg);
17679 static int recoverVfsFileControl(sqlite3_file *pFd, int op, void *pArg){ in recoverVfsFileControl() argument
17681 (pFd->pMethods ? pFd->pMethods->xFileControl(pFd, op, pArg) : SQLITE_NOTFOUND) in recoverVfsFileControl()
17975 int sqlite3_recover_config(sqlite3_recover *p, int op, void *pArg){ in sqlite3_recover_config() argument
17990 p->zStateDb = recoverMPrintf(p, "%s", (char*)pArg); in sqlite3_recover_config()
17994 const char *zArg = (const char*)pArg; in sqlite3_recover_config()
18005 p->bFreelistCorrupt = *(int*)pArg; in sqlite3_recover_config()
18009 p->bRecoverRowid = *(int*)pArg; in sqlite3_recover_config()
18013 p->bSlowIndexes = *(int*)pArg; in sqlite3_recover_config()
18342 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
18343 ShellState *p = (ShellState*)pArg; in shellLog()
19234 void *pArg, in shell_callback() argument
19241 ShellState *p = (ShellState*)pArg; in shell_callback()
19626 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
19628 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
19635 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
19636 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
19916 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
19921 if( pArg==0 || pArg->out==0 ) return 0; in display_stats()
19923 if( pArg->pStmt && pArg->statsOn==2 ){ in display_stats()
19925 sqlite3_stmt *pStmt = pArg->pStmt; in display_stats()
19947 if( pArg->statsOn==3 ){ in display_stats()
19948 if( pArg->pStmt ){ in display_stats()
19949 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP,bReset); in display_stats()
19959 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
19975 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
20013 if( pArg->pStmt ){ in display_stats()
20015 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
20018 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
20020 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
20022 iHit = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FILTER_HIT, in display_stats()
20024 iMiss = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FILTER_MISS, in display_stats()
20029 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
20031 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_REPREPARE,bReset); in display_stats()
20033 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_RUN, bReset); in display_stats()
20035 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_MEMUSED, bReset); in display_stats()
20080 ShellState *pArg /* Pointer to ShellState */ in display_explain_scanstats() argument
20083 sqlite3_stmt *p = pArg->pStmt; in display_explain_scanstats()
20087 eqp_reset(pArg); in display_explain_scanstats()
20138 if( zName && pArg->scanstatsOn>1 ){ in display_explain_scanstats()
20148 eqp_append(pArg, iId, iPid, zText); in display_explain_scanstats()
20152 eqp_render(pArg, nTotal); in display_explain_scanstats()
20268 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
20272 UNUSED_PARAMETER(pArg); in display_scanstats()
20274 if( pArg->scanstatsOn==3 ){ in display_scanstats()
20284 sqlite3_stmt *pSave = pArg->pStmt; in display_scanstats()
20285 pArg->pStmt = pStmt; in display_scanstats()
20288 pArg->cnt = 0; in display_scanstats()
20289 pArg->cMode = MODE_ScanExp; in display_scanstats()
20290 explain_data_prepare(pArg, pStmt); in display_scanstats()
20291 exec_prepared_stmt(pArg, pStmt); in display_scanstats()
20292 explain_data_delete(pArg); in display_scanstats()
20295 pArg->pStmt = pSave; in display_scanstats()
20298 display_explain_scanstats(db, pArg); in display_scanstats()
20350 static void bind_prepared_stmt(ShellState *pArg, sqlite3_stmt *pStmt){ in bind_prepared_stmt() argument
20358 if( sqlite3_table_column_metadata(pArg->db, "TEMP", "sqlite_parameters", in bind_prepared_stmt()
20363 rc = sqlite3_prepare_v2(pArg->db, in bind_prepared_stmt()
20823 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
20829 if( pArg->cMode==MODE_Column in exec_prepared_stmt()
20830 || pArg->cMode==MODE_Table in exec_prepared_stmt()
20831 || pArg->cMode==MODE_Box in exec_prepared_stmt()
20832 || pArg->cMode==MODE_Markdown in exec_prepared_stmt()
20834 exec_prepared_stmt_columnar(pArg, pStmt); in exec_prepared_stmt()
20865 && pArg in exec_prepared_stmt()
20866 && (pArg->cMode==MODE_Insert || pArg->cMode==MODE_Quote) in exec_prepared_stmt()
20881 if( shell_callback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
20889 if( pArg->cMode==MODE_Json ){ in exec_prepared_stmt()
20890 fputs("]\n", pArg->out); in exec_prepared_stmt()
20891 }else if( pArg->cMode==MODE_Count ){ in exec_prepared_stmt()
21042 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
21050 sqlite3 *db = pArg->db; in shell_exec()
21057 if( pArg->expert.pExpert ){ in shell_exec()
21058 rc = expertHandleSQL(pArg, zSql, pzErrMsg); in shell_exec()
21059 return expertFinish(pArg, (rc!=SQLITE_OK), pzErrMsg); in shell_exec()
21082 if( pArg ){ in shell_exec()
21083 pArg->pStmt = pStmt; in shell_exec()
21084 pArg->cnt = 0; in shell_exec()
21088 if( pArg && pArg->autoEQP && sqlite3_stmt_isexplain(pStmt)==0 ){ in shell_exec()
21093 if( pArg->autoEQP>=AUTOEQP_trigger ){ in shell_exec()
21105 if( zEQPLine[0]=='-' ) eqp_render(pArg, 0); in shell_exec()
21106 eqp_append(pArg, iEqpId, iParentId, zEQPLine); in shell_exec()
21108 eqp_render(pArg, 0); in shell_exec()
21110 if( pArg->autoEQP>=AUTOEQP_full ){ in shell_exec()
21115 pArg->cMode = MODE_Explain; in shell_exec()
21117 explain_data_prepare(pArg, pExplain); in shell_exec()
21118 exec_prepared_stmt(pArg, pExplain); in shell_exec()
21119 explain_data_delete(pArg); in shell_exec()
21122 if( pArg->autoEQP>=AUTOEQP_trigger && triggerEQP==0 ){ in shell_exec()
21130 if( pArg ){ in shell_exec()
21132 pArg->cMode = pArg->mode; in shell_exec()
21133 if( pArg->autoExplain ){ in shell_exec()
21135 pArg->cMode = MODE_Explain; in shell_exec()
21138 pArg->cMode = MODE_EQP; in shell_exec()
21144 if( pArg->cMode==MODE_Explain && bIsExplain ){ in shell_exec()
21145 explain_data_prepare(pArg, pStmt); in shell_exec()
21149 bind_prepared_stmt(pArg, pStmt); in shell_exec()
21150 exec_prepared_stmt(pArg, pStmt); in shell_exec()
21151 explain_data_delete(pArg); in shell_exec()
21152 eqp_render(pArg, 0); in shell_exec()
21155 if( pArg && pArg->statsOn ){ in shell_exec()
21156 display_stats(db, pArg, 0); in shell_exec()
21160 if( pArg && pArg->scanstatsOn ){ in shell_exec()
21161 display_scanstats(db, pArg); in shell_exec()
21177 if( pArg ){ in shell_exec()
21178 pArg->pStmt = NULL; in shell_exec()
21325 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
21330 ShellState *p = (ShellState *)pArg; in dump_callback()
22535 void *pArg, /* The ShellState pointer */ in sql_trace_callback() argument
22539 ShellState *p = (ShellState*)pArg; in sql_trace_callback()