Lines Matching defs:ShellState
18137 typedef struct ShellState ShellState; typedef
18138 struct ShellState { struct
18139 sqlite3 *db; /* The database */
18140 u8 autoExplain; /* Automatically turn on .explain mode */
18141 u8 autoEQP; /* Run EXPLAIN QUERY PLAN prior to each SQL stmt */
18142 u8 autoEQPtest; /* autoEQP is in test mode */
18143 u8 autoEQPtrace; /* autoEQP is in trace mode */
18144 u8 scanstatsOn; /* True to display scan stats before each finalize */
18145 u8 openMode; /* SHELL_OPEN_NORMAL, _APPENDVFS, or _ZIPFILE */
18146 u8 doXdgOpen; /* Invoke start/open/xdg-open in output_reset() */
18147 u8 nEqpLevel; /* Depth of the EQP output graph */
18148 u8 eTraceType; /* SHELL_TRACE_* value for type of trace */
18149 u8 bSafeMode; /* True to prohibit unsafe operations */
18150 u8 bSafeModePersist; /* The long-term value of bSafeMode */
18151 ColModeOpts cmOpts; /* Option values affecting columnar mode output */
18152 unsigned statsOn; /* True to display memory stats before each finalize */
18153 unsigned mEqpLines; /* Mask of vertical lines in the EQP output graph */
18154 int inputNesting; /* Track nesting level of .read and other redirects */
18155 int outCount; /* Revert to stdout when reaching zero */
18156 int cnt; /* Number of records displayed so far */
18157 int lineno; /* Line number of last line read from in */
18158 int openFlags; /* Additional flags to open. (SQLITE_OPEN_NOFOLLOW) */
18159 FILE *in; /* Read commands from this stream */
18160 FILE *out; /* Write results here */
18161 FILE *traceOut; /* Output for sqlite3_trace() */
18162 int nErr; /* Number of errors seen */
18163 int mode; /* An output mode setting */
18164 int modePrior; /* Saved mode */
18165 int cMode; /* temporary output mode for the current query */
18166 int normalMode; /* Output mode before ".explain on" */
18167 int writableSchema; /* True if PRAGMA writable_schema=ON */
18168 int showHeader; /* True to show column names in List or Column mode */
18169 int nCheck; /* Number of ".check" commands run */
18170 unsigned nProgress; /* Number of progress callbacks encountered */
18171 unsigned mxProgress; /* Maximum progress callbacks before failing */
18172 unsigned flgProgress; /* Flags for the progress callback */
18173 unsigned shellFlgs; /* Various flags */
18174 unsigned priorShFlgs; /* Saved copy of flags */
18175 sqlite3_int64 szMax; /* --maxsize argument to .open */
18176 char *zDestTable; /* Name of destination table when MODE_Insert */
18177 char *zTempFile; /* Temporary file that might need deleting */
18178 char zTestcase[30]; /* Name of current test case */
18179 char colSeparator[20]; /* Column separator character for several modes */
18180 char rowSeparator[20]; /* Row separator character for MODE_Ascii */
18181 char colSepPrior[20]; /* Saved column separator */
18182 char rowSepPrior[20]; /* Saved row separator */
18183 int *colWidth; /* Requested width of each column in columnar modes */
18184 int *actualWidth; /* Actual width of each column */
18185 int nWidth; /* Number of slots in colWidth[] and actualWidth[] */
18186 char nullValue[20]; /* The text to print when a NULL comes back from
18188 char outfile[FILENAME_MAX]; /* Filename for *out */
18189 sqlite3_stmt *pStmt; /* Current statement if any. */
18190 FILE *pLog; /* Write log output here */
18191 struct AuxDb { /* Storage space for auxiliary database connections */
18217 static ShellState shellState; argument
22898 void (*xForEach)(ShellState*,sqlite3*,const char*) in tryToCloneSchema()