Lines Matching refs:pArg

1479 static void shellLog(void *pArg, int iErrCode, const char *zMsg){  in shellLog()  argument
1480 ShellState *p = (ShellState*)pArg; in shellLog()
1759 void *pArg, in shell_callback() argument
1766 ShellState *p = (ShellState*)pArg; in shell_callback()
2082 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
2084 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
2091 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
2092 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
2324 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
2330 if( pArg && pArg->out ){ in display_stats()
2331 displayStatLine(pArg, "Memory Used:", in display_stats()
2333 displayStatLine(pArg, "Number of Outstanding Allocations:", in display_stats()
2335 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
2336 displayStatLine(pArg, "Number of Pcache Pages Used:", in display_stats()
2339 displayStatLine(pArg, "Number of Pcache Overflow Bytes:", in display_stats()
2341 if( pArg->shellFlgs & SHFLG_Scratch ){ in display_stats()
2342 displayStatLine(pArg, "Number of Scratch Allocations Used:", in display_stats()
2345 displayStatLine(pArg, "Number of Scratch Overflow Bytes:", in display_stats()
2347 displayStatLine(pArg, "Largest Allocation:", in display_stats()
2349 displayStatLine(pArg, "Largest Pcache Allocation:", in display_stats()
2351 displayStatLine(pArg, "Largest Scratch Allocation:", in display_stats()
2354 displayStatLine(pArg, "Deepest Parser Stack:", in display_stats()
2359 if( pArg && pArg->out && db ){ in display_stats()
2360 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
2364 raw_printf(pArg->out, in display_stats()
2369 raw_printf(pArg->out, "Successful lookaside attempts: %d\n", in display_stats()
2373 raw_printf(pArg->out, "Lookaside failures due to size: %d\n", in display_stats()
2377 raw_printf(pArg->out, "Lookaside failures due to OOM: %d\n", in display_stats()
2382 raw_printf(pArg->out, "Pager Heap Usage: %d bytes\n", in display_stats()
2386 raw_printf(pArg->out, "Page cache hits: %d\n", iCur); in display_stats()
2389 raw_printf(pArg->out, "Page cache misses: %d\n", iCur); in display_stats()
2392 raw_printf(pArg->out, "Page cache writes: %d\n", iCur); in display_stats()
2395 raw_printf(pArg->out, "Schema Heap Usage: %d bytes\n", in display_stats()
2399 raw_printf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n", in display_stats()
2403 if( pArg && pArg->out && db && pArg->pStmt ){ in display_stats()
2404 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
2406 raw_printf(pArg->out, "Fullscan Steps: %d\n", iCur); in display_stats()
2407 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
2408 raw_printf(pArg->out, "Sort Operations: %d\n", iCur); in display_stats()
2409 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
2410 raw_printf(pArg->out, "Autoindex Inserts: %d\n", iCur); in display_stats()
2411 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
2412 raw_printf(pArg->out, "Virtual Machine Steps: %d\n", iCur); in display_stats()
2416 displayLinuxIoStats(pArg->out); in display_stats()
2429 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
2433 UNUSED_PARAMETER(pArg); in display_scanstats()
2436 raw_printf(pArg->out, "-------- scanstats --------\n"); in display_scanstats()
2441 sqlite3_stmt *p = pArg->pStmt; in display_scanstats()
2454 if( k>0 ) raw_printf(pArg->out, "-------- subquery %d -------\n", k); in display_scanstats()
2460 utf8_printf(pArg->out, "Loop %2d: %s\n", n, zExplain); in display_scanstats()
2462 raw_printf(pArg->out, in display_scanstats()
2468 raw_printf(pArg->out, "---------------------------\n"); in display_scanstats()
2627 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
2660 if( x==SQLITE_BLOB && pArg && pArg->cMode==MODE_Insert ){ in exec_prepared_stmt()
2674 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
2705 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
2736 if( pArg ){ in shell_exec()
2737 pArg->pStmt = pStmt; in shell_exec()
2738 pArg->cnt = 0; in shell_exec()
2742 if( pArg && ShellHasFlag(pArg, SHFLG_Echo) ){ in shell_exec()
2743 utf8_printf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql); in shell_exec()
2747 if( pArg && pArg->autoEQP && sqlite3_strlike("EXPLAIN%",zStmtSql,0)!=0 ){ in shell_exec()
2755 raw_printf(pArg->out,"--EQP-- %d,",sqlite3_column_int(pExplain, 0)); in shell_exec()
2756 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 1)); in shell_exec()
2757 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 2)); in shell_exec()
2758 utf8_printf(pArg->out,"%s\n", sqlite3_column_text(pExplain, 3)); in shell_exec()
2763 if( pArg->autoEQP>=2 ){ in shell_exec()
2768 pArg->cMode = MODE_Explain; in shell_exec()
2769 explain_data_prepare(pArg, pExplain); in shell_exec()
2770 exec_prepared_stmt(pArg, pExplain, xCallback); in shell_exec()
2771 explain_data_delete(pArg); in shell_exec()
2779 if( pArg ){ in shell_exec()
2780 pArg->cMode = pArg->mode; in shell_exec()
2781 if( pArg->autoExplain in shell_exec()
2785 pArg->cMode = MODE_Explain; in shell_exec()
2790 if( pArg->cMode==MODE_Explain ){ in shell_exec()
2791 explain_data_prepare(pArg, pStmt); in shell_exec()
2795 exec_prepared_stmt(pArg, pStmt, xCallback); in shell_exec()
2796 explain_data_delete(pArg); in shell_exec()
2799 if( pArg && pArg->statsOn ){ in shell_exec()
2800 display_stats(db, pArg, 0); in shell_exec()
2804 if( pArg && pArg->scanstatsOn ){ in shell_exec()
2805 display_scanstats(db, pArg); in shell_exec()
2821 if( pArg ){ in shell_exec()
2822 pArg->pStmt = NULL; in shell_exec()
2968 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
2973 ShellState *p = (ShellState *)pArg; in dump_callback()
3602 void *pArg, in sql_trace_callback() argument
3606 FILE *f = (FILE*)pArg; in sql_trace_callback()