Lines Matching defs:ShellState
15527 typedef struct ShellState ShellState; typedef
15528 struct ShellState { struct
15529 sqlite3 *db; /* The database */
15530 u8 autoExplain; /* Automatically turn on .explain mode */
15531 u8 autoEQP; /* Run EXPLAIN QUERY PLAN prior to seach SQL stmt */
15532 u8 autoEQPtest; /* autoEQP is in test mode */
15533 u8 autoEQPtrace; /* autoEQP is in trace mode */
15534 u8 scanstatsOn; /* True to display scan stats before each finalize */
15535 u8 openMode; /* SHELL_OPEN_NORMAL, _APPENDVFS, or _ZIPFILE */
15536 u8 doXdgOpen; /* Invoke start/open/xdg-open in output_reset() */
15537 u8 nEqpLevel; /* Depth of the EQP output graph */
15538 u8 eTraceType; /* SHELL_TRACE_* value for type of trace */
15539 u8 bSafeMode; /* True to prohibit unsafe operations */
15540 u8 bSafeModePersist; /* The long-term value of bSafeMode */
15541 ColModeOpts cmOpts; /* Option values affecting columnar mode output */
15542 unsigned statsOn; /* True to display memory stats before each finalize */
15543 unsigned mEqpLines; /* Mask of veritical lines in the EQP output graph */
15544 int inputNesting; /* Track nesting level of .read and other redirects */
15545 int outCount; /* Revert to stdout when reaching zero */
15546 int cnt; /* Number of records displayed so far */
15547 int lineno; /* Line number of last line read from in */
15548 int openFlags; /* Additional flags to open. (SQLITE_OPEN_NOFOLLOW) */
15549 FILE *in; /* Read commands from this stream */
15550 FILE *out; /* Write results here */
15551 FILE *traceOut; /* Output for sqlite3_trace() */
15552 int nErr; /* Number of errors seen */
15553 int mode; /* An output mode setting */
15554 int modePrior; /* Saved mode */
15555 int cMode; /* temporary output mode for the current query */
15556 int normalMode; /* Output mode before ".explain on" */
15557 int writableSchema; /* True if PRAGMA writable_schema=ON */
15558 int showHeader; /* True to show column names in List or Column mode */
15559 int nCheck; /* Number of ".check" commands run */
15560 unsigned nProgress; /* Number of progress callbacks encountered */
15561 unsigned mxProgress; /* Maximum progress callbacks before failing */
15562 unsigned flgProgress; /* Flags for the progress callback */
15563 unsigned shellFlgs; /* Various flags */
15564 unsigned priorShFlgs; /* Saved copy of flags */
15565 sqlite3_int64 szMax; /* --maxsize argument to .open */
15566 char *zDestTable; /* Name of destination table when MODE_Insert */
15567 char *zTempFile; /* Temporary file that might need deleting */
15568 char zTestcase[30]; /* Name of current test case */
15569 char colSeparator[20]; /* Column separator character for several modes */
15570 char rowSeparator[20]; /* Row separator character for MODE_Ascii */
15571 char colSepPrior[20]; /* Saved column separator */
15572 char rowSepPrior[20]; /* Saved row separator */
15573 int *colWidth; /* Requested width of each column in columnar modes */
15574 int *actualWidth; /* Actual width of each column */
15575 int nWidth; /* Number of slots in colWidth[] and actualWidth[] */
15576 char nullValue[20]; /* The text to print when a NULL comes back from
15578 char outfile[FILENAME_MAX]; /* Filename for *out */
15579 sqlite3_stmt *pStmt; /* Current statement if any. */
15580 FILE *pLog; /* Write log output here */
15581 struct AuxDb { /* Storage space for auxiliary database connections */
15607 static ShellState shellState; argument
20158 void (*xForEach)(ShellState*,sqlite3*,const char*) in tryToCloneSchema()