Lines Matching refs:pArg

3712 static int apndFileControl(sqlite3_file*, int op, void *pArg);
3918 static int apndFileControl(sqlite3_file *pFile, int op, void *pArg){ in apndFileControl() argument
3922 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in apndFileControl()
3924 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", p->iPgOne, *(char**)pArg); in apndFileControl()
9905 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
9906 ShellState *p = (ShellState*)pArg; in shellLog()
10568 void *pArg, in shell_callback() argument
10575 ShellState *p = (ShellState*)pArg; in shell_callback()
10935 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
10937 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
10944 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
10945 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
11170 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
11176 if( pArg==0 || pArg->out==0 ) return 0; in display_stats()
11177 out = pArg->out; in display_stats()
11179 if( pArg->pStmt && (pArg->statsOn & 2) ){ in display_stats()
11181 sqlite3_stmt *pStmt = pArg->pStmt; in display_stats()
11203 displayStatLine(pArg, "Memory Used:", in display_stats()
11205 displayStatLine(pArg, "Number of Outstanding Allocations:", in display_stats()
11207 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
11208 displayStatLine(pArg, "Number of Pcache Pages Used:", in display_stats()
11211 displayStatLine(pArg, "Number of Pcache Overflow Bytes:", in display_stats()
11213 displayStatLine(pArg, "Largest Allocation:", in display_stats()
11215 displayStatLine(pArg, "Largest Pcache Allocation:", in display_stats()
11218 displayStatLine(pArg, "Deepest Parser Stack:", in display_stats()
11223 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
11227 raw_printf(pArg->out, in display_stats()
11232 raw_printf(pArg->out, "Successful lookaside attempts: %d\n", in display_stats()
11236 raw_printf(pArg->out, "Lookaside failures due to size: %d\n", in display_stats()
11240 raw_printf(pArg->out, "Lookaside failures due to OOM: %d\n", in display_stats()
11245 raw_printf(pArg->out, "Pager Heap Usage: %d bytes\n", in display_stats()
11249 raw_printf(pArg->out, "Page cache hits: %d\n", iCur); in display_stats()
11252 raw_printf(pArg->out, "Page cache misses: %d\n", iCur); in display_stats()
11255 raw_printf(pArg->out, "Page cache writes: %d\n", iCur); in display_stats()
11258 raw_printf(pArg->out, "Page cache spills: %d\n", iCur); in display_stats()
11261 raw_printf(pArg->out, "Schema Heap Usage: %d bytes\n", in display_stats()
11265 raw_printf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n", in display_stats()
11269 if( pArg->pStmt ){ in display_stats()
11270 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
11272 raw_printf(pArg->out, "Fullscan Steps: %d\n", iCur); in display_stats()
11273 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
11274 raw_printf(pArg->out, "Sort Operations: %d\n", iCur); in display_stats()
11275 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
11276 raw_printf(pArg->out, "Autoindex Inserts: %d\n", iCur); in display_stats()
11277 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
11278 raw_printf(pArg->out, "Virtual Machine Steps: %d\n", iCur); in display_stats()
11279 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_REPREPARE,bReset); in display_stats()
11280 raw_printf(pArg->out, "Reprepare operations: %d\n", iCur); in display_stats()
11281 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_RUN, bReset); in display_stats()
11282 raw_printf(pArg->out, "Number of times run: %d\n", iCur); in display_stats()
11283 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_MEMUSED, bReset); in display_stats()
11284 raw_printf(pArg->out, "Memory used by prepared stmt: %d\n", iCur); in display_stats()
11288 displayLinuxIoStats(pArg->out); in display_stats()
11301 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
11305 UNUSED_PARAMETER(pArg); in display_scanstats()
11308 raw_printf(pArg->out, "-------- scanstats --------\n"); in display_scanstats()
11313 sqlite3_stmt *p = pArg->pStmt; in display_scanstats()
11326 if( k>0 ) raw_printf(pArg->out, "-------- subquery %d -------\n", k); in display_scanstats()
11332 utf8_printf(pArg->out, "Loop %2d: %s\n", n, zExplain); in display_scanstats()
11334 raw_printf(pArg->out, in display_scanstats()
11340 raw_printf(pArg->out, "---------------------------\n"); in display_scanstats()
11526 static void bind_prepared_stmt(ShellState *pArg, sqlite3_stmt *pStmt){ in bind_prepared_stmt() argument
11534 if( sqlite3_table_column_metadata(pArg->db, "TEMP", "sqlite_parameters", in bind_prepared_stmt()
11538 rc = sqlite3_prepare_v2(pArg->db, in bind_prepared_stmt()
11564 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
11594 if( x==SQLITE_BLOB && pArg && pArg->cMode==MODE_Insert ){ in exec_prepared_stmt()
11608 if( shell_callback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
11761 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
11769 sqlite3 *db = pArg->db; in shell_exec()
11776 if( pArg->expert.pExpert ){ in shell_exec()
11777 rc = expertHandleSQL(pArg, zSql, pzErrMsg); in shell_exec()
11778 return expertFinish(pArg, (rc!=SQLITE_OK), pzErrMsg); in shell_exec()
11801 if( pArg ){ in shell_exec()
11802 pArg->pStmt = pStmt; in shell_exec()
11803 pArg->cnt = 0; in shell_exec()
11807 if( pArg && ShellHasFlag(pArg, SHFLG_Echo) ){ in shell_exec()
11808 utf8_printf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql); in shell_exec()
11812 if( pArg && pArg->autoEQP && sqlite3_stmt_isexplain(pStmt)==0 ){ in shell_exec()
11818 if( pArg->autoEQP>=AUTOEQP_trigger ){ in shell_exec()
11829 if( zEQPLine[0]=='-' ) eqp_render(pArg); in shell_exec()
11830 eqp_append(pArg, iEqpId, iParentId, zEQPLine); in shell_exec()
11832 eqp_render(pArg); in shell_exec()
11836 if( pArg->autoEQP>=AUTOEQP_full ){ in shell_exec()
11841 pArg->cMode = MODE_Explain; in shell_exec()
11842 explain_data_prepare(pArg, pExplain); in shell_exec()
11843 exec_prepared_stmt(pArg, pExplain); in shell_exec()
11844 explain_data_delete(pArg); in shell_exec()
11849 if( pArg->autoEQP>=AUTOEQP_trigger && triggerEQP==0 ){ in shell_exec()
11854 if( pArg ) pArg->pStmt = pStmt; in shell_exec()
11859 if( pArg ){ in shell_exec()
11860 pArg->cMode = pArg->mode; in shell_exec()
11861 if( pArg->autoExplain ){ in shell_exec()
11863 pArg->cMode = MODE_Explain; in shell_exec()
11866 pArg->cMode = MODE_EQP; in shell_exec()
11872 if( pArg->cMode==MODE_Explain ){ in shell_exec()
11873 explain_data_prepare(pArg, pStmt); in shell_exec()
11877 bind_prepared_stmt(pArg, pStmt); in shell_exec()
11878 exec_prepared_stmt(pArg, pStmt); in shell_exec()
11879 explain_data_delete(pArg); in shell_exec()
11880 eqp_render(pArg); in shell_exec()
11883 if( pArg && pArg->statsOn ){ in shell_exec()
11884 display_stats(db, pArg, 0); in shell_exec()
11888 if( pArg && pArg->scanstatsOn ){ in shell_exec()
11889 display_scanstats(db, pArg); in shell_exec()
11905 if( pArg ){ in shell_exec()
11906 pArg->pStmt = NULL; in shell_exec()
12050 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
12055 ShellState *p = (ShellState *)pArg; in dump_callback()
13198 void *pArg, /* The ShellState pointer */ in sql_trace_callback() argument
13202 ShellState *p = (ShellState*)pArg; in sql_trace_callback()