Lines Matching refs:pArg
2182 static int pcachetraceInit(void *pArg){ in pcachetraceInit() argument
2185 fprintf(pcachetraceOut, "PCACHETRACE: xInit(%p)\n", pArg); in pcachetraceInit()
2187 nRes = pcacheBase.xInit(pArg); in pcachetraceInit()
2189 fprintf(pcachetraceOut, "PCACHETRACE: xInit(%p) -> %d\n", pArg, nRes); in pcachetraceInit()
2193 static void pcachetraceShutdown(void *pArg){ in pcachetraceShutdown() argument
2195 fprintf(pcachetraceOut, "PCACHETRACE: xShutdown(%p)\n", pArg); in pcachetraceShutdown()
2197 pcacheBase.xShutdown(pArg); in pcachetraceShutdown()
4443 Decimal *pArg; in decimalSumStep() local
4459 pArg = decimal_new(context, argv[0], 1); in decimalSumStep()
4460 decimal_add(p, pArg); in decimalSumStep()
4461 decimal_free(pArg); in decimalSumStep()
4469 Decimal *pArg; in decimalSumInverse() local
4474 pArg = decimal_new(context, argv[0], 1); in decimalSumInverse()
4475 if( pArg ) pArg->sign = !pArg->sign; in decimalSumInverse()
4476 decimal_add(p, pArg); in decimalSumInverse()
4477 decimal_free(pArg); in decimalSumInverse()
9675 static int apndFileControl(sqlite3_file*, int op, void *pArg);
9880 static int apndFileControl(sqlite3_file *pFile, int op, void *pArg){ in apndFileControl() argument
9884 if( op==SQLITE_FCNTL_SIZE_HINT ) *(sqlite3_int64*)pArg += paf->iPgOne; in apndFileControl()
9885 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in apndFileControl()
9887 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", paf->iPgOne,*(char**)pArg); in apndFileControl()
16414 static int vfstraceFileControl(sqlite3_file*, int op, void *pArg);
16754 static int vfstraceFileControl(sqlite3_file *pFile, int op, void *pArg){ in vfstraceFileControl() argument
16770 *(sqlite3_int64*)pArg); in vfstraceFileControl()
16775 sqlite3_snprintf(sizeof(zBuf), zBuf, "CHUNK_SIZE,%d", *(int*)pArg); in vfstraceFileControl()
16782 sqlite3_snprintf(sizeof(zBuf), zBuf, "PERSIST_WAL,%d", *(int*)pArg); in vfstraceFileControl()
16790 const char *const* a = (const char*const*)pArg; in vfstraceFileControl()
16872 sqlite3_int64 iMMap = *(sqlite3_int64*)pArg; in vfstraceFileControl()
16896 sqlite3_snprintf(sizeof(zBuf), zBuf, "LOCK_TIMEOUT,%d", *(int*)pArg); in vfstraceFileControl()
16917 rc = p->pReal->pMethods->xFileControl(p->pReal, op, pArg); in vfstraceFileControl()
16921 *(char**)pArg = sqlite3_mprintf("vfstrace.%s/%z", in vfstraceFileControl()
16922 pInfo->zVfsName, *(char**)pArg); in vfstraceFileControl()
16923 zRVal = *(char**)pArg; in vfstraceFileControl()
16927 sqlite3_snprintf(sizeof(zBuf2), zBuf2, "%lld", *(sqlite3_int64*)pArg); in vfstraceFileControl()
16933 sqlite3_snprintf(sizeof(zBuf2), zBuf2, "%d", *(int*)pArg); in vfstraceFileControl()
16939 zRVal = *(char**)pArg; in vfstraceFileControl()
17567 int sqlite3_recover_config(sqlite3_recover*, int op, void *pArg);
20899 static int recoverVfsFileControl(sqlite3_file*, int op, void *pArg);
21194 static int recoverVfsFileControl(sqlite3_file *pFd, int op, void *pArg){ in recoverVfsFileControl() argument
21196 (pFd->pMethods ? pFd->pMethods->xFileControl(pFd, op, pArg) : SQLITE_NOTFOUND) in recoverVfsFileControl()
21506 int sqlite3_recover_config(sqlite3_recover *p, int op, void *pArg){ in sqlite3_recover_config() argument
21521 p->zStateDb = recoverMPrintf(p, "%s", (char*)pArg); in sqlite3_recover_config()
21525 const char *zArg = (const char*)pArg; in sqlite3_recover_config()
21536 p->bFreelistCorrupt = *(int*)pArg; in sqlite3_recover_config()
21540 p->bRecoverRowid = *(int*)pArg; in sqlite3_recover_config()
21544 p->bSlowIndexes = *(int*)pArg; in sqlite3_recover_config()
21887 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
21888 ShellState *p = (ShellState*)pArg; in shellLog()
22878 void *pArg, in shell_callback() argument
22885 ShellState *p = (ShellState*)pArg; in shell_callback()
23308 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
23310 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
23317 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
23318 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
23600 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
23606 if( pArg==0 || pArg->out==0 ) return 0; in display_stats()
23607 out = pArg->out; in display_stats()
23609 if( pArg->pStmt && pArg->statsOn==2 ){ in display_stats()
23611 sqlite3_stmt *pStmt = pArg->pStmt; in display_stats()
23634 if( pArg->statsOn==3 ){ in display_stats()
23635 if( pArg->pStmt ){ in display_stats()
23636 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP,bReset); in display_stats()
23646 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
23662 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
23711 if( pArg->pStmt ){ in display_stats()
23713 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
23717 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
23720 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
23723 iHit = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FILTER_HIT, in display_stats()
23725 iMiss = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FILTER_MISS, in display_stats()
23731 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
23734 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_REPREPARE,bReset); in display_stats()
23737 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_RUN, bReset); in display_stats()
23740 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_MEMUSED, bReset); in display_stats()
23746 displayLinuxIoStats(pArg->out); in display_stats()
23786 ShellState *pArg /* Pointer to ShellState */ in display_explain_scanstats() argument
23789 sqlite3_stmt *p = pArg->pStmt; in display_explain_scanstats()
23793 eqp_reset(pArg); in display_explain_scanstats()
23844 if( zName && pArg->scanstatsOn>1 ){ in display_explain_scanstats()
23854 eqp_append(pArg, iId, iPid, zText); in display_explain_scanstats()
23858 eqp_render(pArg, nTotal); in display_explain_scanstats()
23974 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
23978 UNUSED_PARAMETER(pArg); in display_scanstats()
23980 if( pArg->scanstatsOn==3 ){ in display_scanstats()
23996 sqlite3_stmt *pSave = pArg->pStmt; in display_scanstats()
23997 pArg->pStmt = pStmt; in display_scanstats()
24000 pArg->cnt = 0; in display_scanstats()
24001 pArg->cMode = MODE_ScanExp; in display_scanstats()
24002 explain_data_prepare(pArg, pStmt); in display_scanstats()
24003 exec_prepared_stmt(pArg, pStmt); in display_scanstats()
24004 explain_data_delete(pArg); in display_scanstats()
24007 pArg->pStmt = pSave; in display_scanstats()
24010 display_explain_scanstats(db, pArg); in display_scanstats()
24062 static void bind_prepared_stmt(ShellState *pArg, sqlite3_stmt *pStmt){ in bind_prepared_stmt() argument
24070 if( sqlite3_table_column_metadata(pArg->db, "TEMP", "sqlite_parameters", in bind_prepared_stmt()
24075 rc = sqlite3_prepare_v2(pArg->db, in bind_prepared_stmt()
24608 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
24614 if( pArg->cMode==MODE_Column in exec_prepared_stmt()
24615 || pArg->cMode==MODE_Table in exec_prepared_stmt()
24616 || pArg->cMode==MODE_Box in exec_prepared_stmt()
24617 || pArg->cMode==MODE_Markdown in exec_prepared_stmt()
24619 exec_prepared_stmt_columnar(pArg, pStmt); in exec_prepared_stmt()
24650 && pArg in exec_prepared_stmt()
24651 && (pArg->cMode==MODE_Insert || pArg->cMode==MODE_Quote) in exec_prepared_stmt()
24666 if( shell_callback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
24674 if( pArg->cMode==MODE_Json ){ in exec_prepared_stmt()
24675 sqlite3_fputs("]\n", pArg->out); in exec_prepared_stmt()
24676 }else if( pArg->cMode==MODE_Www ){ in exec_prepared_stmt()
24677 sqlite3_fputs("</TABLE>\n<PRE>\n", pArg->out); in exec_prepared_stmt()
24678 }else if( pArg->cMode==MODE_Count ){ in exec_prepared_stmt()
24832 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
24840 sqlite3 *db = pArg->db; in shell_exec()
24847 if( pArg->expert.pExpert ){ in shell_exec()
24848 rc = expertHandleSQL(pArg, zSql, pzErrMsg); in shell_exec()
24849 return expertFinish(pArg, (rc!=SQLITE_OK), pzErrMsg); in shell_exec()
24872 if( pArg ){ in shell_exec()
24873 pArg->pStmt = pStmt; in shell_exec()
24874 pArg->cnt = 0; in shell_exec()
24878 if( pArg && pArg->autoEQP && sqlite3_stmt_isexplain(pStmt)==0 ){ in shell_exec()
24883 if( pArg->autoEQP>=AUTOEQP_trigger ){ in shell_exec()
24890 bind_prepared_stmt(pArg, pExplain); in shell_exec()
24896 if( zEQPLine[0]=='-' ) eqp_render(pArg, 0); in shell_exec()
24897 eqp_append(pArg, iEqpId, iParentId, zEQPLine); in shell_exec()
24899 eqp_render(pArg, 0); in shell_exec()
24901 if( pArg->autoEQP>=AUTOEQP_full ){ in shell_exec()
24906 pArg->cMode = MODE_Explain; in shell_exec()
24908 bind_prepared_stmt(pArg, pExplain); in shell_exec()
24909 explain_data_prepare(pArg, pExplain); in shell_exec()
24910 exec_prepared_stmt(pArg, pExplain); in shell_exec()
24911 explain_data_delete(pArg); in shell_exec()
24914 if( pArg->autoEQP>=AUTOEQP_trigger && triggerEQP==0 ){ in shell_exec()
24922 if( pArg ){ in shell_exec()
24924 pArg->cMode = pArg->mode; in shell_exec()
24925 if( pArg->autoExplain ){ in shell_exec()
24927 pArg->cMode = MODE_Explain; in shell_exec()
24930 pArg->cMode = MODE_EQP; in shell_exec()
24936 if( pArg->cMode==MODE_Explain && bIsExplain ){ in shell_exec()
24937 explain_data_prepare(pArg, pStmt); in shell_exec()
24941 bind_prepared_stmt(pArg, pStmt); in shell_exec()
24942 exec_prepared_stmt(pArg, pStmt); in shell_exec()
24943 explain_data_delete(pArg); in shell_exec()
24944 eqp_render(pArg, 0); in shell_exec()
24947 if( pArg && pArg->statsOn ){ in shell_exec()
24948 display_stats(db, pArg, 0); in shell_exec()
24952 if( pArg && pArg->scanstatsOn ){ in shell_exec()
24953 display_scanstats(db, pArg); in shell_exec()
24969 if( pArg ){ in shell_exec()
24970 pArg->pStmt = NULL; in shell_exec()
25117 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
25122 ShellState *p = (ShellState *)pArg; in dump_callback()
26389 void *pArg, /* The ShellState pointer */ in sql_trace_callback() argument
26393 ShellState *p = (ShellState*)pArg; in sql_trace_callback()
33189 static int vfstraceOut(const char *z, void *pArg){ in vfstraceOut() argument
33190 ShellState *p = (ShellState*)pArg; in vfstraceOut()