Lines Matching defs:ShellState
16727 typedef struct ShellState ShellState; typedef
16728 struct ShellState { struct
16729 sqlite3 *db; /* The database */
16730 u8 autoExplain; /* Automatically turn on .explain mode */
16731 u8 autoEQP; /* Run EXPLAIN QUERY PLAN prior to seach SQL stmt */
16732 u8 autoEQPtest; /* autoEQP is in test mode */
16733 u8 autoEQPtrace; /* autoEQP is in trace mode */
16734 u8 scanstatsOn; /* True to display scan stats before each finalize */
16735 u8 openMode; /* SHELL_OPEN_NORMAL, _APPENDVFS, or _ZIPFILE */
16736 u8 doXdgOpen; /* Invoke start/open/xdg-open in output_reset() */
16737 u8 nEqpLevel; /* Depth of the EQP output graph */
16738 u8 eTraceType; /* SHELL_TRACE_* value for type of trace */
16739 u8 bSafeMode; /* True to prohibit unsafe operations */
16740 u8 bSafeModePersist; /* The long-term value of bSafeMode */
16741 ColModeOpts cmOpts; /* Option values affecting columnar mode output */
16742 unsigned statsOn; /* True to display memory stats before each finalize */
16743 unsigned mEqpLines; /* Mask of veritical lines in the EQP output graph */
16744 int inputNesting; /* Track nesting level of .read and other redirects */
16745 int outCount; /* Revert to stdout when reaching zero */
16746 int cnt; /* Number of records displayed so far */
16747 int lineno; /* Line number of last line read from in */
16748 int openFlags; /* Additional flags to open. (SQLITE_OPEN_NOFOLLOW) */
16749 FILE *in; /* Read commands from this stream */
16750 FILE *out; /* Write results here */
16751 FILE *traceOut; /* Output for sqlite3_trace() */
16752 int nErr; /* Number of errors seen */
16753 int mode; /* An output mode setting */
16754 int modePrior; /* Saved mode */
16755 int cMode; /* temporary output mode for the current query */
16756 int normalMode; /* Output mode before ".explain on" */
16757 int writableSchema; /* True if PRAGMA writable_schema=ON */
16758 int showHeader; /* True to show column names in List or Column mode */
16759 int nCheck; /* Number of ".check" commands run */
16760 unsigned nProgress; /* Number of progress callbacks encountered */
16761 unsigned mxProgress; /* Maximum progress callbacks before failing */
16762 unsigned flgProgress; /* Flags for the progress callback */
16763 unsigned shellFlgs; /* Various flags */
16764 unsigned priorShFlgs; /* Saved copy of flags */
16765 sqlite3_int64 szMax; /* --maxsize argument to .open */
16766 char *zDestTable; /* Name of destination table when MODE_Insert */
16767 char *zTempFile; /* Temporary file that might need deleting */
16768 char zTestcase[30]; /* Name of current test case */
16769 char colSeparator[20]; /* Column separator character for several modes */
16770 char rowSeparator[20]; /* Row separator character for MODE_Ascii */
16771 char colSepPrior[20]; /* Saved column separator */
16772 char rowSepPrior[20]; /* Saved row separator */
16773 int *colWidth; /* Requested width of each column in columnar modes */
16774 int *actualWidth; /* Actual width of each column */
16775 int nWidth; /* Number of slots in colWidth[] and actualWidth[] */
16776 char nullValue[20]; /* The text to print when a NULL comes back from
16778 char outfile[FILENAME_MAX]; /* Filename for *out */
16779 sqlite3_stmt *pStmt; /* Current statement if any. */
16780 FILE *pLog; /* Write log output here */
16781 struct AuxDb { /* Storage space for auxiliary database connections */
16807 static ShellState shellState; argument
21410 void (*xForEach)(ShellState*,sqlite3*,const char*) in tryToCloneSchema()