Lines Matching refs:pArg

3834 static int apndFileControl(sqlite3_file*, int op, void *pArg);
4039 static int apndFileControl(sqlite3_file *pFile, int op, void *pArg){ in apndFileControl() argument
4043 if( op==SQLITE_FCNTL_SIZE_HINT ) *(sqlite3_int64*)pArg += paf->iPgOne; in apndFileControl()
4044 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in apndFileControl()
4046 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", paf->iPgOne,*(char**)pArg); in apndFileControl()
5050 Decimal *pArg; in decimalSumStep() local
5066 pArg = decimal_new(context, argv[0], 0, 0); in decimalSumStep()
5067 decimal_add(p, pArg); in decimalSumStep()
5068 decimal_free(pArg); in decimalSumStep()
5076 Decimal *pArg; in decimalSumInverse() local
5081 pArg = decimal_new(context, argv[0], 0, 0); in decimalSumInverse()
5082 if( pArg ) pArg->sign = !pArg->sign; in decimalSumInverse()
5083 decimal_add(p, pArg); in decimalSumInverse()
5084 decimal_free(pArg); in decimalSumInverse()
12351 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
12352 ShellState *p = (ShellState*)pArg; in shellLog()
13143 void *pArg, in shell_callback() argument
13150 ShellState *p = (ShellState*)pArg; in shell_callback()
13509 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
13511 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
13518 static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){ in captureOutputCallback() argument
13519 ShellText *p = (ShellText*)pArg; in captureOutputCallback()
13743 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
13749 if( pArg==0 || pArg->out==0 ) return 0; in display_stats()
13750 out = pArg->out; in display_stats()
13752 if( pArg->pStmt && pArg->statsOn==2 ){ in display_stats()
13754 sqlite3_stmt *pStmt = pArg->pStmt; in display_stats()
13776 if( pArg->statsOn==3 ){ in display_stats()
13777 if( pArg->pStmt ){ in display_stats()
13778 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
13779 raw_printf(pArg->out, "VM-steps: %d\n", iCur); in display_stats()
13784 displayStatLine(pArg, "Memory Used:", in display_stats()
13786 displayStatLine(pArg, "Number of Outstanding Allocations:", in display_stats()
13788 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
13789 displayStatLine(pArg, "Number of Pcache Pages Used:", in display_stats()
13792 displayStatLine(pArg, "Number of Pcache Overflow Bytes:", in display_stats()
13794 displayStatLine(pArg, "Largest Allocation:", in display_stats()
13796 displayStatLine(pArg, "Largest Pcache Allocation:", in display_stats()
13799 displayStatLine(pArg, "Deepest Parser Stack:", in display_stats()
13804 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
13808 raw_printf(pArg->out, in display_stats()
13813 raw_printf(pArg->out, "Successful lookaside attempts: %d\n", in display_stats()
13817 raw_printf(pArg->out, "Lookaside failures due to size: %d\n", in display_stats()
13821 raw_printf(pArg->out, "Lookaside failures due to OOM: %d\n", in display_stats()
13826 raw_printf(pArg->out, "Pager Heap Usage: %d bytes\n", in display_stats()
13830 raw_printf(pArg->out, "Page cache hits: %d\n", iCur); in display_stats()
13833 raw_printf(pArg->out, "Page cache misses: %d\n", iCur); in display_stats()
13836 raw_printf(pArg->out, "Page cache writes: %d\n", iCur); in display_stats()
13839 raw_printf(pArg->out, "Page cache spills: %d\n", iCur); in display_stats()
13842 raw_printf(pArg->out, "Schema Heap Usage: %d bytes\n", in display_stats()
13846 raw_printf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n", in display_stats()
13850 if( pArg->pStmt ){ in display_stats()
13851 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
13853 raw_printf(pArg->out, "Fullscan Steps: %d\n", iCur); in display_stats()
13854 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
13855 raw_printf(pArg->out, "Sort Operations: %d\n", iCur); in display_stats()
13856 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
13857 raw_printf(pArg->out, "Autoindex Inserts: %d\n", iCur); in display_stats()
13858 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
13859 raw_printf(pArg->out, "Virtual Machine Steps: %d\n", iCur); in display_stats()
13860 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_REPREPARE,bReset); in display_stats()
13861 raw_printf(pArg->out, "Reprepare operations: %d\n", iCur); in display_stats()
13862 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_RUN, bReset); in display_stats()
13863 raw_printf(pArg->out, "Number of times run: %d\n", iCur); in display_stats()
13864 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_MEMUSED, bReset); in display_stats()
13865 raw_printf(pArg->out, "Memory used by prepared stmt: %d\n", iCur); in display_stats()
13869 displayLinuxIoStats(pArg->out); in display_stats()
13882 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
13886 UNUSED_PARAMETER(pArg); in display_scanstats()
13889 raw_printf(pArg->out, "-------- scanstats --------\n"); in display_scanstats()
13894 sqlite3_stmt *p = pArg->pStmt; in display_scanstats()
13907 if( k>0 ) raw_printf(pArg->out, "-------- subquery %d -------\n", k); in display_scanstats()
13913 utf8_printf(pArg->out, "Loop %2d: %s\n", n, zExplain); in display_scanstats()
13915 raw_printf(pArg->out, in display_scanstats()
13921 raw_printf(pArg->out, "---------------------------\n"); in display_scanstats()
14094 static void bind_prepared_stmt(ShellState *pArg, sqlite3_stmt *pStmt){ in bind_prepared_stmt() argument
14102 if( sqlite3_table_column_metadata(pArg->db, "TEMP", "sqlite_parameters", in bind_prepared_stmt()
14106 rc = sqlite3_prepare_v2(pArg->db, in bind_prepared_stmt()
14360 ShellState *pArg, /* Pointer to ShellState */ in exec_prepared_stmt() argument
14365 if( pArg->cMode==MODE_Column in exec_prepared_stmt()
14366 || pArg->cMode==MODE_Table in exec_prepared_stmt()
14367 || pArg->cMode==MODE_Box in exec_prepared_stmt()
14368 || pArg->cMode==MODE_Markdown in exec_prepared_stmt()
14370 exec_prepared_stmt_columnar(pArg, pStmt); in exec_prepared_stmt()
14399 if( x==SQLITE_BLOB && pArg && pArg->cMode==MODE_Insert ){ in exec_prepared_stmt()
14413 if( shell_callback(pArg, nCol, azVals, azCols, aiTypes) ){ in exec_prepared_stmt()
14421 if( pArg->cMode==MODE_Json ){ in exec_prepared_stmt()
14422 fputs("]\n", pArg->out); in exec_prepared_stmt()
14569 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
14577 sqlite3 *db = pArg->db; in shell_exec()
14584 if( pArg->expert.pExpert ){ in shell_exec()
14585 rc = expertHandleSQL(pArg, zSql, pzErrMsg); in shell_exec()
14586 return expertFinish(pArg, (rc!=SQLITE_OK), pzErrMsg); in shell_exec()
14609 if( pArg ){ in shell_exec()
14610 pArg->pStmt = pStmt; in shell_exec()
14611 pArg->cnt = 0; in shell_exec()
14615 if( pArg && ShellHasFlag(pArg, SHFLG_Echo) ){ in shell_exec()
14616 utf8_printf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql); in shell_exec()
14620 if( pArg && pArg->autoEQP && sqlite3_stmt_isexplain(pStmt)==0 ){ in shell_exec()
14626 if( pArg->autoEQP>=AUTOEQP_trigger ){ in shell_exec()
14637 if( zEQPLine[0]=='-' ) eqp_render(pArg); in shell_exec()
14638 eqp_append(pArg, iEqpId, iParentId, zEQPLine); in shell_exec()
14640 eqp_render(pArg); in shell_exec()
14644 if( pArg->autoEQP>=AUTOEQP_full ){ in shell_exec()
14649 pArg->cMode = MODE_Explain; in shell_exec()
14650 explain_data_prepare(pArg, pExplain); in shell_exec()
14651 exec_prepared_stmt(pArg, pExplain); in shell_exec()
14652 explain_data_delete(pArg); in shell_exec()
14657 if( pArg->autoEQP>=AUTOEQP_trigger && triggerEQP==0 ){ in shell_exec()
14662 if( pArg ) pArg->pStmt = pStmt; in shell_exec()
14667 if( pArg ){ in shell_exec()
14668 pArg->cMode = pArg->mode; in shell_exec()
14669 if( pArg->autoExplain ){ in shell_exec()
14671 pArg->cMode = MODE_Explain; in shell_exec()
14674 pArg->cMode = MODE_EQP; in shell_exec()
14680 if( pArg->cMode==MODE_Explain ){ in shell_exec()
14681 explain_data_prepare(pArg, pStmt); in shell_exec()
14685 bind_prepared_stmt(pArg, pStmt); in shell_exec()
14686 exec_prepared_stmt(pArg, pStmt); in shell_exec()
14687 explain_data_delete(pArg); in shell_exec()
14688 eqp_render(pArg); in shell_exec()
14691 if( pArg && pArg->statsOn ){ in shell_exec()
14692 display_stats(db, pArg, 0); in shell_exec()
14696 if( pArg && pArg->scanstatsOn ){ in shell_exec()
14697 display_scanstats(db, pArg); in shell_exec()
14713 if( pArg ){ in shell_exec()
14714 pArg->pStmt = NULL; in shell_exec()
14858 static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ in dump_callback() argument
14863 ShellState *p = (ShellState *)pArg; in dump_callback()
16053 void *pArg, /* The ShellState pointer */ in sql_trace_callback() argument
16057 ShellState *p = (ShellState*)pArg; in sql_trace_callback()