• Home
  • Raw
  • Download

Lines Matching refs:pArg

3506 static int apndFileControl(sqlite3_file*, int op, void *pArg);
3712 static int apndFileControl(sqlite3_file *pFile, int op, void *pArg){ in apndFileControl() argument
3716 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in apndFileControl()
3718 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", p->iPgOne, *(char**)pArg); in apndFileControl()
8053 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
8054 ShellState *p = (ShellState*)pArg; in shellLog()
8587 void *pArg, in shell_callback() argument
8594 ShellState *p = (ShellState*)pArg; in shell_callback()
8939 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
8941 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
8948 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
8949 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
9182 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
9188 if( pArg && pArg->out ){ in display_stats()
9189 displayStatLine(pArg, "Memory Used:", in display_stats()
9191 displayStatLine(pArg, "Number of Outstanding Allocations:", in display_stats()
9193 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
9194 displayStatLine(pArg, "Number of Pcache Pages Used:", in display_stats()
9197 displayStatLine(pArg, "Number of Pcache Overflow Bytes:", in display_stats()
9199 displayStatLine(pArg, "Largest Allocation:", in display_stats()
9201 displayStatLine(pArg, "Largest Pcache Allocation:", in display_stats()
9204 displayStatLine(pArg, "Deepest Parser Stack:", in display_stats()
9209 if( pArg && pArg->out && db ){ in display_stats()
9210 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
9214 raw_printf(pArg->out, in display_stats()
9219 raw_printf(pArg->out, "Successful lookaside attempts: %d\n", in display_stats()
9223 raw_printf(pArg->out, "Lookaside failures due to size: %d\n", in display_stats()
9227 raw_printf(pArg->out, "Lookaside failures due to OOM: %d\n", in display_stats()
9232 raw_printf(pArg->out, "Pager Heap Usage: %d bytes\n", in display_stats()
9236 raw_printf(pArg->out, "Page cache hits: %d\n", iCur); in display_stats()
9239 raw_printf(pArg->out, "Page cache misses: %d\n", iCur); in display_stats()
9242 raw_printf(pArg->out, "Page cache writes: %d\n", iCur); in display_stats()
9245 raw_printf(pArg->out, "Schema Heap Usage: %d bytes\n", in display_stats()
9249 raw_printf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n", in display_stats()
9253 if( pArg && pArg->out && db && pArg->pStmt ){ in display_stats()
9254 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
9256 raw_printf(pArg->out, "Fullscan Steps: %d\n", iCur); in display_stats()
9257 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
9258 raw_printf(pArg->out, "Sort Operations: %d\n", iCur); in display_stats()
9259 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
9260 raw_printf(pArg->out, "Autoindex Inserts: %d\n", iCur); in display_stats()
9261 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
9262 raw_printf(pArg->out, "Virtual Machine Steps: %d\n", iCur); in display_stats()
9266 displayLinuxIoStats(pArg->out); in display_stats()
9279 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
9283 UNUSED_PARAMETER(pArg); in display_scanstats()
9286 raw_printf(pArg->out, "-------- scanstats --------\n"); in display_scanstats()
9291 sqlite3_stmt *p = pArg->pStmt; in display_scanstats()
9304 if( k>0 ) raw_printf(pArg->out, "-------- subquery %d -------\n", k); in display_scanstats()
9310 utf8_printf(pArg->out, "Loop %2d: %s\n", n, zExplain); in display_scanstats()
9312 raw_printf(pArg->out, in display_scanstats()
9318 raw_printf(pArg->out, "---------------------------\n"); in display_scanstats()
9477 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
9510 if( x==SQLITE_BLOB && pArg && pArg->cMode==MODE_Insert ){ in exec_prepared_stmt()
9524 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
9686 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
9699 if( pArg->expert.pExpert ){ in shell_exec()
9700 rc = expertHandleSQL(pArg, zSql, pzErrMsg); in shell_exec()
9701 return expertFinish(pArg, (rc!=SQLITE_OK), pzErrMsg); in shell_exec()
9724 if( pArg ){ in shell_exec()
9725 pArg->pStmt = pStmt; in shell_exec()
9726 pArg->cnt = 0; in shell_exec()
9730 if( pArg && ShellHasFlag(pArg, SHFLG_Echo) ){ in shell_exec()
9731 utf8_printf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql); in shell_exec()
9735 if( pArg && pArg->autoEQP && sqlite3_strlike("EXPLAIN%",zStmtSql,0)!=0 ){ in shell_exec()
9741 if( pArg->autoEQP>=AUTOEQP_trigger ){ in shell_exec()
9748 raw_printf(pArg->out,"--EQP-- %d,",sqlite3_column_int(pExplain, 0)); in shell_exec()
9749 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 1)); in shell_exec()
9750 raw_printf(pArg->out,"%d,", sqlite3_column_int(pExplain, 2)); in shell_exec()
9751 utf8_printf(pArg->out,"%s\n", sqlite3_column_text(pExplain, 3)); in shell_exec()
9756 if( pArg->autoEQP>=AUTOEQP_full ){ in shell_exec()
9761 pArg->cMode = MODE_Explain; in shell_exec()
9762 explain_data_prepare(pArg, pExplain); in shell_exec()
9763 exec_prepared_stmt(pArg, pExplain, xCallback); in shell_exec()
9764 explain_data_delete(pArg); in shell_exec()
9773 if( pArg ){ in shell_exec()
9774 pArg->cMode = pArg->mode; in shell_exec()
9775 if( pArg->autoExplain in shell_exec()
9779 pArg->cMode = MODE_Explain; in shell_exec()
9784 if( pArg->cMode==MODE_Explain ){ in shell_exec()
9785 explain_data_prepare(pArg, pStmt); in shell_exec()
9789 exec_prepared_stmt(pArg, pStmt, xCallback); in shell_exec()
9790 explain_data_delete(pArg); in shell_exec()
9793 if( pArg && pArg->statsOn ){ in shell_exec()
9794 display_stats(db, pArg, 0); in shell_exec()
9798 if( pArg && pArg->scanstatsOn ){ in shell_exec()
9799 display_scanstats(db, pArg); in shell_exec()
9815 if( pArg ){ in shell_exec()
9816 pArg->pStmt = NULL; in shell_exec()
9963 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
9968 ShellState *p = (ShellState *)pArg; in dump_callback()
10618 void *pArg, in sql_trace_callback() argument
10622 FILE *f = (FILE*)pArg; in sql_trace_callback()