Lines Matching defs:ShellState
21668 typedef struct ShellState ShellState; typedef
21669 struct ShellState { struct
21670 sqlite3 *db; /* The database */
21671 u8 autoExplain; /* Automatically turn on .explain mode */
21672 u8 autoEQP; /* Run EXPLAIN QUERY PLAN prior to each SQL stmt */
21673 u8 autoEQPtest; /* autoEQP is in test mode */
21674 u8 autoEQPtrace; /* autoEQP is in trace mode */
21675 u8 scanstatsOn; /* True to display scan stats before each finalize */
21676 u8 openMode; /* SHELL_OPEN_NORMAL, _APPENDVFS, or _ZIPFILE */
21677 u8 doXdgOpen; /* Invoke start/open/xdg-open in output_reset() */
21678 u8 nEqpLevel; /* Depth of the EQP output graph */
21679 u8 eTraceType; /* SHELL_TRACE_* value for type of trace */
21680 u8 bSafeMode; /* True to prohibit unsafe operations */
21681 u8 bSafeModePersist; /* The long-term value of bSafeMode */
21682 u8 eRestoreState; /* See comments above doAutoDetectRestore() */
21683 u8 crlfMode; /* Do NL-to-CRLF translations when enabled (maybe) */
21684 u8 eEscMode; /* Escape mode for text output */
21685 ColModeOpts cmOpts; /* Option values affecting columnar mode output */
21686 unsigned statsOn; /* True to display memory stats before each finalize */
21687 unsigned mEqpLines; /* Mask of vertical lines in the EQP output graph */
21688 int inputNesting; /* Track nesting level of .read and other redirects */
21689 int outCount; /* Revert to stdout when reaching zero */
21690 int cnt; /* Number of records displayed so far */
21691 int lineno; /* Line number of last line read from in */
21692 int openFlags; /* Additional flags to open. (SQLITE_OPEN_NOFOLLOW) */
21693 FILE *in; /* Read commands from this stream */
21694 FILE *out; /* Write results here */
21695 FILE *traceOut; /* Output for sqlite3_trace() */
21696 int nErr; /* Number of errors seen */
21697 int mode; /* An output mode setting */
21698 int modePrior; /* Saved mode */
21699 int cMode; /* temporary output mode for the current query */
21700 int normalMode; /* Output mode before ".explain on" */
21701 int writableSchema; /* True if PRAGMA writable_schema=ON */
21702 int showHeader; /* True to show column names in List or Column mode */
21703 int nCheck; /* Number of ".check" commands run */
21704 unsigned nProgress; /* Number of progress callbacks encountered */
21705 unsigned mxProgress; /* Maximum progress callbacks before failing */
21706 unsigned flgProgress; /* Flags for the progress callback */
21707 unsigned shellFlgs; /* Various flags */
21708 unsigned priorShFlgs; /* Saved copy of flags */
21709 sqlite3_int64 szMax; /* --maxsize argument to .open */
21710 char *zDestTable; /* Name of destination table when MODE_Insert */
21711 char *zTempFile; /* Temporary file that might need deleting */
21712 char zTestcase[30]; /* Name of current test case */
21713 char colSeparator[20]; /* Column separator character for several modes */
21714 char rowSeparator[20]; /* Row separator character for MODE_Ascii */
21715 char colSepPrior[20]; /* Saved column separator */
21716 char rowSepPrior[20]; /* Saved row separator */
21717 int *colWidth; /* Requested width of each column in columnar modes */
21718 int *actualWidth; /* Actual width of each column */
21719 int nWidth; /* Number of slots in colWidth[] and actualWidth[] */
21720 char nullValue[20]; /* The text to print when a NULL comes back from
21722 char outfile[FILENAME_MAX]; /* Filename for *out */
21723 sqlite3_stmt *pStmt; /* Current statement if any. */
21724 FILE *pLog; /* Write log output here */
21725 struct AuxDb { /* Storage space for auxiliary database connections */
21751 static ShellState shellState; argument
26740 void (*xForEach)(ShellState*,sqlite3*,const char*) in tryToCloneSchema()