Lines Matching refs:pArg
1473 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
1474 ShellState *p = (ShellState*)pArg; in shellLog()
1753 void *pArg, in shell_callback() argument
1760 ShellState *p = (ShellState*)pArg; in shell_callback()
2076 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
2078 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
2085 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
2086 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
2318 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
2324 if( pArg && pArg->out ){ in display_stats()
2325 displayStatLine(pArg, "Memory Used:", in display_stats()
2327 displayStatLine(pArg, "Number of Outstanding Allocations:", in display_stats()
2329 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
2330 displayStatLine(pArg, "Number of Pcache Pages Used:", in display_stats()
2333 displayStatLine(pArg, "Number of Pcache Overflow Bytes:", in display_stats()
2335 if( pArg->shellFlgs & SHFLG_Scratch ){ in display_stats()
2336 displayStatLine(pArg, "Number of Scratch Allocations Used:", in display_stats()
2339 displayStatLine(pArg, "Number of Scratch Overflow Bytes:", in display_stats()
2341 displayStatLine(pArg, "Largest Allocation:", in display_stats()
2343 displayStatLine(pArg, "Largest Pcache Allocation:", in display_stats()
2345 displayStatLine(pArg, "Largest Scratch Allocation:", in display_stats()
2348 displayStatLine(pArg, "Deepest Parser Stack:", in display_stats()
2353 if( pArg && pArg->out && db ){ in display_stats()
2354 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
2358 raw_printf(pArg->out, in display_stats()
2363 raw_printf(pArg->out, "Successful lookaside attempts: %d\n", in display_stats()
2367 raw_printf(pArg->out, "Lookaside failures due to size: %d\n", in display_stats()
2371 raw_printf(pArg->out, "Lookaside failures due to OOM: %d\n", in display_stats()
2376 raw_printf(pArg->out, "Pager Heap Usage: %d bytes\n", in display_stats()
2380 raw_printf(pArg->out, "Page cache hits: %d\n", iCur); in display_stats()
2383 raw_printf(pArg->out, "Page cache misses: %d\n", iCur); in display_stats()
2386 raw_printf(pArg->out, "Page cache writes: %d\n", iCur); in display_stats()
2389 raw_printf(pArg->out, "Schema Heap Usage: %d bytes\n", in display_stats()
2393 raw_printf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n", in display_stats()
2397 if( pArg && pArg->out && db && pArg->pStmt ){ in display_stats()
2398 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
2400 raw_printf(pArg->out, "Fullscan Steps: %d\n", iCur); in display_stats()
2401 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
2402 raw_printf(pArg->out, "Sort Operations: %d\n", iCur); in display_stats()
2403 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
2404 raw_printf(pArg->out, "Autoindex Inserts: %d\n", iCur); in display_stats()
2405 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
2406 raw_printf(pArg->out, "Virtual Machine Steps: %d\n", iCur); in display_stats()
2410 displayLinuxIoStats(pArg->out); in display_stats()
2423 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
2427 UNUSED_PARAMETER(pArg); in display_scanstats()
2430 raw_printf(pArg->out, "-------- scanstats --------\n"); in display_scanstats()
2435 sqlite3_stmt *p = pArg->pStmt; in display_scanstats()
2448 if( k>0 ) raw_printf(pArg->out, "-------- subquery %d -------\n", k); in display_scanstats()
2454 utf8_printf(pArg->out, "Loop %2d: %s\n", n, zExplain); in display_scanstats()
2456 raw_printf(pArg->out, in display_scanstats()
2462 raw_printf(pArg->out, "---------------------------\n"); in display_scanstats()
2621 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
2654 if( x==SQLITE_BLOB && pArg && pArg->cMode==MODE_Insert ){ in exec_prepared_stmt()
2668 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
2699 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
2730 if( pArg ){ in shell_exec()
2731 pArg->pStmt = pStmt; in shell_exec()
2732 pArg->cnt = 0; in shell_exec()
2736 if( pArg && ShellHasFlag(pArg, SHFLG_Echo) ){ in shell_exec()
2737 utf8_printf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql); in shell_exec()
2741 if( pArg && pArg->autoEQP && sqlite3_strlike("EXPLAIN%",zStmtSql,0)!=0 ){ in shell_exec()
2749 raw_printf(pArg->out,"--EQP-- %d,",sqlite3_column_int(pExplain, 0)); in shell_exec()
2750 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 1)); in shell_exec()
2751 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 2)); in shell_exec()
2752 utf8_printf(pArg->out,"%s\n", sqlite3_column_text(pExplain, 3)); in shell_exec()
2757 if( pArg->autoEQP>=2 ){ in shell_exec()
2762 pArg->cMode = MODE_Explain; in shell_exec()
2763 explain_data_prepare(pArg, pExplain); in shell_exec()
2764 exec_prepared_stmt(pArg, pExplain, xCallback); in shell_exec()
2765 explain_data_delete(pArg); in shell_exec()
2773 if( pArg ){ in shell_exec()
2774 pArg->cMode = pArg->mode; in shell_exec()
2775 if( pArg->autoExplain in shell_exec()
2779 pArg->cMode = MODE_Explain; in shell_exec()
2784 if( pArg->cMode==MODE_Explain ){ in shell_exec()
2785 explain_data_prepare(pArg, pStmt); in shell_exec()
2789 exec_prepared_stmt(pArg, pStmt, xCallback); in shell_exec()
2790 explain_data_delete(pArg); in shell_exec()
2793 if( pArg && pArg->statsOn ){ in shell_exec()
2794 display_stats(db, pArg, 0); in shell_exec()
2798 if( pArg && pArg->scanstatsOn ){ in shell_exec()
2799 display_scanstats(db, pArg); in shell_exec()
2815 if( pArg ){ in shell_exec()
2816 pArg->pStmt = NULL; in shell_exec()
2962 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
2967 ShellState *p = (ShellState *)pArg; in dump_callback()
3580 void *pArg, in sql_trace_callback() argument
3584 FILE *f = (FILE*)pArg; in sql_trace_callback()