Lines Matching refs:pArg

1513 static void shellLog(void *pArg, int iErrCode, const char *zMsg){
1514 ShellState *p = (ShellState*)pArg;
1864 void *pArg,
1871 ShellState *p = (ShellState*)pArg;
2204 static int callback(void *pArg, int nArg, char **azArg, char **azCol){
2206 return shell_callback(pArg, nArg, azArg, azCol, NULL);
2213 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){
2214 ShellText *p = (ShellText*)pArg;
2446 ShellState *pArg, /* Pointer to ShellState */
2452 if( pArg && pArg->out ){
2453 displayStatLine(pArg, "Memory Used:",
2455 displayStatLine(pArg, "Number of Outstanding Allocations:",
2457 if( pArg->shellFlgs & SHFLG_Pagecache ){
2458 displayStatLine(pArg, "Number of Pcache Pages Used:",
2461 displayStatLine(pArg, "Number of Pcache Overflow Bytes:",
2463 if( pArg->shellFlgs & SHFLG_Scratch ){
2464 displayStatLine(pArg, "Number of Scratch Allocations Used:",
2467 displayStatLine(pArg, "Number of Scratch Overflow Bytes:",
2469 displayStatLine(pArg, "Largest Allocation:",
2471 displayStatLine(pArg, "Largest Pcache Allocation:",
2473 displayStatLine(pArg, "Largest Scratch Allocation:",
2476 displayStatLine(pArg, "Deepest Parser Stack:",
2481 if( pArg && pArg->out && db ){
2482 if( pArg->shellFlgs & SHFLG_Lookaside ){
2486 raw_printf(pArg->out,
2491 raw_printf(pArg->out, "Successful lookaside attempts: %d\n",
2495 raw_printf(pArg->out, "Lookaside failures due to size: %d\n",
2499 raw_printf(pArg->out, "Lookaside failures due to OOM: %d\n",
2504 raw_printf(pArg->out, "Pager Heap Usage: %d bytes\n",
2508 raw_printf(pArg->out, "Page cache hits: %d\n", iCur);
2511 raw_printf(pArg->out, "Page cache misses: %d\n", iCur);
2514 raw_printf(pArg->out, "Page cache writes: %d\n", iCur);
2517 raw_printf(pArg->out, "Schema Heap Usage: %d bytes\n",
2521 raw_printf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n",
2525 if( pArg && pArg->out && db && pArg->pStmt ){
2526 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP,
2528 raw_printf(pArg->out, "Fullscan Steps: %d\n", iCur);
2529 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset);
2530 raw_printf(pArg->out, "Sort Operations: %d\n", iCur);
2531 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset);
2532 raw_printf(pArg->out, "Autoindex Inserts: %d\n", iCur);
2533 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset);
2534 raw_printf(pArg->out, "Virtual Machine Steps: %d\n", iCur);
2538 displayLinuxIoStats(pArg->out);
2551 ShellState *pArg /* Pointer to ShellState */
2555 UNUSED_PARAMETER(pArg);
2558 raw_printf(pArg->out, "-------- scanstats --------\n");
2563 sqlite3_stmt *p = pArg->pStmt;
2576 if( k>0 ) raw_printf(pArg->out, "-------- subquery %d -------\n", k);
2582 utf8_printf(pArg->out, "Loop %2d: %s\n", n, zExplain);
2584 raw_printf(pArg->out,
2590 raw_printf(pArg->out, "---------------------------\n");
2749 ShellState *pArg, /* Pointer to ShellState */
2782 if( x==SQLITE_BLOB && pArg && pArg->cMode==MODE_Insert ){
2796 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){
2827 ShellState *pArg, /* Pointer to ShellState */
2858 if( pArg ){
2859 pArg->pStmt = pStmt;
2860 pArg->cnt = 0;
2864 if( pArg && ShellHasFlag(pArg, SHFLG_Echo) ){
2865 utf8_printf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql);
2869 if( pArg && pArg->autoEQP && sqlite3_strlike("EXPLAIN%",zStmtSql,0)!=0 ){
2877 raw_printf(pArg->out,"--EQP-- %d,",sqlite3_column_int(pExplain, 0));
2878 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 1));
2879 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 2));
2880 utf8_printf(pArg->out,"%s\n", sqlite3_column_text(pExplain, 3));
2885 if( pArg->autoEQP>=2 ){
2890 pArg->cMode = MODE_Explain;
2891 explain_data_prepare(pArg, pExplain);
2892 exec_prepared_stmt(pArg, pExplain, xCallback);
2893 explain_data_delete(pArg);
2901 if( pArg ){
2902 pArg->cMode = pArg->mode;
2903 if( pArg->autoExplain
2907 pArg->cMode = MODE_Explain;
2912 if( pArg->cMode==MODE_Explain ){
2913 explain_data_prepare(pArg, pStmt);
2917 exec_prepared_stmt(pArg, pStmt, xCallback);
2918 explain_data_delete(pArg);
2921 if( pArg && pArg->statsOn ){
2922 display_stats(db, pArg, 0);
2926 if( pArg && pArg->scanstatsOn ){
2927 display_scanstats(db, pArg);
2943 if( pArg ){
2944 pArg->pStmt = NULL;
3090 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){
3095 ShellState *p = (ShellState *)pArg;
3724 void *pArg,
3728 FILE *f = (FILE*)pArg;