Lines Matching refs:pArg
3500 static int apndFileControl(sqlite3_file*, int op, void *pArg);
3706 static int apndFileControl(sqlite3_file *pFile, int op, void *pArg){ in apndFileControl() argument
3710 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in apndFileControl()
3712 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", p->iPgOne, *(char**)pArg); in apndFileControl()
8047 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
8048 ShellState *p = (ShellState*)pArg; in shellLog()
8581 void *pArg, in shell_callback() argument
8588 ShellState *p = (ShellState*)pArg; in shell_callback()
8933 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
8935 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
8942 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
8943 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
9176 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
9182 if( pArg && pArg->out ){ in display_stats()
9183 displayStatLine(pArg, "Memory Used:", in display_stats()
9185 displayStatLine(pArg, "Number of Outstanding Allocations:", in display_stats()
9187 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
9188 displayStatLine(pArg, "Number of Pcache Pages Used:", in display_stats()
9191 displayStatLine(pArg, "Number of Pcache Overflow Bytes:", in display_stats()
9193 displayStatLine(pArg, "Largest Allocation:", in display_stats()
9195 displayStatLine(pArg, "Largest Pcache Allocation:", in display_stats()
9198 displayStatLine(pArg, "Deepest Parser Stack:", in display_stats()
9203 if( pArg && pArg->out && db ){ in display_stats()
9204 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
9208 raw_printf(pArg->out, in display_stats()
9213 raw_printf(pArg->out, "Successful lookaside attempts: %d\n", in display_stats()
9217 raw_printf(pArg->out, "Lookaside failures due to size: %d\n", in display_stats()
9221 raw_printf(pArg->out, "Lookaside failures due to OOM: %d\n", in display_stats()
9226 raw_printf(pArg->out, "Pager Heap Usage: %d bytes\n", in display_stats()
9230 raw_printf(pArg->out, "Page cache hits: %d\n", iCur); in display_stats()
9233 raw_printf(pArg->out, "Page cache misses: %d\n", iCur); in display_stats()
9236 raw_printf(pArg->out, "Page cache writes: %d\n", iCur); in display_stats()
9239 raw_printf(pArg->out, "Schema Heap Usage: %d bytes\n", in display_stats()
9243 raw_printf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n", in display_stats()
9247 if( pArg && pArg->out && db && pArg->pStmt ){ in display_stats()
9248 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
9250 raw_printf(pArg->out, "Fullscan Steps: %d\n", iCur); in display_stats()
9251 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
9252 raw_printf(pArg->out, "Sort Operations: %d\n", iCur); in display_stats()
9253 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
9254 raw_printf(pArg->out, "Autoindex Inserts: %d\n", iCur); in display_stats()
9255 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
9256 raw_printf(pArg->out, "Virtual Machine Steps: %d\n", iCur); in display_stats()
9260 displayLinuxIoStats(pArg->out); in display_stats()
9273 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
9277 UNUSED_PARAMETER(pArg); in display_scanstats()
9280 raw_printf(pArg->out, "-------- scanstats --------\n"); in display_scanstats()
9285 sqlite3_stmt *p = pArg->pStmt; in display_scanstats()
9298 if( k>0 ) raw_printf(pArg->out, "-------- subquery %d -------\n", k); in display_scanstats()
9304 utf8_printf(pArg->out, "Loop %2d: %s\n", n, zExplain); in display_scanstats()
9306 raw_printf(pArg->out, in display_scanstats()
9312 raw_printf(pArg->out, "---------------------------\n"); in display_scanstats()
9471 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
9504 if( x==SQLITE_BLOB && pArg && pArg->cMode==MODE_Insert ){ in exec_prepared_stmt()
9518 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
9680 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
9693 if( pArg->expert.pExpert ){ in shell_exec()
9694 rc = expertHandleSQL(pArg, zSql, pzErrMsg); in shell_exec()
9695 return expertFinish(pArg, (rc!=SQLITE_OK), pzErrMsg); in shell_exec()
9718 if( pArg ){ in shell_exec()
9719 pArg->pStmt = pStmt; in shell_exec()
9720 pArg->cnt = 0; in shell_exec()
9724 if( pArg && ShellHasFlag(pArg, SHFLG_Echo) ){ in shell_exec()
9725 utf8_printf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql); in shell_exec()
9729 if( pArg && pArg->autoEQP && sqlite3_strlike("EXPLAIN%",zStmtSql,0)!=0 ){ in shell_exec()
9735 if( pArg->autoEQP>=AUTOEQP_trigger ){ in shell_exec()
9742 raw_printf(pArg->out,"--EQP-- %d,",sqlite3_column_int(pExplain, 0)); in shell_exec()
9743 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 1)); in shell_exec()
9744 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 2)); in shell_exec()
9745 utf8_printf(pArg->out,"%s\n", sqlite3_column_text(pExplain, 3)); in shell_exec()
9750 if( pArg->autoEQP>=AUTOEQP_full ){ in shell_exec()
9755 pArg->cMode = MODE_Explain; in shell_exec()
9756 explain_data_prepare(pArg, pExplain); in shell_exec()
9757 exec_prepared_stmt(pArg, pExplain, xCallback); in shell_exec()
9758 explain_data_delete(pArg); in shell_exec()
9767 if( pArg ){ in shell_exec()
9768 pArg->cMode = pArg->mode; in shell_exec()
9769 if( pArg->autoExplain in shell_exec()
9773 pArg->cMode = MODE_Explain; in shell_exec()
9778 if( pArg->cMode==MODE_Explain ){ in shell_exec()
9779 explain_data_prepare(pArg, pStmt); in shell_exec()
9783 exec_prepared_stmt(pArg, pStmt, xCallback); in shell_exec()
9784 explain_data_delete(pArg); in shell_exec()
9787 if( pArg && pArg->statsOn ){ in shell_exec()
9788 display_stats(db, pArg, 0); in shell_exec()
9792 if( pArg && pArg->scanstatsOn ){ in shell_exec()
9793 display_scanstats(db, pArg); in shell_exec()
9809 if( pArg ){ in shell_exec()
9810 pArg->pStmt = NULL; in shell_exec()
9957 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
9962 ShellState *p = (ShellState *)pArg; in dump_callback()
10595 void *pArg, in sql_trace_callback() argument
10599 FILE *f = (FILE*)pArg; in sql_trace_callback()