Lines Matching defs:ShellState
12188 typedef struct ShellState ShellState; typedef
12189 struct ShellState { struct
12190 sqlite3 *db; /* The database */
12191 u8 autoExplain; /* Automatically turn on .explain mode */
12192 u8 autoEQP; /* Run EXPLAIN QUERY PLAN prior to seach SQL stmt */
12193 u8 autoEQPtest; /* autoEQP is in test mode */
12194 u8 autoEQPtrace; /* autoEQP is in trace mode */
12195 u8 scanstatsOn; /* True to display scan stats before each finalize */
12196 u8 openMode; /* SHELL_OPEN_NORMAL, _APPENDVFS, or _ZIPFILE */
12197 u8 doXdgOpen; /* Invoke start/open/xdg-open in output_reset() */
12198 u8 nEqpLevel; /* Depth of the EQP output graph */
12199 u8 eTraceType; /* SHELL_TRACE_* value for type of trace */
12200 u8 bSafeMode; /* True to prohibit unsafe operations */
12201 u8 bSafeModePersist; /* The long-term value of bSafeMode */
12202 ColModeOpts cmOpts; /* Option values affecting columnar mode output */
12203 unsigned statsOn; /* True to display memory stats before each finalize */
12204 unsigned mEqpLines; /* Mask of veritical lines in the EQP output graph */
12205 int inputNesting; /* Track nesting level of .read and other redirects */
12206 int outCount; /* Revert to stdout when reaching zero */
12207 int cnt; /* Number of records displayed so far */
12208 int lineno; /* Line number of last line read from in */
12209 int openFlags; /* Additional flags to open. (SQLITE_OPEN_NOFOLLOW) */
12210 FILE *in; /* Read commands from this stream */
12211 FILE *out; /* Write results here */
12212 FILE *traceOut; /* Output for sqlite3_trace() */
12213 int nErr; /* Number of errors seen */
12214 int mode; /* An output mode setting */
12215 int modePrior; /* Saved mode */
12216 int cMode; /* temporary output mode for the current query */
12217 int normalMode; /* Output mode before ".explain on" */
12218 int writableSchema; /* True if PRAGMA writable_schema=ON */
12219 int showHeader; /* True to show column names in List or Column mode */
12220 int nCheck; /* Number of ".check" commands run */
12221 unsigned nProgress; /* Number of progress callbacks encountered */
12222 unsigned mxProgress; /* Maximum progress callbacks before failing */
12223 unsigned flgProgress; /* Flags for the progress callback */
12224 unsigned shellFlgs; /* Various flags */
12225 unsigned priorShFlgs; /* Saved copy of flags */
12226 sqlite3_int64 szMax; /* --maxsize argument to .open */
12227 char *zDestTable; /* Name of destination table when MODE_Insert */
12228 char *zTempFile; /* Temporary file that might need deleting */
12229 char zTestcase[30]; /* Name of current test case */
12230 char colSeparator[20]; /* Column separator character for several modes */
12231 char rowSeparator[20]; /* Row separator character for MODE_Ascii */
12232 char colSepPrior[20]; /* Saved column separator */
12233 char rowSepPrior[20]; /* Saved row separator */
12234 int *colWidth; /* Requested width of each column in columnar modes */
12235 int *actualWidth; /* Actual width of each column */
12236 int nWidth; /* Number of slots in colWidth[] and actualWidth[] */
12237 char nullValue[20]; /* The text to print when a NULL comes back from
12239 char outfile[FILENAME_MAX]; /* Filename for *out */
12240 sqlite3_stmt *pStmt; /* Current statement if any. */
12241 FILE *pLog; /* Write log output here */
12242 struct AuxDb { /* Storage space for auxiliary database connections */
12267 static ShellState shellState; argument
16794 void (*xForEach)(ShellState*,sqlite3*,const char*) in tryToCloneSchema()