Sqlite3 3.50.2
Light weight SQL DB
Loading...
Searching...
No Matches
shell.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include "sqlite3.h"
#include <ctype.h>
#include <stdarg.h>
#include <signal.h>
#include <pwd.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <memory.h>
#include <limits.h>
#include <fcntl.h>
#include <utime.h>
#include <time.h>
#include <errno.h>
Include dependency graph for shell.c:

Go to the source code of this file.

Data Structures

struct  DynaPrompt
struct  ShellText
struct  SHA3Context
struct  SHA1Context
struct  Decimal
struct  Percentile
struct  PercentileFunc
struct  SequenceSpec
struct  series_cursor
struct  ReStateSet
struct  ReInput
struct  ReCompiled
struct  FsdirLevel
struct  fsdir_cursor
struct  fsdir_tab
struct  completion_vtab
struct  completion_cursor
struct  ApndFile
struct  IdxConstraint
struct  IdxScan
struct  IdxColumn
struct  IdxTable
struct  IdxWrite
struct  IdxStatement
struct  IdxHashEntry
struct  IdxHash
struct  sqlite3expert
struct  ExpertVtab
struct  ExpertCsr
struct  IdxSampleCtx
struct  IdxRemCtx
struct  IdxRemCtx::IdxRemSlot
struct  sqlite3_intck
struct  Stmtrand
struct  vfstrace_info
struct  vfstrace_file
struct  ExpertInfo
struct  EQPGraphRow
struct  EQPGraph
struct  ColModeOpts
struct  ShellState
struct  ShellState::AuxDb
struct  ImportCtx

Macros

#define SHELL_STRINGIFY_(f)
#define SHELL_STRINGIFY(f)
#define SQLITE_OS_WINRT   0
#define _LARGE_FILE   1
#define _FILE_OFFSET_BITS   64
#define _LARGEFILE_SOURCE   1
#define GETPID   getpid
#define shell_read_history(X)
#define shell_write_history(X)
#define shell_stifle_history(X)
#define SHELL_USE_LOCAL_GETLINE   1
#define deliberate_fall_through
#define IsSpace(X)
#define IsDigit(X)
#define ToLower(X)
#define IsAlnum(X)
#define IsAlpha(X)
#define _SQLITE3_STDIO_H_   1
#define sqlite3_fopen   fopen
#define sqlite3_popen   popen
#define sqlite3_fgets   fgets
#define sqlite3_fputs   fputs
#define sqlite3_fprintf   fprintf
#define sqlite3_fsetmode(F, X)
#define SQLITE_INTERNAL_LINKAGE   static
#define eputz(z)
#define sputz(fp, z)
#define BEGIN_TIMER   beginTimer()
#define END_TIMER(X)
#define HAS_TIMER   1
#define UNUSED_PARAMETER(x)
#define ArraySize(X)
#define PROMPT_LEN_MAX   128
#define CONTINUATION_PROMPT   dynamicContinuePrompt()
#define CONTINUE_PROMPT_RESET    do {setLexemeOpen(&dynPrompt,0,0); trackParenLevel(&dynPrompt,0);} while(0)
#define CONTINUE_PROMPT_AWAITS(p, s)
#define CONTINUE_PROMPT_AWAITC(p, c)
#define CONTINUE_PAREN_INCR(p, n)
#define CONTINUE_PROMPT_PSTATE   (&dynPrompt)
#define SCAN_TRACKER_REFTYPE   t_DynaPromptRef
#define STAT_CHR_SRC(mode)
#define SQLITE_EXTENSION_INIT1
#define SQLITE_EXTENSION_INIT2(X)
#define SHA3_BYTEORDER   0
#define a00   (p->u.s[0])
#define a01   (p->u.s[1])
#define a02   (p->u.s[2])
#define a03   (p->u.s[3])
#define a04   (p->u.s[4])
#define a10   (p->u.s[5])
#define a11   (p->u.s[6])
#define a12   (p->u.s[7])
#define a13   (p->u.s[8])
#define a14   (p->u.s[9])
#define a20   (p->u.s[10])
#define a21   (p->u.s[11])
#define a22   (p->u.s[12])
#define a23   (p->u.s[13])
#define a24   (p->u.s[14])
#define a30   (p->u.s[15])
#define a31   (p->u.s[16])
#define a32   (p->u.s[17])
#define a33   (p->u.s[18])
#define a34   (p->u.s[19])
#define a40   (p->u.s[20])
#define a41   (p->u.s[21])
#define a42   (p->u.s[22])
#define a43   (p->u.s[23])
#define a44   (p->u.s[24])
#define ROL64(a, x)
#define SHA_ROT(x, l, r)
#define rol(x, k)
#define ror(x, k)
#define blk0le(i)
#define blk0be(i)
#define blk(i)
#define Rl0(v, w, x, y, z, i)
#define Rb0(v, w, x, y, z, i)
#define R1(v, w, x, y, z, i)
#define R2(v, w, x, y, z, i)
#define R3(v, w, x, y, z, i)
#define R4(v, w, x, y, z, i)
#define a   qq[0]
#define b   qq[1]
#define c   qq[2]
#define d   qq[3]
#define e   qq[4]
#define SWAP_DOUBLE(X, Y)
#define sqlite3_base_init   sqlite3_base64_init
#define PC   0x80 /* pad character */
#define WS   0x81 /* whitespace */
#define ND   0x82 /* Not above or digit-value */
#define PAD_CHAR   '='
#define U8_TYPEDEF
#define BX_DV_PROTO(c)
#define IS_BX_DIGIT(bdp)
#define IS_BX_WS(bdp)
#define IS_BX_PAD(bdp)
#define BX_NUMERAL(dv)
#define B64_DARK_MAX   72
#define BASE64_INIT(db)
#define BASE64_EXPOSE(db, pzErr)
#define sqlite3_base_init   sqlite3_base85_init
#define OMIT_BASE85_CHECKER
#define B85_CLASS(c)
#define B85_DNOS(c)
#define IS_B85(c)
#define B85_DARK_MAX   80
#define base85Numeral(dn)
#define BASE85_INIT(db)
#define BASE85_EXPOSE(db, pzErr)
#define SERIES_COLUMN_ROWID   (-1)
#define SERIES_COLUMN_VALUE   0
#define SERIES_COLUMN_START   1
#define SERIES_COLUMN_STOP   2
#define SERIES_COLUMN_STEP   3
#define LARGEST_INT64   (0xffffffff|(((sqlite3_int64)0x7fffffff)<<32))
#define LARGEST_UINT64   (0xffffffff|(((sqlite3_uint64)0xffffffff)<<32))
#define SMALLEST_INT64   (((sqlite3_int64)-1) - LARGEST_INT64)
#define SQLITE_SERIES_CONSTRAINT_VERIFY   0
#define re_match   sqlite3re_match
#define re_compile   sqlite3re_compile
#define re_free   sqlite3re_free
#define RE_EOF   0 /* End of input */
#define RE_START   0xfffffff /* Start of input - larger than an UTF-8 */
#define RE_OP_MATCH   1 /* Match the one character in the argument */
#define RE_OP_ANY   2 /* Match any one character. (Implements ".") */
#define RE_OP_ANYSTAR   3 /* Special optimized version of .* */
#define RE_OP_FORK   4 /* Continue to both next and opcode at iArg */
#define RE_OP_GOTO   5 /* Jump to opcode at iArg */
#define RE_OP_ACCEPT   6 /* Halt and indicate a successful match */
#define RE_OP_CC_INC   7 /* Beginning of a [...] character class */
#define RE_OP_CC_EXC   8 /* Beginning of a [^...] character class */
#define RE_OP_CC_VALUE   9 /* Single value in a character class */
#define RE_OP_CC_RANGE   10 /* Range of values in a character class */
#define RE_OP_WORD   11 /* Perl word character [A-Za-z0-9_] */
#define RE_OP_NOTWORD   12 /* Not a perl word character */
#define RE_OP_DIGIT   13 /* digit: [0-9] */
#define RE_OP_NOTDIGIT   14 /* Not a digit */
#define RE_OP_SPACE   15 /* space: [ \t\n\r\v\f] */
#define RE_OP_NOTSPACE   16 /* Not a digit */
#define RE_OP_BOUNDARY   17 /* Boundary between word and non-word */
#define RE_OP_ATSTART   18 /* Currently at the start of the string */
#define STRUCT_STAT   struct stat
#define FSDIR_SCHEMA   "(name,mode,mtime,data,path HIDDEN,dir HIDDEN)"
#define FSDIR_COLUMN_NAME   0 /* Name of the file */
#define FSDIR_COLUMN_MODE   1 /* Access mode */
#define FSDIR_COLUMN_MTIME   2 /* Last modification time */
#define FSDIR_COLUMN_DATA   3 /* File content */
#define FSDIR_COLUMN_PATH   4 /* Path to top of search */
#define FSDIR_COLUMN_DIR   5 /* Path is relative to this directory */
#define COMPLETION_FIRST_PHASE   1
#define COMPLETION_KEYWORDS   1
#define COMPLETION_PRAGMAS   2
#define COMPLETION_FUNCTIONS   3
#define COMPLETION_COLLATIONS   4
#define COMPLETION_INDEXES   5
#define COMPLETION_TRIGGERS   6
#define COMPLETION_DATABASES   7
#define COMPLETION_TABLES   8 /* Also VIEWs and TRIGGERs */
#define COMPLETION_COLUMNS   9
#define COMPLETION_MODULES   10
#define COMPLETION_EOF   11
#define COMPLETION_COLUMN_CANDIDATE   0 /* Suggested completion of the input */
#define COMPLETION_COLUMN_PREFIX   1 /* Prefix of the word to be completed */
#define COMPLETION_COLUMN_WHOLELINE   2 /* Entire line seen so far */
#define COMPLETION_COLUMN_PHASE   3 /* ePhase - used for debugging only */
#define APND_MARK_PREFIX   "Start-Of-SQLite3-"
#define APND_MARK_PREFIX_SZ   17
#define APND_MARK_FOS_SZ   8
#define APND_MARK_SIZE   (APND_MARK_PREFIX_SZ+APND_MARK_FOS_SZ)
#define APND_MAX_SIZE   (0x40000000)
#define APND_ROUNDUP   4096
#define APND_ALIGN_MASK   ((sqlite3_int64)(APND_ROUNDUP-1))
#define APND_START_ROUNDUP(fsz)
#define ORIGVFS(p)
#define ORIGFILE(p)
#define SQLITEEXPERT_H   1
#define EXPERT_CONFIG_SAMPLE   1 /* int */
#define EXPERT_REPORT_SQL   1
#define EXPERT_REPORT_INDEXES   2
#define EXPERT_REPORT_PLAN   3
#define EXPERT_REPORT_CANDIDATES   4
#define ALWAYS(X)
#define NEVER(X)
#define STRLEN   (int)strlen
#define UNIQUE_TABLE_NAME   "t592690916721053953805701627921227776"
#define IDX_HASH_SIZE   1023
#define _SQLITE_INTCK_H
#define STMTRAND_KEY   (-4418371)
#define VTR_CLOSE   0x00000001
#define VTR_READ   0x00000002
#define VTR_WRITE   0x00000004
#define VTR_TRUNC   0x00000008
#define VTR_SYNC   0x00000010
#define VTR_FSIZE   0x00000020
#define VTR_LOCK   0x00000040
#define VTR_UNLOCK   0x00000080
#define VTR_CRL   0x00000100
#define VTR_FCTRL   0x00000200
#define VTR_SECSZ   0x00000400
#define VTR_DEVCHAR   0x00000800
#define VTR_SHMLOCK   0x00001000
#define VTR_SHMMAP   0x00002000
#define VTR_SHMBAR   0x00004000
#define VTR_SHMUNMAP   0x00008000
#define VTR_OPEN   0x00010000
#define VTR_DELETE   0x00020000
#define VTR_ACCESS   0x00040000
#define VTR_FULLPATH   0x00080000
#define VTR_DLOPEN   0x00100000
#define VTR_DLERR   0x00200000
#define VTR_DLSYM   0x00400000
#define VTR_DLCLOSE   0x00800000
#define VTR_RAND   0x01000000
#define VTR_SLEEP   0x02000000
#define VTR_CURTIME   0x04000000
#define VTR_LASTERR   0x08000000
#define VTR_FETCH   0x10000000 /* Also coverse xUnfetch */
#define SQLITE_SHELL_HAVE_RECOVER   0
#define ColModeOpts_default   { 60, 0, 0 }
#define ColModeOpts_default_qbox   { 60, 1, 0 }
#define AUTOEQP_off   0 /* Automatic EXPLAIN QUERY PLAN is off */
#define AUTOEQP_on   1 /* Automatic EQP is on */
#define AUTOEQP_trigger   2 /* On and also show plans for triggers */
#define AUTOEQP_full   3 /* Show full EXPLAIN */
#define SHELL_OPEN_UNSPEC   0 /* No open-mode specified */
#define SHELL_OPEN_NORMAL   1 /* Normal database file */
#define SHELL_OPEN_APPENDVFS   2 /* Use appendvfs */
#define SHELL_OPEN_ZIPFILE   3 /* Use the zipfile virtual table */
#define SHELL_OPEN_READONLY   4 /* Open a normal database read-only */
#define SHELL_OPEN_DESERIALIZE   5 /* Open using sqlite3_deserialize() */
#define SHELL_OPEN_HEXDB   6 /* Use "dbtotxt" output as data source */
#define SHELL_TRACE_PLAIN   0 /* Show input SQL text */
#define SHELL_TRACE_EXPANDED   1 /* Show expanded SQL text */
#define SHELL_TRACE_NORMALIZED   2 /* Show normalized SQL text */
#define SHELL_PROGRESS_QUIET   0x01 /* Omit announcing every progress callback */
#define SHELL_PROGRESS_RESET
#define SHELL_PROGRESS_ONCE   0x04 /* Cancel the --limit after firing once */
#define SHELL_ESC_ASCII   0 /* Substitute ^Y for X where Y=X+0x40 */
#define SHELL_ESC_SYMBOL   1 /* Substitute U+2400 graphics */
#define SHELL_ESC_OFF   2 /* Send characters verbatim */
#define SHFLG_Pagecache   0x00000001 /* The --pagecache option is used */
#define SHFLG_Lookaside   0x00000002 /* Lookaside memory is used */
#define SHFLG_Backslash   0x00000004 /* The --backslash option is used */
#define SHFLG_PreserveRowid   0x00000008 /* .dump preserves rowid values */
#define SHFLG_Newlines   0x00000010 /* .dump --newline flag */
#define SHFLG_CountChanges   0x00000020 /* .changes setting */
#define SHFLG_Echo   0x00000040 /* .echo on/off, or --echo setting */
#define SHFLG_HeaderSet   0x00000080 /* showHeader has been specified */
#define SHFLG_DumpDataOnly   0x00000100 /* .dump show data only */
#define SHFLG_DumpNoSys   0x00000200 /* .dump omits system tables */
#define SHFLG_TestingMode   0x00000400 /* allow unsafe testing features */
#define ShellHasFlag(P, X)
#define ShellSetFlag(P, X)
#define ShellClearFlag(P, X)
#define MODE_Line   0 /* One column per line. Blank line between records */
#define MODE_Column   1 /* One record per line in neat columns */
#define MODE_List   2 /* One record per line with a separator */
#define MODE_Semi   3 /* Same as MODE_List but append ";" to each line */
#define MODE_Html   4 /* Generate an XHTML table */
#define MODE_Insert   5 /* Generate SQL "insert" statements */
#define MODE_Quote   6 /* Quote values as for SQL */
#define MODE_Tcl   7 /* Generate ANSI-C or TCL quoted elements */
#define MODE_Csv   8 /* Quote strings, numbers are plain */
#define MODE_Explain   9 /* Like MODE_Column, but do not truncate data */
#define MODE_Ascii   10 /* Use ASCII unit and record separators (0x1F/0x1E) */
#define MODE_Pretty   11 /* Pretty-print schemas */
#define MODE_EQP   12 /* Converts EXPLAIN QUERY PLAN output into a graph */
#define MODE_Json   13 /* Output JSON */
#define MODE_Markdown   14 /* Markdown formatting */
#define MODE_Table   15 /* MySQL-style table formatting */
#define MODE_Box   16 /* Unicode box-drawing characters */
#define MODE_Count   17 /* Output only a count of the rows of output */
#define MODE_Off   18 /* No query output shown */
#define MODE_ScanExp   19 /* Like MODE_Explain, but for ".scanstats vm" */
#define MODE_Www   20 /* Full web-page output */
#define SEP_Column   "|"
#define SEP_Row   "\n"
#define SEP_Tab   "\t"
#define SEP_Space   " "
#define SEP_Comma   ","
#define SEP_CrLf   "\r\n"
#define SEP_Unit   "\x1F"
#define SEP_Record   "\x1E"
#define MAX_INPUT_NESTING   25
#define BOX_24   "\342\224\200" /* U+2500 --- */
#define BOX_13   "\342\224\202" /* U+2502 | */
#define BOX_23   "\342\224\214" /* U+250c ,- */
#define BOX_34   "\342\224\220" /* U+2510 -, */
#define BOX_12   "\342\224\224" /* U+2514 '- */
#define BOX_14   "\342\224\230" /* U+2518 -' */
#define BOX_123   "\342\224\234" /* U+251c |- */
#define BOX_134   "\342\224\244" /* U+2524 -| */
#define BOX_234   "\342\224\254" /* U+252c -,- */
#define BOX_124   "\342\224\264" /* U+2534 -'- */
#define BOX_1234   "\342\224\274" /* U+253c -|- */
#define session_close_all(X, Y)
#define OPEN_DB_KEEPALIVE   0x001 /* Return after error if true */
#define OPEN_DB_ZIPFILE   0x002 /* Open as ZIP if name matches *.zip */
#define AUTOCOLUMN_SEP   "_"
#define CTIMEOPT_VAL_(opt)
#define CTIMEOPT_VAL(opt)
#define CHAR_BIT   8
#define QSS_SETV(qss, newst)
#define QSS_INPLAIN(qss)
#define QSS_PLAINWHITE(qss)
#define QSS_PLAINDARK(qss)
#define QSS_SEMITERM(qss)
#define SQLITE_SHELL_IS_UTF8   (1)

Typedefs

typedef unsigned int u32
typedef unsigned short int u16
typedef sqlite3_int64 i64
typedef sqlite3_uint64 u64
typedef unsigned char u8
typedef struct DynaPromptt_DynaPromptRef
typedef struct ShellText ShellText
typedef struct SHA3Context SHA3Context
typedef typedefSQLITE_EXTENSION_INIT1 struct SHA1Context SHA1Context
typedef typedefSQLITE_EXTENSION_INIT1 struct Decimal Decimal
typedef struct Percentile Percentile
typedef struct PercentileFunc PercentileFunc
typedef struct SequenceSpec SequenceSpec
typedef struct series_cursor series_cursor
typedef unsigned short ReStateNumber
typedef struct ReStateSet ReStateSet
typedef struct ReInput ReInput
typedef struct ReCompiled ReCompiled
typedef struct fsdir_cursor fsdir_cursor
typedef struct FsdirLevel FsdirLevel
typedef struct fsdir_tab fsdir_tab
typedef typedefSQLITE_EXTENSION_INIT1 struct completion_vtab completion_vtab
typedef struct completion_cursor completion_cursor
typedef struct sqlite3_vfs ApndVfs
typedef struct ApndFile ApndFile
typedef struct sqlite3expert sqlite3expert
typedef struct IdxColumn IdxColumn
typedef struct IdxConstraint IdxConstraint
typedef struct IdxScan IdxScan
typedef struct IdxStatement IdxStatement
typedef struct IdxTable IdxTable
typedef struct IdxWrite IdxWrite
typedef struct IdxHashEntry IdxHashEntry
typedef struct IdxHash IdxHash
typedef struct ExpertVtab ExpertVtab
typedef struct ExpertCsr ExpertCsr
typedef struct sqlite3_intck sqlite3_intck
typedef SQLITE_EXTENSION_INIT1 struct Stmtrand Stmtrand
typedef struct vfstrace_info vfstrace_info
typedef struct vfstrace_file vfstrace_file
typedef struct ExpertInfo ExpertInfo
typedef struct EQPGraphRow EQPGraphRow
typedef struct EQPGraph EQPGraph
typedef struct ColModeOpts ColModeOpts
typedef struct ShellState ShellState
typedef struct ImportCtx ImportCtx

Enumerations

enum  QuickScanState {
  QSS_HasDark = 1<<CHAR_BIT , QSS_EndingSemi = 2<<CHAR_BIT , QSS_CharMask = (1<<CHAR_BIT)-1 , QSS_ScanMask = 3<<CHAR_BIT ,
  QSS_Start = 0
}

Functions

int isatty (int)
FILE * popen (const char *, const char *)
int pclose (FILE *)
static int cli_strcmp (const char *a, const char *b)
static int cli_strncmp (const char *a, const char *b, size_t n)
static sqlite3_int64 timeOfDay (void)
static void beginTimer (void)
static double timeDiff (struct timeval *pStart, struct timeval *pEnd)
static void endTimer (FILE *out)
static char * shell_strncpy (char *dest, const char *src, size_t n)
static void shell_strcpy (char *dest, const char *src)
static void trackParenLevel (struct DynaPrompt *p, int ni)
static void setLexemeOpen (struct DynaPrompt *p, char *s, char c)
static char * dynamicContinuePrompt (void)
static void shell_out_of_memory (void)
static void shell_check_oom (const void *p)
int cli_wcwidth (int c)
static int decodeUtf8 (const unsigned char *z, int *pU)
static int isVt100 (const unsigned char *z)
static void utf8_width_print (FILE *out, int w, const char *zUtf)
static int isNumber (const char *z, int *realnum)
static int strlen30 (const char *z)
static int strlenChar (const char *z)
static FILE * openChrSource (const char *zFile)
static char * local_getline (char *zLine, FILE *in)
static char * one_input_line (FILE *in, char *zPrior, int isContinuation)
static int hexDigitValue (char c)
static sqlite3_int64 integerValue (const char *zArg)
static void initText (ShellText *p)
static void freeText (ShellText *p)
static void appendText (ShellText *p, const char *zAppend, char quote)
static char quoteChar (const char *zName)
static char * shellFakeSchema (sqlite3 *db, const char *zSchema, const char *zName)
static void shellStrtod (sqlite3_context *pCtx, int nVal, sqlite3_value **apVal)
static void shellDtostr (sqlite3_context *pCtx, int nVal, sqlite3_value **apVal)
static void shellAddSchemaName (sqlite3_context *pCtx, int nVal, sqlite3_value **apVal)
static void * memtraceMalloc (int n)
static void memtraceFree (void *p)
static void * memtraceRealloc (void *p, int n)
static int memtraceSize (void *p)
static int memtraceRoundup (int n)
static int memtraceInit (void *p)
static void memtraceShutdown (void *p)
int sqlite3MemTraceActivate (FILE *out)
int sqlite3MemTraceDeactivate (void)
static int pcachetraceInit (void *pArg)
static void pcachetraceShutdown (void *pArg)
static sqlite3_pcachepcachetraceCreate (int szPage, int szExtra, int bPurge)
static void pcachetraceCachesize (sqlite3_pcache *p, int nCachesize)
static int pcachetracePagecount (sqlite3_pcache *p)
static sqlite3_pcache_pagepcachetraceFetch (sqlite3_pcache *p, unsigned key, int crFg)
static void pcachetraceUnpin (sqlite3_pcache *p, sqlite3_pcache_page *pPg, int bDiscard)
static void pcachetraceRekey (sqlite3_pcache *p, sqlite3_pcache_page *pPg, unsigned oldKey, unsigned newKey)
static void pcachetraceTruncate (sqlite3_pcache *p, unsigned n)
static void pcachetraceDestroy (sqlite3_pcache *p)
static void pcachetraceShrink (sqlite3_pcache *p)
int sqlite3PcacheTraceActivate (FILE *out)
int sqlite3PcacheTraceDeactivate (void)
static void KeccakF1600Step (SHA3Context *p)
static void SHA3Init (SHA3Context *p, int iSize)
static void SHA3Update (SHA3Context *p, const unsigned char *aData, unsigned int nData)
static unsigned char * SHA3Final (SHA3Context *p)
static void sha3Func (sqlite3_context *context, int argc, sqlite3_value **argv)
static void sha3_step_vformat (SHA3Context *p, const char *zFormat,...)
static void sha3UpdateFromValue (SHA3Context *p, sqlite3_value *pVal)
static void sha3QueryFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static void sha3AggStep (sqlite3_context *context, int argc, sqlite3_value **argv)
static void sha3AggFinal (sqlite3_context *context)
int sqlite3_shathree_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static void SHA1Transform (unsigned int state[5], const unsigned char buffer[64])
static void hash_init (SHA1Context *p)
static void hash_step (SHA1Context *p, const unsigned char *data, unsigned int len)
static void hash_step_vformat (SHA1Context *p, const char *zFormat,...)
static void hash_finish (SHA1Context *p, char *zOut, int bAsBinary)
static void sha1Func (sqlite3_context *context, int argc, sqlite3_value **argv)
static void sha1QueryFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
int sqlite3_sha_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static SQLITE_EXTENSION_INIT1 int uintCollFunc (void *notUsed, int nKey1, const void *pKey1, int nKey2, const void *pKey2)
int sqlite3_uint_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static void decimal_clear (Decimal *p)
static void decimal_free (Decimal *p)
static DecimaldecimalNewFromText (const char *zIn, int n)
static DecimaldecimalFromDouble (double)
static Decimaldecimal_new (sqlite3_context *pCtx, sqlite3_value *pIn, int bTextOnly)
static void decimal_result (sqlite3_context *pCtx, Decimal *p)
static void decimal_result_sci (sqlite3_context *pCtx, Decimal *p)
static int decimal_cmp (const Decimal *pA, const Decimal *pB)
static void decimalCmpFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static void decimal_expand (Decimal *p, int nDigit, int nFrac)
static void decimal_add (Decimal *pA, Decimal *pB)
static void decimalMul (Decimal *pA, Decimal *pB)
static DecimaldecimalPow2 (int N)
static void decimalFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static int decimalCollFunc (void *notUsed, int nKey1, const void *pKey1, int nKey2, const void *pKey2)
static void decimalAddFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static void decimalSubFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static void decimalSumStep (sqlite3_context *context, int argc, sqlite3_value **argv)
static void decimalSumInverse (sqlite3_context *context, int argc, sqlite3_value **argv)
static void decimalSumValue (sqlite3_context *context)
static void decimalSumFinalize (sqlite3_context *context)
static void decimalMulFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static void decimalPow2Func (sqlite3_context *context, int argc, sqlite3_value **argv)
int sqlite3_decimal_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static int percentIsInfinity (double r)
static int percentSameValue (double a, double b)
static int percentBinarySearch (Percentile *p, double y, int bExact)
static void percentError (sqlite3_context *pCtx, const char *zFormat,...)
static void percentStep (sqlite3_context *pCtx, int argc, sqlite3_value **argv)
static void percentSort (double *a, unsigned int n)
static void percentInverse (sqlite3_context *pCtx, int argc, sqlite3_value **argv)
static void percentCompute (sqlite3_context *pCtx, int bIsFinal)
static void percentFinal (sqlite3_context *pCtx)
static void percentValue (sqlite3_context *pCtx)
int sqlite3_percentile_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static char * toBase64 (u8 *pIn, int nbIn, char *pOut)
static char * skipNonB64 (char *s, int nc)
static u8fromBase64 (char *pIn, int ncIn, u8 *pOut)
static void base64 (sqlite3_context *context, int na, sqlite3_value *av[])
int sqlite3_base_init (sqlite3 *db, char **pzErr, const sqlite3_api_routines *pApi)
static char * skipNonB85 (char *s, int nc)
static char * putcs (char *pc, char *s)
static char * toBase85 (u8 *pIn, int nbIn, char *pOut, char *pSep)
static u8fromBase85 (char *pIn, int ncIn, u8 *pOut)
static void base85 (sqlite3_context *context, int na, sqlite3_value *av[])
static SQLITE_EXTENSION_INIT1 void ieee754func (sqlite3_context *context, int argc, sqlite3_value **argv)
static void ieee754func_from_blob (sqlite3_context *context, int argc, sqlite3_value **argv)
static void ieee754func_to_blob (sqlite3_context *context, int argc, sqlite3_value **argv)
static void ieee754inc (sqlite3_context *context, int argc, sqlite3_value **argv)
int sqlite3_ieee_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static SQLITE_EXTENSION_INIT1 sqlite3_int64 genSeqMember (sqlite3_int64 smBase, sqlite3_int64 smStep, sqlite3_uint64 ix)
static void setupSequence (SequenceSpec *pss)
static int progressSequence (SequenceSpec *pss)
static int seriesConnect (sqlite3 *db, void *pUnused, int argcUnused, const char *const *argvUnused, sqlite3_vtab **ppVtab, char **pzErrUnused)
static int seriesDisconnect (sqlite3_vtab *pVtab)
static int seriesOpen (sqlite3_vtab *pUnused, sqlite3_vtab_cursor **ppCursor)
static int seriesClose (sqlite3_vtab_cursor *cur)
static int seriesNext (sqlite3_vtab_cursor *cur)
static int seriesColumn (sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i)
static int seriesRowid (sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid)
static int seriesEof (sqlite3_vtab_cursor *cur)
static int seriesFilter (sqlite3_vtab_cursor *pVtabCursor, int idxNum, const char *idxStrUnused, int argc, sqlite3_value **argv)
static int seriesBestIndex (sqlite3_vtab *pVTab, sqlite3_index_info *pIdxInfo)
int sqlite3_series_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static void re_add_state (ReStateSet *pSet, int newState)
static unsigned re_next_char (ReInput *p)
static unsigned re_next_char_nocase (ReInput *p)
static int re_word_char (int c)
static int re_digit_char (int c)
static int re_space_char (int c)
static int re_match (ReCompiled *pRe, const unsigned char *zIn, int nIn)
static int re_resize (ReCompiled *p, int N)
static int re_insert (ReCompiled *p, int iBefore, int op, int arg)
static int re_append (ReCompiled *p, int op, int arg)
static void re_copy (ReCompiled *p, int iStart, int N)
static int re_hex (int c, int *pV)
static unsigned re_esc_char (ReCompiled *p)
static const char * re_subcompile_string (ReCompiled *)
static unsigned char rePeek (ReCompiled *p)
static const char * re_subcompile_re (ReCompiled *p)
static void re_free (void *p)
static const char * re_compile (ReCompiled **ppRe, const char *zIn, int noCase)
static void re_sql_func (sqlite3_context *context, int argc, sqlite3_value **argv)
int sqlite3_regexp_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static void readFileContents (sqlite3_context *ctx, const char *zName)
static void readfileFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static void ctxErrorMsg (sqlite3_context *ctx, const char *zFmt,...)
static int fileStat (const char *zPath, STRUCT_STAT *pStatBuf)
static int fileLinkStat (const char *zPath, STRUCT_STAT *pStatBuf)
static int makeDirectory (const char *zFile)
static int writeFile (sqlite3_context *pCtx, const char *zFile, sqlite3_value *pData, mode_t mode, sqlite3_int64 mtime)
static void writefileFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static void lsModeFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static int fsdirConnect (sqlite3 *db, void *pAux, int argc, const char *const *argv, sqlite3_vtab **ppVtab, char **pzErr)
static int fsdirDisconnect (sqlite3_vtab *pVtab)
static int fsdirOpen (sqlite3_vtab *p, sqlite3_vtab_cursor **ppCursor)
static void fsdirResetCursor (fsdir_cursor *pCur)
static int fsdirClose (sqlite3_vtab_cursor *cur)
static void fsdirSetErrmsg (fsdir_cursor *pCur, const char *zFmt,...)
static int fsdirNext (sqlite3_vtab_cursor *cur)
static int fsdirColumn (sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i)
static int fsdirRowid (sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid)
static int fsdirEof (sqlite3_vtab_cursor *cur)
static int fsdirFilter (sqlite3_vtab_cursor *cur, int idxNum, const char *idxStr, int argc, sqlite3_value **argv)
static int fsdirBestIndex (sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo)
static int fsdirRegister (sqlite3 *db)
int sqlite3_fileio_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static int completionConnect (sqlite3 *db, void *pAux, int argc, const char *const *argv, sqlite3_vtab **ppVtab, char **pzErr)
static int completionDisconnect (sqlite3_vtab *pVtab)
static int completionOpen (sqlite3_vtab *p, sqlite3_vtab_cursor **ppCursor)
static void completionCursorReset (completion_cursor *pCur)
static int completionClose (sqlite3_vtab_cursor *cur)
static int completionNext (sqlite3_vtab_cursor *cur)
static int completionColumn (sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i)
static int completionRowid (sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid)
static int completionEof (sqlite3_vtab_cursor *cur)
static int completionFilter (sqlite3_vtab_cursor *pVtabCursor, int idxNum, const char *idxStr, int argc, sqlite3_value **argv)
static int completionBestIndex (sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo)
int sqlite3CompletionVtabInit (sqlite3 *db)
int sqlite3_completion_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static int apndClose (sqlite3_file *)
static int apndRead (sqlite3_file *, void *, int iAmt, sqlite3_int64 iOfst)
static int apndWrite (sqlite3_file *, const void *, int iAmt, sqlite3_int64 iOfst)
static int apndTruncate (sqlite3_file *, sqlite3_int64 size)
static int apndSync (sqlite3_file *, int flags)
static int apndFileSize (sqlite3_file *, sqlite3_int64 *pSize)
static int apndLock (sqlite3_file *, int)
static int apndUnlock (sqlite3_file *, int)
static int apndCheckReservedLock (sqlite3_file *, int *pResOut)
static int apndFileControl (sqlite3_file *, int op, void *pArg)
static int apndSectorSize (sqlite3_file *)
static int apndDeviceCharacteristics (sqlite3_file *)
static int apndShmMap (sqlite3_file *, int iPg, int pgsz, int, void volatile **)
static int apndShmLock (sqlite3_file *, int offset, int n, int flags)
static void apndShmBarrier (sqlite3_file *)
static int apndShmUnmap (sqlite3_file *, int deleteFlag)
static int apndFetch (sqlite3_file *, sqlite3_int64 iOfst, int iAmt, void **pp)
static int apndUnfetch (sqlite3_file *, sqlite3_int64 iOfst, void *p)
static int apndOpen (sqlite3_vfs *, const char *, sqlite3_file *, int, int *)
static int apndDelete (sqlite3_vfs *, const char *zName, int syncDir)
static int apndAccess (sqlite3_vfs *, const char *zName, int flags, int *)
static int apndFullPathname (sqlite3_vfs *, const char *zName, int, char *zOut)
static void * apndDlOpen (sqlite3_vfs *, const char *zFilename)
static void apndDlError (sqlite3_vfs *, int nByte, char *zErrMsg)
static void apndDlClose (sqlite3_vfs *, void *)
static int apndRandomness (sqlite3_vfs *, int nByte, char *zOut)
static int apndSleep (sqlite3_vfs *, int microseconds)
static int apndCurrentTime (sqlite3_vfs *, double *)
static int apndGetLastError (sqlite3_vfs *, int, char *)
static int apndCurrentTimeInt64 (sqlite3_vfs *, sqlite3_int64 *)
static int apndSetSystemCall (sqlite3_vfs *, const char *, sqlite3_syscall_ptr)
static sqlite3_syscall_ptr apndGetSystemCall (sqlite3_vfs *, const char *z)
static const char * apndNextSystemCall (sqlite3_vfs *, const char *zName)
static int apndWriteMark (ApndFile *paf, sqlite3_file *pFile, sqlite_int64 iWriteEnd)
static sqlite3_int64 apndReadMark (sqlite3_int64 sz, sqlite3_file *pFile)
static int apndIsAppendvfsDatabase (sqlite3_int64 sz, sqlite3_file *pFile)
static int apndIsOrdinaryDatabaseFile (sqlite3_int64 sz, sqlite3_file *pFile)
int sqlite3_appendvfs_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
sqlite3expertsqlite3_expert_new (sqlite3 *db, char **pzErr)
int sqlite3_expert_config (sqlite3expert *p, int op,...)
int sqlite3_expert_sql (sqlite3expert *p, const char *zSql, char **pzErr)
int sqlite3_expert_analyze (sqlite3expert *p, char **pzErr)
int sqlite3_expert_count (sqlite3expert *)
const char * sqlite3_expert_report (sqlite3expert *, int iStmt, int eReport)
void sqlite3_expert_destroy (sqlite3expert *)
static void * idxMalloc (int *pRc, int nByte)
static void idxHashInit (IdxHash *pHash)
static void idxHashClear (IdxHash *pHash)
static int idxHashString (const char *z, int n)
static int idxHashAdd (int *pRc, IdxHash *pHash, const char *zKey, const char *zVal)
static IdxHashEntryidxHashFind (IdxHash *pHash, const char *zKey, int nKey)
static const char * idxHashSearch (IdxHash *pHash, const char *zKey, int nKey)
static IdxConstraintidxNewConstraint (int *pRc, const char *zColl)
static void idxDatabaseError (sqlite3 *db, char **pzErrmsg)
static int idxPrepareStmt (sqlite3 *db, sqlite3_stmt **ppStmt, char **pzErrmsg, const char *zSql)
static int idxPrintfPrepareStmt (sqlite3 *db, sqlite3_stmt **ppStmt, char **pzErrmsg, const char *zFmt,...)
static char * expertDequote (const char *zIn)
static int expertConnect (sqlite3 *db, void *pAux, int argc, const char *const *argv, sqlite3_vtab **ppVtab, char **pzErr)
static int expertDisconnect (sqlite3_vtab *pVtab)
static int expertBestIndex (sqlite3_vtab *pVtab, sqlite3_index_info *pIdxInfo)
static int expertUpdate (sqlite3_vtab *pVtab, int nData, sqlite3_value **azData, sqlite_int64 *pRowid)
static int expertOpen (sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor)
static int expertClose (sqlite3_vtab_cursor *cur)
static int expertEof (sqlite3_vtab_cursor *cur)
static int expertNext (sqlite3_vtab_cursor *cur)
static int expertRowid (sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid)
static int expertColumn (sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i)
static int expertFilter (sqlite3_vtab_cursor *cur, int idxNum, const char *idxStr, int argc, sqlite3_value **argv)
static int idxRegisterVtab (sqlite3expert *p)
static void idxFinalize (int *pRc, sqlite3_stmt *pStmt)
static int idxGetTableInfo (sqlite3 *db, const char *zTab, IdxTable **ppOut, char **pzErrmsg)
static char * idxAppendText (int *pRc, char *zIn, const char *zFmt,...)
static int idxIdentifierRequiresQuotes (const char *zId)
static char * idxAppendColDefn (int *pRc, char *zIn, IdxTable *pTab, IdxConstraint *pCons)
static int idxFindCompatible (int *pRc, sqlite3 *dbm, IdxScan *pScan, IdxConstraint *pEq, IdxConstraint *pTail)
static int countNonzeros (void *pCount, int nc, char *azResults[], char *azColumns[])
static int idxCreateFromCons (sqlite3expert *p, IdxScan *pScan, IdxConstraint *pEq, IdxConstraint *pTail)
static int idxFindConstraint (IdxConstraint *pList, IdxConstraint *p)
static int idxCreateFromWhere (sqlite3expert *p, IdxScan *pScan, IdxConstraint *pTail)
static int idxCreateCandidates (sqlite3expert *p)
static void idxConstraintFree (IdxConstraint *pConstraint)
static void idxScanFree (IdxScan *pScan, IdxScan *pLast)
static void idxStatementFree (IdxStatement *pStatement, IdxStatement *pLast)
static void idxTableFree (IdxTable *pTab)
static void idxWriteFree (IdxWrite *pTab)
static int idxFindIndexes (sqlite3expert *p, char **pzErr)
static int idxAuthCallback (void *pCtx, int eOp, const char *z3, const char *z4, const char *zDb, const char *zTrigger)
static int idxProcessOneTrigger (sqlite3expert *p, IdxWrite *pWrite, char **pzErr)
static int idxProcessTriggers (sqlite3expert *p, char **pzErr)
static int expertDbContainsObject (sqlite3 *db, const char *zTab, int *pbContains)
static int expertSchemaSql (sqlite3 *db, const char *zSql, char **pzErr)
static int idxCreateVtabSchema (sqlite3expert *p, char **pzErrmsg)
static void idxSampleFunc (sqlite3_context *pCtx, int argc, sqlite3_value **argv)
static void idxRemFunc (sqlite3_context *pCtx, int argc, sqlite3_value **argv)
static int idxLargestIndex (sqlite3 *db, int *pnMax, char **pzErr)
static int idxPopulateOneStat1 (sqlite3expert *p, sqlite3_stmt *pIndexXInfo, sqlite3_stmt *pWriteStat, const char *zTab, const char *zIdx, char **pzErr)
static int idxBuildSampleTable (sqlite3expert *p, const char *zTab)
static int idxPopulateStat1 (sqlite3expert *p, char **pzErr)
int dummyCompare (void *up1, int up2, const void *up3, int up4, const void *up5)
void useDummyCS (void *up1, sqlite3 *db, int etr, const char *zName)
void dummyUDF (sqlite3_context *up1, int up2, sqlite3_value **up3)
void dummyUDFvalue (sqlite3_context *up1)
int registerUDFs (sqlite3 *dbSrc, sqlite3 *dbDst)
int sqlite3_intck_open (sqlite3 *db, const char *zDb, sqlite3_intck **ppOut)
void sqlite3_intck_close (sqlite3_intck *pCk)
int sqlite3_intck_step (sqlite3_intck *pCk)
const char * sqlite3_intck_message (sqlite3_intck *pCk)
int sqlite3_intck_unlock (sqlite3_intck *pCk)
int sqlite3_intck_error (sqlite3_intck *pCk, const char **pzErr)
const char * sqlite3_intck_test_sql (sqlite3_intck *pCk, const char *zObj)
static void intckSaveErrmsg (sqlite3_intck *p)
static sqlite3_stmtintckPrepare (sqlite3_intck *p, const char *zSql)
static sqlite3_stmtintckPrepareFmt (sqlite3_intck *p, const char *zFmt,...)
static void intckFinalize (sqlite3_intck *p, sqlite3_stmt *pStmt)
static int intckStep (sqlite3_intck *p, sqlite3_stmt *pStmt)
static void intckExec (sqlite3_intck *p, const char *zSql)
static char * intckMprintf (sqlite3_intck *p, const char *zFmt,...)
static void intckSaveKey (sqlite3_intck *p)
static void intckFindObject (sqlite3_intck *p)
static int intckGetToken (const char *z)
static int intckIsSpace (char c)
static const char * intckParseCreateIndex (const char *z, int iCol, int *pnByte)
static void intckParseCreateIndexFunc (sqlite3_context *pCtx, int nVal, sqlite3_value **apVal)
static int intckGetAutoIndex (sqlite3_intck *p)
static int intckIsIndex (sqlite3_intck *p, const char *zObj)
static char * intckCheckObjectSql (sqlite3_intck *p, const char *zObj, const char *zPrev, int *pnKeyVal)
static void stmtrandFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
int sqlite3_stmtrand_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
static int vfstraceClose (sqlite3_file *)
static int vfstraceRead (sqlite3_file *, void *, int iAmt, sqlite3_int64 iOfst)
static int vfstraceWrite (sqlite3_file *, const void *, int iAmt, sqlite3_int64)
static int vfstraceTruncate (sqlite3_file *, sqlite3_int64 size)
static int vfstraceSync (sqlite3_file *, int flags)
static int vfstraceFileSize (sqlite3_file *, sqlite3_int64 *pSize)
static int vfstraceLock (sqlite3_file *, int)
static int vfstraceUnlock (sqlite3_file *, int)
static int vfstraceCheckReservedLock (sqlite3_file *, int *)
static int vfstraceFileControl (sqlite3_file *, int op, void *pArg)
static int vfstraceSectorSize (sqlite3_file *)
static int vfstraceDeviceCharacteristics (sqlite3_file *)
static int vfstraceShmLock (sqlite3_file *, int, int, int)
static int vfstraceShmMap (sqlite3_file *, int, int, int, void volatile **)
static void vfstraceShmBarrier (sqlite3_file *)
static int vfstraceShmUnmap (sqlite3_file *, int)
static int vfstraceOpen (sqlite3_vfs *, const char *, sqlite3_file *, int, int *)
static int vfstraceDelete (sqlite3_vfs *, const char *zName, int syncDir)
static int vfstraceAccess (sqlite3_vfs *, const char *zName, int flags, int *)
static int vfstraceFullPathname (sqlite3_vfs *, const char *zName, int, char *)
static void * vfstraceDlOpen (sqlite3_vfs *, const char *zFilename)
static void vfstraceDlError (sqlite3_vfs *, int nByte, char *zErrMsg)
static void vfstraceDlClose (sqlite3_vfs *, void *)
static int vfstraceRandomness (sqlite3_vfs *, int nByte, char *zOut)
static int vfstraceSleep (sqlite3_vfs *, int microseconds)
static int vfstraceCurrentTime (sqlite3_vfs *, double *)
static int vfstraceGetLastError (sqlite3_vfs *, int, char *)
static int vfstraceCurrentTimeInt64 (sqlite3_vfs *, sqlite3_int64 *)
static int vfstraceSetSystemCall (sqlite3_vfs *, const char *, sqlite3_syscall_ptr)
static sqlite3_syscall_ptr vfstraceGetSystemCall (sqlite3_vfs *, const char *)
static const char * vfstraceNextSystemCall (sqlite3_vfs *, const char *zName)
static const char * fileTail (const char *z)
static void vfstrace_printf (vfstrace_info *pInfo, const char *zFormat,...)
static const char * vfstrace_errcode_name (int rc)
static void vfstrace_print_errcode (vfstrace_info *pInfo, const char *zFormat, int rc)
static void strappend (char *z, int *pI, const char *zAppend)
static void vfstraceOnOff (vfstrace_info *pInfo, unsigned int mMask)
static const char * lockName (int eLock)
static int vfstraceFetch (sqlite3_file *pFile, i64 iOff, int nAmt, void **pptr)
static int vfstraceUnfetch (sqlite3_file *pFile, i64 iOff, void *ptr)
int vfstrace_register (const char *zTraceName, const char *zOldVfsName, int(*xOut)(const char *, void *), void *pOutArg, int makeDefault)
void vfstrace_unregister (const char *zTraceName)
static void shellLog (void *pArg, int iErrCode, const char *zMsg)
static void shellPutsFunc (sqlite3_context *pCtx, int nVal, sqlite3_value **apVal)
static void failIfSafeMode (ShellState *p, const char *zErrMsg,...)
static void editFunc (sqlite3_context *context, int argc, sqlite3_value **argv)
static void outputModePush (ShellState *p)
static void outputModePop (ShellState *p)
static void setCrlfMode (ShellState *p)
static void output_hex_blob (FILE *out, const void *pBlob, int nBlob)
static void output_quoted_string (ShellState *p, const char *zInX)
static void output_quoted_escaped_string (ShellState *p, const char *z)
static const char * anyOfInStr (const char *s, const char *zAny, size_t ns)
const char * zSkipValidUtf8 (const char *z, int nAccept, long ccm)
static void output_c_string (FILE *out, const char *z)
static void output_json_string (FILE *out, const char *z, i64 n)
static const char * escapeOutput (ShellState *p, const char *zInX, char **ppFree)
static void output_html_string (FILE *out, const char *z)
static void output_csv (ShellState *p, const char *z, int bSep)
static void interrupt_handler (int NotUsed)
static int safeModeAuth (void *pClientData, int op, const char *zA1, const char *zA2, const char *zA3, const char *zA4)
static int shellAuth (void *pClientData, int op, const char *zA1, const char *zA2, const char *zA3, const char *zA4)
static void printSchemaLine (FILE *out, const char *z, const char *zTail)
static void printSchemaLineN (FILE *out, char *z, int n, const char *zTail)
static int wsToEol (const char *z)
static void eqp_append (ShellState *p, int iEqpId, int p2, const char *zText)
static void eqp_reset (ShellState *p)
static EQPGraphRoweqp_next_row (ShellState *p, int iEqpId, EQPGraphRow *pOld)
static void eqp_render_level (ShellState *p, int iEqpId)
static void eqp_render (ShellState *p, i64 nCycle)
static int progress_handler (void *pClientData)
static void print_dashes (FILE *out, int N)
static void print_row_separator (ShellState *p, int nArg, const char *zSep)
static int shell_callback (void *pArg, int nArg, char **azArg, char **azCol, int *aiType)
static int callback (void *pArg, int nArg, char **azArg, char **azCol)
static int captureOutputCallback (void *pArg, int nArg, char **azArg, char **az)
static void createSelftestTable (ShellState *p)
static void set_table_name (ShellState *p, const char *zName)
static char * shell_error_context (const char *zSql, sqlite3 *db)
static int run_table_dump_query (ShellState *p, const char *zSelect)
static char * save_err_msg (sqlite3 *db, const char *zPhase, int rc, const char *zSql)
static void displayStatLine (FILE *out, char *zLabel, char *zFormat, int iStatusCtrl, int bReset)
static int display_stats (sqlite3 *db, ShellState *pArg, int bReset)
static int str_in_array (const char *zStr, const char **azArray)
static void explain_data_prepare (ShellState *p, sqlite3_stmt *pSql)
static void explain_data_delete (ShellState *p)
static void exec_prepared_stmt (ShellState *, sqlite3_stmt *)
static void display_scanstats (sqlite3 *db, ShellState *pArg)
static void disable_debug_trace_modes (void)
static void restore_debug_trace_modes (void)
static void bind_table_init (ShellState *p)
static void bind_prepared_stmt (ShellState *pArg, sqlite3_stmt *pStmt)
static void print_box_line (FILE *out, int N)
static void print_box_row_separator (ShellState *p, int nArg, const char *zSep1, const char *zSep2, const char *zSep3)
static char * translateForDisplayAndDup (ShellState *p, const unsigned char *z, const unsigned char **pzTail, int mxWidth, u8 bWordWrap)
static int needUnistr (const unsigned char *z)
static char * quoted_column (sqlite3_stmt *pStmt, int i)
static void exec_prepared_stmt_columnar (ShellState *p, sqlite3_stmt *pStmt)
static int expertHandleSQL (ShellState *pState, const char *zSql, char **pzErr)
static int expertFinish (ShellState *pState, int bCancel, char **pzErr)
static int expertDotCommand (ShellState *pState, char **azArg, int nArg)
static int shell_exec (ShellState *pArg, const char *zSql, char **pzErrMsg)
static void freeColumnList (char **azCol)
static char ** tableColumnList (ShellState *p, const char *zTab)
static void toggleSelectOrder (sqlite3 *db)
static int dump_callback (void *pArg, int nArg, char **azArg, char **azNotUsed)
static int run_schema_dump_query (ShellState *p, const char *zQuery)
static int showHelp (FILE *out, const char *zPattern)
static int process_input (ShellState *p)
static char * readFile (const char *zName, int *pnByte)
int deduceDatabaseType (const char *zName, int dfltZip)
static unsigned char * readHexDb (ShellState *p, int *pnData)
static void shellUSleepFunc (sqlite3_context *context, int argcUnused, sqlite3_value **argv)
static void shellModuleSchema (sqlite3_context *pCtx, int nVal, sqlite3_value **apVal)
static void open_db (ShellState *p, int openFlags)
void close_db (sqlite3 *db)
static void resolve_backslashes (char *z)
static int booleanValue (const char *zArg)
static void setOrClearFlag (ShellState *p, unsigned mFlag, const char *zArg)
static void output_file_close (FILE *f)
static FILE * output_file_open (const char *zFile)
static int sql_trace_callback (unsigned mType, void *pArg, void *pP, void *pX)
static void test_breakpoint (void)
static void import_cleanup (ImportCtx *p)
static void import_append_char (ImportCtx *p, int c)
static char *SQLITE_CDECL csv_read_one_field (ImportCtx *p)
static char *SQLITE_CDECL ascii_read_one_field (ImportCtx *p)
static void tryToCloneData (ShellState *p, sqlite3 *newDb, const char *zTable)
static void tryToCloneSchema (ShellState *p, sqlite3 *newDb, const char *zWhere, void(*xForEach)(ShellState *, sqlite3 *, const char *))
static void tryToClone (ShellState *p, const char *zNewDb)
static void output_redir (ShellState *p, FILE *pfNew)
static void output_reset (ShellState *p)
static int db_int (sqlite3 *db, const char *zSql,...)
static int shell_dbtotxt_command (ShellState *p, int nArg, char **azArg)
static void shellEmitError (const char *zErr)
static int shellDatabaseError (sqlite3 *db)
static int testcase_glob (const char *zGlob, const char *z)
static int optionMatch (const char *zStr, const char *zOpt)
int shellDeleteFile (const char *zFilename)
static void clearTempFile (ShellState *p)
static void newTempFile (ShellState *p, const char *zSuffix)
static void shellFkeyCollateClause (sqlite3_context *pCtx, int nVal, sqlite3_value **apVal)
static int lintFkeyIndexes (ShellState *pState, char **azArg, int nArg)
static int lintDotCommand (ShellState *pState, char **azArg, int nArg)
static void shellPrepare (sqlite3 *db, int *pRc, const char *zSql, sqlite3_stmt **ppStmt)
static void shellPreparePrintf (sqlite3 *db, int *pRc, sqlite3_stmt **ppStmt, const char *zFmt,...)
static void shellFinalize (int *pRc, sqlite3_stmt *pStmt)
void shellReset (int *pRc, sqlite3_stmt *pStmt)
static int intckDatabaseCmd (ShellState *pState, i64 nStepPerUnlock)
static void rc_err_oom_die (int rc)
static char * zAutoColumn (const char *zColNew, sqlite3 **pDb, char **pzRenamed)
static int outputDumpWarning (ShellState *p, const char *zLike)
static int faultsim_callback (int iArg)
static int do_meta_command (char *zLine, ShellState *p)
static QuickScanState quickscan (char *zLine, QuickScanState qss, SCAN_TRACKER_REFTYPE pst)
static int line_is_command_terminator (char *zLine)
static int line_is_complete (char *zSql, int nSql)
static int doAutoDetectRestore (ShellState *p, const char *zSql)
static int runOneSqlLine (ShellState *p, char *zSql, FILE *in, int startline)
static void echo_group_input (ShellState *p, const char *zDo)
static char * find_home_dir (int clearFlag)
static char * find_xdg_config (void)
static void process_sqliterc (ShellState *p, const char *sqliterc_override)
static void usage (int showDetail)
static void verify_uninitialized (void)
static void main_init (ShellState *data)
static void printBold (const char *zText)
static char * cmdline_option_value (int argc, char **argv, int i)
static void sayAbnormalExit (void)
static int vfstraceOut (const char *z, void *pArg)
int SQLITE_CDECL main (int argc, char **argv)

Variables

static int enableTimer = 0
static struct rusage sBegin
static sqlite3_int64 iBegin
static int bail_on_error = 0
static int stdin_is_interactive = 1
static int stdout_is_console = 1
static sqlite3globalDb = 0
static volatile int seenInterrupt = 0
static char * Argv0
static char mainPrompt [PROMPT_LEN_MAX]
static char continuePrompt [PROMPT_LEN_MAX]
static struct DynaPrompt dynPrompt = { {0}, {0}, 0, 0 }
struct { 
   unsigned char   w 
   int   iFirst 
aUWidth []
static sqlite3_mem_methods memtraceBase
static FILE * memtraceOut
static sqlite3_mem_methods ersaztMethods
static sqlite3_pcache_methods2 pcacheBase
static FILE * pcachetraceOut
static sqlite3_pcache_methods2 ersaztPcacheMethods
static const PercentileFunc aPercentFunc []
 SQLITE_EXTENSION_INIT1
static const u8 b64DigitValues [128]
static const char b64Numerals [64+1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
static u8 b85_cOffset [] = { 0, '#', 0, '*'-4, 0 }
static sqlite3_module seriesModule
static sqlite3_module completionModule
static void(*)(void) apndDlSym (sqlite3_vfs *pVfs, void *p, const char *zSym)
static sqlite3_vfs apnd_vfs
static const sqlite3_io_methods apnd_io_methods
static const char apvfsSqliteHdr [] = "SQLite format 3"
static void(*)(void) vfstraceDlSym (sqlite3_vfs *, void *, const char *zSymbol)
static const char * shell_EscModeNames [] = { "ascii", "symbol", "off" }
static const char * modeDescr []
static const char needCsvQuote []
static unsigned int savedSelectTrace
static unsigned int savedWhereTrace
static const char * azHelp []
static const char * zCOL_DB = ":memory:"
struct { 
   int   iId 
   int   iErr 
   int   iCnt 
   int   iInterval 
   int   eVerbose 
   int   nHit 
   int   nRepeat 
   int   nSkip 
faultsim_state = {-1, 0, 0, 0, 0, 0, 0, 0}
static const char zOptions []

Macro Definition Documentation

◆ _FILE_OFFSET_BITS

#define _FILE_OFFSET_BITS   64

Definition at line 103 of file shell.c.

◆ _LARGE_FILE

#define _LARGE_FILE   1

Definition at line 101 of file shell.c.

◆ _LARGEFILE_SOURCE

#define _LARGEFILE_SOURCE   1

Definition at line 105 of file shell.c.

◆ _SQLITE3_STDIO_H_

#define _SQLITE3_STDIO_H_   1

Definition at line 285 of file shell.c.

◆ _SQLITE_INTCK_H

#define _SQLITE_INTCK_H

Definition at line 15051 of file shell.c.

◆ a

#define a   qq[0]

◆ a00

#define a00   (p->u.s[0])

◆ a01

#define a01   (p->u.s[1])

◆ a02

#define a02   (p->u.s[2])

◆ a03

#define a03   (p->u.s[3])

◆ a04

#define a04   (p->u.s[4])

◆ a10

#define a10   (p->u.s[5])

◆ a11

#define a11   (p->u.s[6])

◆ a12

#define a12   (p->u.s[7])

◆ a13

#define a13   (p->u.s[8])

◆ a14

#define a14   (p->u.s[9])

◆ a20

#define a20   (p->u.s[10])

◆ a21

#define a21   (p->u.s[11])

◆ a22

#define a22   (p->u.s[12])

◆ a23

#define a23   (p->u.s[13])

◆ a24

#define a24   (p->u.s[14])

◆ a30

#define a30   (p->u.s[15])

◆ a31

#define a31   (p->u.s[16])

◆ a32

#define a32   (p->u.s[17])

◆ a33

#define a33   (p->u.s[18])

◆ a34

#define a34   (p->u.s[19])

◆ a40

#define a40   (p->u.s[20])

◆ a41

#define a41   (p->u.s[21])

◆ a42

#define a42   (p->u.s[22])

◆ a43

#define a43   (p->u.s[23])

◆ a44

#define a44   (p->u.s[24])

◆ ALWAYS

#define ALWAYS ( X)
Value:
((X)?1:(assert(0),0))

Definition at line 12781 of file shell.c.

◆ APND_ALIGN_MASK

#define APND_ALIGN_MASK   ((sqlite3_int64)(APND_ROUNDUP-1))

Definition at line 9607 of file shell.c.

◆ APND_MARK_FOS_SZ

#define APND_MARK_FOS_SZ   8

Definition at line 9592 of file shell.c.

◆ APND_MARK_PREFIX

#define APND_MARK_PREFIX   "Start-Of-SQLite3-"

Definition at line 9590 of file shell.c.

◆ APND_MARK_PREFIX_SZ

#define APND_MARK_PREFIX_SZ   17

Definition at line 9591 of file shell.c.

◆ APND_MARK_SIZE

#define APND_MARK_SIZE   (APND_MARK_PREFIX_SZ+APND_MARK_FOS_SZ)

Definition at line 9593 of file shell.c.

◆ APND_MAX_SIZE

#define APND_MAX_SIZE   (0x40000000)

Definition at line 9599 of file shell.c.

◆ APND_ROUNDUP

#define APND_ROUNDUP   4096

Definition at line 9605 of file shell.c.

◆ APND_START_ROUNDUP

#define APND_START_ROUNDUP ( fsz)
Value:
#define APND_ALIGN_MASK
Definition shell.c:9607

Definition at line 9608 of file shell.c.

◆ ArraySize

#define ArraySize ( X)
Value:
(int)(sizeof(X)/sizeof(X[0]))

Definition at line 813 of file shell.c.

◆ AUTOCOLUMN_SEP

#define AUTOCOLUMN_SEP   "_"

Definition at line 28549 of file shell.c.

◆ AUTOEQP_full

#define AUTOEQP_full   3 /* Show full EXPLAIN */

Definition at line 21760 of file shell.c.

◆ AUTOEQP_off

#define AUTOEQP_off   0 /* Automatic EXPLAIN QUERY PLAN is off */

Definition at line 21757 of file shell.c.

◆ AUTOEQP_on

#define AUTOEQP_on   1 /* Automatic EQP is on */

Definition at line 21758 of file shell.c.

◆ AUTOEQP_trigger

#define AUTOEQP_trigger   2 /* On and also show plans for triggers */

Definition at line 21759 of file shell.c.

◆ b

#define b   qq[1]

◆ B64_DARK_MAX

#define B64_DARK_MAX   72

Definition at line 5202 of file shell.c.

◆ B85_CLASS

#define B85_CLASS ( c)
Value:
(((c)>='#')+((c)>'&')+((c)>='*')+((c)>'z'))
#define c

Definition at line 5516 of file shell.c.

◆ B85_DARK_MAX

#define B85_DARK_MAX   80

Definition at line 5534 of file shell.c.

◆ B85_DNOS

#define B85_DNOS ( c)
Value:
#define B85_CLASS(c)
Definition shell.c:5516
static u8 b85_cOffset[]
Definition shell.c:5519

Definition at line 5520 of file shell.c.

◆ BASE64_EXPOSE

#define BASE64_EXPOSE ( db,
pzErr )
Value:
/* Not needed, ..._init() does this. */

Definition at line 5388 of file shell.c.

◆ BASE64_INIT

#define BASE64_INIT ( db)
Value:
sqlite3_base64_init(db, 0, 0)

Definition at line 5387 of file shell.c.

◆ BASE85_EXPOSE

#define BASE85_EXPOSE ( db,
pzErr )
Value:
/* Not needed, ..._init() does this. */

Definition at line 5777 of file shell.c.

◆ BASE85_INIT

#define BASE85_INIT ( db)
Value:
sqlite3_base85_init(db, 0, 0)

Definition at line 5776 of file shell.c.

◆ base85Numeral

#define base85Numeral ( dn)
Value:
((char)(((dn) < 4)? (char)((dn) + '#') : (char)((dn) - 4 + '*')))

Definition at line 5550 of file shell.c.

◆ BEGIN_TIMER

#define BEGIN_TIMER   beginTimer()

Definition at line 716 of file shell.c.

◆ blk

#define blk ( i)
Value:
(block[i&15] = rol(block[(i+13)&15]^block[(i+8)&15] \
^block[(i+2)&15]^block[i&15],1))
#define rol(x, k)
Definition shell.c:3231

Definition at line 3237 of file shell.c.

◆ blk0be

#define blk0be ( i)
Value:
block[i]

Definition at line 3236 of file shell.c.

◆ blk0le

#define blk0le ( i)
Value:
(block[i] = (ror(block[i],8)&0xFF00FF00) \
|(rol(block[i],8)&0x00FF00FF))
#define ror(x, k)
Definition shell.c:3232

Definition at line 3234 of file shell.c.

◆ BOX_12

#define BOX_12   "\342\224\224" /* U+2514 '- */

Definition at line 24129 of file shell.c.

◆ BOX_123

#define BOX_123   "\342\224\234" /* U+251c |- */

Definition at line 24131 of file shell.c.

◆ BOX_1234

#define BOX_1234   "\342\224\274" /* U+253c -|- */

Definition at line 24135 of file shell.c.

◆ BOX_124

#define BOX_124   "\342\224\264" /* U+2534 -'- */

Definition at line 24134 of file shell.c.

◆ BOX_13

#define BOX_13   "\342\224\202" /* U+2502 | */

Definition at line 24126 of file shell.c.

◆ BOX_134

#define BOX_134   "\342\224\244" /* U+2524 -| */

Definition at line 24132 of file shell.c.

◆ BOX_14

#define BOX_14   "\342\224\230" /* U+2518 -' */

Definition at line 24130 of file shell.c.

◆ BOX_23

#define BOX_23   "\342\224\214" /* U+250c ,- */

Definition at line 24127 of file shell.c.

◆ BOX_234

#define BOX_234   "\342\224\254" /* U+252c -,- */

Definition at line 24133 of file shell.c.

◆ BOX_24

#define BOX_24   "\342\224\200" /* U+2500 --- */

Definition at line 24125 of file shell.c.

◆ BOX_34

#define BOX_34   "\342\224\220" /* U+2510 -, */

Definition at line 24128 of file shell.c.

◆ BX_DV_PROTO

#define BX_DV_PROTO ( c)
Value:
((((u8)(c))<0x80)? (u8)(b64DigitValues[(u8)(c)]) : 0x80)
static const u8 b64DigitValues[128]
Definition shell.c:5173
unsigned char u8
Definition shell.c:124

Definition at line 5195 of file shell.c.

◆ BX_NUMERAL

#define BX_NUMERAL ( dv)
Value:
(b64Numerals[(u8)(dv)])
static const char b64Numerals[64+1]
Definition shell.c:5193

Definition at line 5200 of file shell.c.

◆ c

#define c   qq[2]

◆ CHAR_BIT

#define CHAR_BIT   8

Definition at line 32447 of file shell.c.

◆ ColModeOpts_default

#define ColModeOpts_default   { 60, 0, 0 }

Definition at line 21661 of file shell.c.

◆ ColModeOpts_default_qbox

#define ColModeOpts_default_qbox   { 60, 1, 0 }

Definition at line 21662 of file shell.c.

◆ COMPLETION_COLLATIONS

#define COMPLETION_COLLATIONS   4

Definition at line 9101 of file shell.c.

◆ COMPLETION_COLUMN_CANDIDATE

#define COMPLETION_COLUMN_CANDIDATE   0 /* Suggested completion of the input */

◆ COMPLETION_COLUMN_PHASE

#define COMPLETION_COLUMN_PHASE   3 /* ePhase - used for debugging only */

◆ COMPLETION_COLUMN_PREFIX

#define COMPLETION_COLUMN_PREFIX   1 /* Prefix of the word to be completed */

◆ COMPLETION_COLUMN_WHOLELINE

#define COMPLETION_COLUMN_WHOLELINE   2 /* Entire line seen so far */

◆ COMPLETION_COLUMNS

#define COMPLETION_COLUMNS   9

Definition at line 9106 of file shell.c.

◆ COMPLETION_DATABASES

#define COMPLETION_DATABASES   7

Definition at line 9104 of file shell.c.

◆ COMPLETION_EOF

#define COMPLETION_EOF   11

Definition at line 9108 of file shell.c.

◆ COMPLETION_FIRST_PHASE

#define COMPLETION_FIRST_PHASE   1

Definition at line 9097 of file shell.c.

◆ COMPLETION_FUNCTIONS

#define COMPLETION_FUNCTIONS   3

Definition at line 9100 of file shell.c.

◆ COMPLETION_INDEXES

#define COMPLETION_INDEXES   5

Definition at line 9102 of file shell.c.

◆ COMPLETION_KEYWORDS

#define COMPLETION_KEYWORDS   1

Definition at line 9098 of file shell.c.

◆ COMPLETION_MODULES

#define COMPLETION_MODULES   10

Definition at line 9107 of file shell.c.

◆ COMPLETION_PRAGMAS

#define COMPLETION_PRAGMAS   2

Definition at line 9099 of file shell.c.

◆ COMPLETION_TABLES

#define COMPLETION_TABLES   8 /* Also VIEWs and TRIGGERs */

Definition at line 9105 of file shell.c.

◆ COMPLETION_TRIGGERS

#define COMPLETION_TRIGGERS   6

Definition at line 9103 of file shell.c.

◆ CONTINUATION_PROMPT

#define CONTINUATION_PROMPT   dynamicContinuePrompt()

Definition at line 899 of file shell.c.

◆ CONTINUE_PAREN_INCR

#define CONTINUE_PAREN_INCR ( p,
n )
Value:
static int stdin_is_interactive
Definition shell.c:825
static void trackParenLevel(struct DynaPrompt *p, int ni)
Definition shell.c:920

Definition at line 906 of file shell.c.

◆ CONTINUE_PROMPT_AWAITC

#define CONTINUE_PROMPT_AWAITC ( p,
c )
Value:
static void setLexemeOpen(struct DynaPrompt *p, char *s, char c)
Definition shell.c:927

Definition at line 904 of file shell.c.

◆ CONTINUE_PROMPT_AWAITS

#define CONTINUE_PROMPT_AWAITS ( p,
s )
Value:

Definition at line 902 of file shell.c.

◆ CONTINUE_PROMPT_PSTATE

#define CONTINUE_PROMPT_PSTATE   (&dynPrompt)

Definition at line 908 of file shell.c.

◆ CONTINUE_PROMPT_RESET

#define CONTINUE_PROMPT_RESET    do {setLexemeOpen(&dynPrompt,0,0); trackParenLevel(&dynPrompt,0);} while(0)

Definition at line 900 of file shell.c.

◆ CTIMEOPT_VAL

#define CTIMEOPT_VAL ( opt)
Value:
#define CTIMEOPT_VAL_(opt)

◆ CTIMEOPT_VAL_

#define CTIMEOPT_VAL_ ( opt)
Value:
#opt

◆ d

#define d   qq[3]

◆ deliberate_fall_through

#define deliberate_fall_through

Definition at line 190 of file shell.c.

◆ e

#define e   qq[4]

◆ END_TIMER

#define END_TIMER ( X)
Value:
static void endTimer(FILE *out)
Definition shell.c:704

Definition at line 717 of file shell.c.

◆ eputz

#define eputz ( z)
Value:
sqlite3_fputs(z,stderr)
#define sqlite3_fputs
Definition shell.c:305

Definition at line 633 of file shell.c.

◆ EXPERT_CONFIG_SAMPLE

#define EXPERT_CONFIG_SAMPLE   1 /* int */

Definition at line 12644 of file shell.c.

◆ EXPERT_REPORT_CANDIDATES

#define EXPERT_REPORT_CANDIDATES   4

Definition at line 12743 of file shell.c.

◆ EXPERT_REPORT_INDEXES

#define EXPERT_REPORT_INDEXES   2

Definition at line 12741 of file shell.c.

◆ EXPERT_REPORT_PLAN

#define EXPERT_REPORT_PLAN   3

Definition at line 12742 of file shell.c.

◆ EXPERT_REPORT_SQL

#define EXPERT_REPORT_SQL   1

Definition at line 12740 of file shell.c.

◆ FSDIR_COLUMN_DATA

#define FSDIR_COLUMN_DATA   3 /* File content */

Definition at line 8060 of file shell.c.

◆ FSDIR_COLUMN_DIR

#define FSDIR_COLUMN_DIR   5 /* Path is relative to this directory */

Definition at line 8062 of file shell.c.

◆ FSDIR_COLUMN_MODE

#define FSDIR_COLUMN_MODE   1 /* Access mode */

Definition at line 8058 of file shell.c.

◆ FSDIR_COLUMN_MTIME

#define FSDIR_COLUMN_MTIME   2 /* Last modification time */

Definition at line 8059 of file shell.c.

◆ FSDIR_COLUMN_NAME

#define FSDIR_COLUMN_NAME   0 /* Name of the file */

Definition at line 8057 of file shell.c.

◆ FSDIR_COLUMN_PATH

#define FSDIR_COLUMN_PATH   4 /* Path to top of search */

Definition at line 8061 of file shell.c.

◆ FSDIR_SCHEMA

#define FSDIR_SCHEMA   "(name,mode,mtime,data,path HIDDEN,dir HIDDEN)"

Definition at line 8056 of file shell.c.

◆ GETPID

#define GETPID   getpid

Definition at line 137 of file shell.c.

◆ HAS_TIMER

#define HAS_TIMER   1

Definition at line 718 of file shell.c.

◆ IDX_HASH_SIZE

#define IDX_HASH_SIZE   1023

Definition at line 12891 of file shell.c.

◆ IS_B85

#define IS_B85 ( c)
Value:
(B85_CLASS(c) & 1)

Definition at line 5523 of file shell.c.

◆ IS_BX_DIGIT

#define IS_BX_DIGIT ( bdp)
Value:
(((u8)(bdp))<0x80)

Definition at line 5197 of file shell.c.

◆ IS_BX_PAD

#define IS_BX_PAD ( bdp)
Value:
((bdp)==PC)
#define PC
Definition shell.c:5162

Definition at line 5199 of file shell.c.

◆ IS_BX_WS

#define IS_BX_WS ( bdp)
Value:
((bdp)==WS)
#define WS
Definition shell.c:5163

Definition at line 5198 of file shell.c.

◆ IsAlnum

#define IsAlnum ( X)
Value:
isalnum((unsigned char)X)

Definition at line 239 of file shell.c.

◆ IsAlpha

#define IsAlpha ( X)
Value:
isalpha((unsigned char)X)

Definition at line 240 of file shell.c.

◆ IsDigit

#define IsDigit ( X)
Value:
isdigit((unsigned char)X)

Definition at line 237 of file shell.c.

◆ IsSpace

#define IsSpace ( X)
Value:
isspace((unsigned char)X)

Definition at line 236 of file shell.c.

◆ LARGEST_INT64

#define LARGEST_INT64   (0xffffffff|(((sqlite3_int64)0x7fffffff)<<32))

Definition at line 6539 of file shell.c.

◆ LARGEST_UINT64

#define LARGEST_UINT64   (0xffffffff|(((sqlite3_uint64)0xffffffff)<<32))

Definition at line 6540 of file shell.c.

◆ MAX_INPUT_NESTING

#define MAX_INPUT_NESTING   25

Definition at line 21880 of file shell.c.

◆ MODE_Ascii

#define MODE_Ascii   10 /* Use ASCII unit and record separators (0x1F/0x1E) */

Definition at line 21827 of file shell.c.

◆ MODE_Box

#define MODE_Box   16 /* Unicode box-drawing characters */

Definition at line 21833 of file shell.c.

◆ MODE_Column

#define MODE_Column   1 /* One record per line in neat columns */

Definition at line 21818 of file shell.c.

◆ MODE_Count

#define MODE_Count   17 /* Output only a count of the rows of output */

Definition at line 21834 of file shell.c.

◆ MODE_Csv

#define MODE_Csv   8 /* Quote strings, numbers are plain */

Definition at line 21825 of file shell.c.

◆ MODE_EQP

#define MODE_EQP   12 /* Converts EXPLAIN QUERY PLAN output into a graph */

Definition at line 21829 of file shell.c.

◆ MODE_Explain

#define MODE_Explain   9 /* Like MODE_Column, but do not truncate data */

Definition at line 21826 of file shell.c.

◆ MODE_Html

#define MODE_Html   4 /* Generate an XHTML table */

Definition at line 21821 of file shell.c.

◆ MODE_Insert

#define MODE_Insert   5 /* Generate SQL "insert" statements */

Definition at line 21822 of file shell.c.

◆ MODE_Json

#define MODE_Json   13 /* Output JSON */

Definition at line 21830 of file shell.c.

◆ MODE_Line

#define MODE_Line   0 /* One column per line. Blank line between records */

Definition at line 21817 of file shell.c.

◆ MODE_List

#define MODE_List   2 /* One record per line with a separator */

Definition at line 21819 of file shell.c.

◆ MODE_Markdown

#define MODE_Markdown   14 /* Markdown formatting */

Definition at line 21831 of file shell.c.

◆ MODE_Off

#define MODE_Off   18 /* No query output shown */

Definition at line 21835 of file shell.c.

◆ MODE_Pretty

#define MODE_Pretty   11 /* Pretty-print schemas */

Definition at line 21828 of file shell.c.

◆ MODE_Quote

#define MODE_Quote   6 /* Quote values as for SQL */

Definition at line 21823 of file shell.c.

◆ MODE_ScanExp

#define MODE_ScanExp   19 /* Like MODE_Explain, but for ".scanstats vm" */

Definition at line 21836 of file shell.c.

◆ MODE_Semi

#define MODE_Semi   3 /* Same as MODE_List but append ";" to each line */

Definition at line 21820 of file shell.c.

◆ MODE_Table

#define MODE_Table   15 /* MySQL-style table formatting */

Definition at line 21832 of file shell.c.

◆ MODE_Tcl

#define MODE_Tcl   7 /* Generate ANSI-C or TCL quoted elements */

Definition at line 21824 of file shell.c.

◆ MODE_Www

#define MODE_Www   20 /* Full web-page output */

Definition at line 21837 of file shell.c.

◆ ND

#define ND   0x82 /* Not above or digit-value */

Definition at line 5164 of file shell.c.

◆ NEVER

#define NEVER ( X)
Value:
((X)?(assert(0),1):0)

Definition at line 12782 of file shell.c.

◆ OMIT_BASE85_CHECKER

#define OMIT_BASE85_CHECKER

Definition at line 5393 of file shell.c.

◆ OPEN_DB_KEEPALIVE

#define OPEN_DB_KEEPALIVE   0x001 /* Return after error if true */

Definition at line 25968 of file shell.c.

◆ OPEN_DB_ZIPFILE

#define OPEN_DB_ZIPFILE   0x002 /* Open as ZIP if name matches *.zip */

Definition at line 25969 of file shell.c.

◆ ORIGFILE

#define ORIGFILE ( p)
Value:

Definition at line 9620 of file shell.c.

◆ ORIGVFS

#define ORIGVFS ( p)
Value:
((sqlite3_vfs*)((p)->pAppData))

Definition at line 9619 of file shell.c.

◆ PAD_CHAR

#define PAD_CHAR   '='

Definition at line 5165 of file shell.c.

◆ PC

#define PC   0x80 /* pad character */

Definition at line 5162 of file shell.c.

◆ PROMPT_LEN_MAX

#define PROMPT_LEN_MAX   128

Definition at line 856 of file shell.c.

◆ QSS_INPLAIN

#define QSS_INPLAIN ( qss)
Value:
@ QSS_Start
Definition shell.c:32452
@ QSS_CharMask
Definition shell.c:32451

Definition at line 32455 of file shell.c.

◆ QSS_PLAINDARK

#define QSS_PLAINDARK ( qss)
Value:
@ QSS_HasDark
Definition shell.c:32450
@ QSS_EndingSemi
Definition shell.c:32450

Definition at line 32457 of file shell.c.

◆ QSS_PLAINWHITE

#define QSS_PLAINWHITE ( qss)
Value:

Definition at line 32456 of file shell.c.

◆ QSS_SEMITERM

#define QSS_SEMITERM ( qss)
Value:

Definition at line 32458 of file shell.c.

◆ QSS_SETV

#define QSS_SETV ( qss,
newst )
Value:
((newst) | ((qss) & QSS_ScanMask))
@ QSS_ScanMask
Definition shell.c:32451

Definition at line 32454 of file shell.c.

◆ R1

#define R1 ( v,
w,
x,
y,
z,
i )
Value:
z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=ror(w,2);
unsigned char w
Definition shell.c:1011
#define blk(i)
Definition shell.c:3237

Definition at line 3250 of file shell.c.

◆ R2

#define R2 ( v,
w,
x,
y,
z,
i )
Value:
z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=ror(w,2);

Definition at line 3252 of file shell.c.

◆ R3

#define R3 ( v,
w,
x,
y,
z,
i )
Value:
z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=ror(w,2);

Definition at line 3254 of file shell.c.

◆ R4

#define R4 ( v,
w,
x,
y,
z,
i )
Value:
z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=ror(w,2);

Definition at line 3256 of file shell.c.

◆ Rb0

#define Rb0 ( v,
w,
x,
y,
z,
i )
Value:
z+=((w&(x^y))^y)+blk0be(i)+0x5A827999+rol(v,5);w=ror(w,2);
#define blk0be(i)
Definition shell.c:3236

Definition at line 3248 of file shell.c.

◆ re_compile

#define re_compile   sqlite3re_compile

Definition at line 7119 of file shell.c.

◆ RE_EOF

#define RE_EOF   0 /* End of input */

Definition at line 7123 of file shell.c.

◆ re_free

#define re_free   sqlite3re_free

Definition at line 7120 of file shell.c.

◆ re_match

#define re_match   sqlite3re_match

Definition at line 7118 of file shell.c.

◆ RE_OP_ACCEPT

#define RE_OP_ACCEPT   6 /* Halt and indicate a successful match */

Definition at line 7134 of file shell.c.

◆ RE_OP_ANY

#define RE_OP_ANY   2 /* Match any one character. (Implements ".") */

Definition at line 7130 of file shell.c.

◆ RE_OP_ANYSTAR

#define RE_OP_ANYSTAR   3 /* Special optimized version of .* */

Definition at line 7131 of file shell.c.

◆ RE_OP_ATSTART

#define RE_OP_ATSTART   18 /* Currently at the start of the string */

Definition at line 7146 of file shell.c.

◆ RE_OP_BOUNDARY

#define RE_OP_BOUNDARY   17 /* Boundary between word and non-word */

Definition at line 7145 of file shell.c.

◆ RE_OP_CC_EXC

#define RE_OP_CC_EXC   8 /* Beginning of a [^...] character class */

Definition at line 7136 of file shell.c.

◆ RE_OP_CC_INC

#define RE_OP_CC_INC   7 /* Beginning of a [...] character class */

Definition at line 7135 of file shell.c.

◆ RE_OP_CC_RANGE

#define RE_OP_CC_RANGE   10 /* Range of values in a character class */

Definition at line 7138 of file shell.c.

◆ RE_OP_CC_VALUE

#define RE_OP_CC_VALUE   9 /* Single value in a character class */

Definition at line 7137 of file shell.c.

◆ RE_OP_DIGIT

#define RE_OP_DIGIT   13 /* digit: [0-9] */

Definition at line 7141 of file shell.c.

◆ RE_OP_FORK

#define RE_OP_FORK   4 /* Continue to both next and opcode at iArg */

Definition at line 7132 of file shell.c.

◆ RE_OP_GOTO

#define RE_OP_GOTO   5 /* Jump to opcode at iArg */

Definition at line 7133 of file shell.c.

◆ RE_OP_MATCH

#define RE_OP_MATCH   1 /* Match the one character in the argument */

Definition at line 7129 of file shell.c.

◆ RE_OP_NOTDIGIT

#define RE_OP_NOTDIGIT   14 /* Not a digit */

Definition at line 7142 of file shell.c.

◆ RE_OP_NOTSPACE

#define RE_OP_NOTSPACE   16 /* Not a digit */

Definition at line 7144 of file shell.c.

◆ RE_OP_NOTWORD

#define RE_OP_NOTWORD   12 /* Not a perl word character */

Definition at line 7140 of file shell.c.

◆ RE_OP_SPACE

#define RE_OP_SPACE   15 /* space: [ \t\n\r\v\f] */

Definition at line 7143 of file shell.c.

◆ RE_OP_WORD

#define RE_OP_WORD   11 /* Perl word character [A-Za-z0-9_] */

Definition at line 7139 of file shell.c.

◆ RE_START

#define RE_START   0xfffffff /* Start of input - larger than an UTF-8 */

Definition at line 7124 of file shell.c.

◆ Rl0

#define Rl0 ( v,
w,
x,
y,
z,
i )
Value:
z+=((w&(x^y))^y)+blk0le(i)+0x5A827999+rol(v,5);w=ror(w,2);
#define blk0le(i)
Definition shell.c:3234

Definition at line 3246 of file shell.c.

◆ rol

#define rol ( x,
k )
Value:
SHA_ROT(x,k,32-(k))
#define SHA_ROT(x, l, r)
Definition shell.c:3230

Definition at line 3231 of file shell.c.

◆ ROL64

#define ROL64 ( a,
x )
Value:
((a<<x)|(a>>(64-x)))
#define a

◆ ror

#define ror ( x,
k )
Value:
SHA_ROT(x,32-(k),k)

Definition at line 3232 of file shell.c.

◆ SCAN_TRACKER_REFTYPE

#define SCAN_TRACKER_REFTYPE   t_DynaPromptRef

Definition at line 910 of file shell.c.

◆ SEP_Column

#define SEP_Column   "|"

Definition at line 21867 of file shell.c.

◆ SEP_Comma

#define SEP_Comma   ","

Definition at line 21871 of file shell.c.

◆ SEP_CrLf

#define SEP_CrLf   "\r\n"

Definition at line 21872 of file shell.c.

◆ SEP_Record

#define SEP_Record   "\x1E"

Definition at line 21874 of file shell.c.

◆ SEP_Row

#define SEP_Row   "\n"

Definition at line 21868 of file shell.c.

◆ SEP_Space

#define SEP_Space   " "

Definition at line 21870 of file shell.c.

◆ SEP_Tab

#define SEP_Tab   "\t"

Definition at line 21869 of file shell.c.

◆ SEP_Unit

#define SEP_Unit   "\x1F"

Definition at line 21873 of file shell.c.

◆ SERIES_COLUMN_ROWID

#define SERIES_COLUMN_ROWID   (-1)

◆ SERIES_COLUMN_START

#define SERIES_COLUMN_START   1

◆ SERIES_COLUMN_STEP

#define SERIES_COLUMN_STEP   3

◆ SERIES_COLUMN_STOP

#define SERIES_COLUMN_STOP   2

◆ SERIES_COLUMN_VALUE

#define SERIES_COLUMN_VALUE   0

◆ session_close_all

#define session_close_all ( X,
Y )

Definition at line 25760 of file shell.c.

◆ SHA3_BYTEORDER

#define SHA3_BYTEORDER   0

Definition at line 2464 of file shell.c.

◆ SHA_ROT

#define SHA_ROT ( x,
l,
r )
Value:
((x) << (l) | (x) >> (r))

Definition at line 3230 of file shell.c.

◆ SHELL_ESC_ASCII

#define SHELL_ESC_ASCII   0 /* Substitute ^Y for X where Y=X+0x40 */

Definition at line 21786 of file shell.c.

◆ SHELL_ESC_OFF

#define SHELL_ESC_OFF   2 /* Send characters verbatim */

Definition at line 21788 of file shell.c.

◆ SHELL_ESC_SYMBOL

#define SHELL_ESC_SYMBOL   1 /* Substitute U+2400 graphics */

Definition at line 21787 of file shell.c.

◆ SHELL_OPEN_APPENDVFS

#define SHELL_OPEN_APPENDVFS   2 /* Use appendvfs */

Definition at line 21766 of file shell.c.

◆ SHELL_OPEN_DESERIALIZE

#define SHELL_OPEN_DESERIALIZE   5 /* Open using sqlite3_deserialize() */

Definition at line 21769 of file shell.c.

◆ SHELL_OPEN_HEXDB

#define SHELL_OPEN_HEXDB   6 /* Use "dbtotxt" output as data source */

Definition at line 21770 of file shell.c.

◆ SHELL_OPEN_NORMAL

#define SHELL_OPEN_NORMAL   1 /* Normal database file */

Definition at line 21765 of file shell.c.

◆ SHELL_OPEN_READONLY

#define SHELL_OPEN_READONLY   4 /* Open a normal database read-only */

Definition at line 21768 of file shell.c.

◆ SHELL_OPEN_UNSPEC

#define SHELL_OPEN_UNSPEC   0 /* No open-mode specified */

Definition at line 21764 of file shell.c.

◆ SHELL_OPEN_ZIPFILE

#define SHELL_OPEN_ZIPFILE   3 /* Use the zipfile virtual table */

Definition at line 21767 of file shell.c.

◆ SHELL_PROGRESS_ONCE

#define SHELL_PROGRESS_ONCE   0x04 /* Cancel the --limit after firing once */

Definition at line 21781 of file shell.c.

◆ SHELL_PROGRESS_QUIET

#define SHELL_PROGRESS_QUIET   0x01 /* Omit announcing every progress callback */

Definition at line 21779 of file shell.c.

◆ SHELL_PROGRESS_RESET

#define SHELL_PROGRESS_RESET
Value:
0x02 /* Reset the count when the progress
** callback limit is reached, and for each
** top-level SQL statement */

Definition at line 21780 of file shell.c.

◆ shell_read_history

#define shell_read_history ( X)

Definition at line 178 of file shell.c.

◆ shell_stifle_history

#define shell_stifle_history ( X)

Definition at line 180 of file shell.c.

◆ SHELL_STRINGIFY

#define SHELL_STRINGIFY ( f)
Value:
#define SHELL_STRINGIFY_(f)
Definition shell.c:46

Definition at line 47 of file shell.c.

◆ SHELL_STRINGIFY_

#define SHELL_STRINGIFY_ ( f)
Value:
#f

Definition at line 46 of file shell.c.

◆ SHELL_TRACE_EXPANDED

#define SHELL_TRACE_EXPANDED   1 /* Show expanded SQL text */

Definition at line 21775 of file shell.c.

◆ SHELL_TRACE_NORMALIZED

#define SHELL_TRACE_NORMALIZED   2 /* Show normalized SQL text */

Definition at line 21776 of file shell.c.

◆ SHELL_TRACE_PLAIN

#define SHELL_TRACE_PLAIN   0 /* Show input SQL text */

Definition at line 21774 of file shell.c.

◆ SHELL_USE_LOCAL_GETLINE

#define SHELL_USE_LOCAL_GETLINE   1

Definition at line 182 of file shell.c.

◆ shell_write_history

#define shell_write_history ( X)

Definition at line 179 of file shell.c.

◆ ShellClearFlag

#define ShellClearFlag ( P,
X )
Value:
((P)->shellFlgs&=(~(X)))

Definition at line 21812 of file shell.c.

◆ ShellHasFlag

#define ShellHasFlag ( P,
X )
Value:
(((P)->shellFlgs & (X))!=0)

Definition at line 21810 of file shell.c.

◆ ShellSetFlag

#define ShellSetFlag ( P,
X )
Value:
((P)->shellFlgs|=(X))

Definition at line 21811 of file shell.c.

◆ SHFLG_Backslash

#define SHFLG_Backslash   0x00000004 /* The --backslash option is used */

Definition at line 21797 of file shell.c.

◆ SHFLG_CountChanges

#define SHFLG_CountChanges   0x00000020 /* .changes setting */

Definition at line 21800 of file shell.c.

◆ SHFLG_DumpDataOnly

#define SHFLG_DumpDataOnly   0x00000100 /* .dump show data only */

Definition at line 21803 of file shell.c.

◆ SHFLG_DumpNoSys

#define SHFLG_DumpNoSys   0x00000200 /* .dump omits system tables */

Definition at line 21804 of file shell.c.

◆ SHFLG_Echo

#define SHFLG_Echo   0x00000040 /* .echo on/off, or --echo setting */

Definition at line 21801 of file shell.c.

◆ SHFLG_HeaderSet

#define SHFLG_HeaderSet   0x00000080 /* showHeader has been specified */

Definition at line 21802 of file shell.c.

◆ SHFLG_Lookaside

#define SHFLG_Lookaside   0x00000002 /* Lookaside memory is used */

Definition at line 21796 of file shell.c.

◆ SHFLG_Newlines

#define SHFLG_Newlines   0x00000010 /* .dump --newline flag */

Definition at line 21799 of file shell.c.

◆ SHFLG_Pagecache

#define SHFLG_Pagecache   0x00000001 /* The --pagecache option is used */

Definition at line 21795 of file shell.c.

◆ SHFLG_PreserveRowid

#define SHFLG_PreserveRowid   0x00000008 /* .dump preserves rowid values */

Definition at line 21798 of file shell.c.

◆ SHFLG_TestingMode

#define SHFLG_TestingMode   0x00000400 /* allow unsafe testing features */

Definition at line 21805 of file shell.c.

◆ SMALLEST_INT64

#define SMALLEST_INT64   (((sqlite3_int64)-1) - LARGEST_INT64)

Definition at line 6541 of file shell.c.

◆ sputz

#define sputz ( fp,
z )
Value:

Definition at line 634 of file shell.c.

◆ sqlite3_base_init [1/2]

#define sqlite3_base_init   sqlite3_base64_init

Definition at line 5092 of file shell.c.

◆ sqlite3_base_init [2/2]

#define sqlite3_base_init   sqlite3_base85_init

Definition at line 5092 of file shell.c.

◆ sqlite3_fgets

#define sqlite3_fgets   fgets

Definition at line 304 of file shell.c.

◆ sqlite3_fopen

#define sqlite3_fopen   fopen

Definition at line 302 of file shell.c.

◆ sqlite3_fprintf

#define sqlite3_fprintf   fprintf

Definition at line 306 of file shell.c.

◆ sqlite3_fputs

#define sqlite3_fputs   fputs

Definition at line 305 of file shell.c.

◆ sqlite3_fsetmode

#define sqlite3_fsetmode ( F,
X )
Value:
/*no-op*/

Definition at line 307 of file shell.c.

◆ sqlite3_popen

#define sqlite3_popen   popen

Definition at line 303 of file shell.c.

◆ SQLITE_EXTENSION_INIT1

#define SQLITE_EXTENSION_INIT1

Definition at line 1706 of file shell.c.

◆ SQLITE_EXTENSION_INIT2

#define SQLITE_EXTENSION_INIT2 ( X)
Value:
(void)(X)

Definition at line 1707 of file shell.c.

◆ SQLITE_INTERNAL_LINKAGE

#define SQLITE_INTERNAL_LINKAGE   static

Definition at line 622 of file shell.c.

◆ SQLITE_OS_WINRT

#define SQLITE_OS_WINRT   0

Definition at line 57 of file shell.c.

◆ SQLITE_SERIES_CONSTRAINT_VERIFY

#define SQLITE_SERIES_CONSTRAINT_VERIFY   0

Definition at line 6567 of file shell.c.

◆ SQLITE_SHELL_HAVE_RECOVER

#define SQLITE_SHELL_HAVE_RECOVER   0

Definition at line 17427 of file shell.c.

◆ SQLITE_SHELL_IS_UTF8

#define SQLITE_SHELL_IS_UTF8   (1)

Definition at line 33199 of file shell.c.

◆ SQLITEEXPERT_H

#define SQLITEEXPERT_H   1

Definition at line 12598 of file shell.c.

◆ STAT_CHR_SRC

#define STAT_CHR_SRC ( mode)
Value:
(S_ISREG(mode)||S_ISFIFO(mode)||S_ISCHR(mode))

◆ STMTRAND_KEY

#define STMTRAND_KEY   (-4418371)

Definition at line 16147 of file shell.c.

◆ STRLEN

#define STRLEN   (int)strlen

Definition at line 12802 of file shell.c.

◆ STRUCT_STAT

#define STRUCT_STAT   struct stat

Definition at line 8030 of file shell.c.

◆ SWAP_DOUBLE

#define SWAP_DOUBLE ( X,
Y )
Value:
{double ttt=(X);(X)=(Y);(Y)=ttt;}

Definition at line 4909 of file shell.c.

◆ ToLower

#define ToLower ( X)
Value:
(char)tolower((unsigned char)X)

Definition at line 238 of file shell.c.

◆ U8_TYPEDEF

#define U8_TYPEDEF

Definition at line 5169 of file shell.c.

◆ UNIQUE_TABLE_NAME

#define UNIQUE_TABLE_NAME   "t592690916721053953805701627921227776"

Definition at line 12809 of file shell.c.

◆ UNUSED_PARAMETER

#define UNUSED_PARAMETER ( x)
Value:
(void)(x)

Definition at line 808 of file shell.c.

◆ VTR_ACCESS

#define VTR_ACCESS   0x00040000

Definition at line 16390 of file shell.c.

◆ VTR_CLOSE

#define VTR_CLOSE   0x00000001

Definition at line 16372 of file shell.c.

◆ VTR_CRL

#define VTR_CRL   0x00000100

Definition at line 16380 of file shell.c.

◆ VTR_CURTIME

#define VTR_CURTIME   0x04000000

Definition at line 16398 of file shell.c.

◆ VTR_DELETE

#define VTR_DELETE   0x00020000

Definition at line 16389 of file shell.c.

◆ VTR_DEVCHAR

#define VTR_DEVCHAR   0x00000800

Definition at line 16383 of file shell.c.

◆ VTR_DLCLOSE

#define VTR_DLCLOSE   0x00800000

Definition at line 16395 of file shell.c.

◆ VTR_DLERR

#define VTR_DLERR   0x00200000

Definition at line 16393 of file shell.c.

◆ VTR_DLOPEN

#define VTR_DLOPEN   0x00100000

Definition at line 16392 of file shell.c.

◆ VTR_DLSYM

#define VTR_DLSYM   0x00400000

Definition at line 16394 of file shell.c.

◆ VTR_FCTRL

#define VTR_FCTRL   0x00000200

Definition at line 16381 of file shell.c.

◆ VTR_FETCH

#define VTR_FETCH   0x10000000 /* Also coverse xUnfetch */

Definition at line 16400 of file shell.c.

◆ VTR_FSIZE

#define VTR_FSIZE   0x00000020

Definition at line 16377 of file shell.c.

◆ VTR_FULLPATH

#define VTR_FULLPATH   0x00080000

Definition at line 16391 of file shell.c.

◆ VTR_LASTERR

#define VTR_LASTERR   0x08000000

Definition at line 16399 of file shell.c.

◆ VTR_LOCK

#define VTR_LOCK   0x00000040

Definition at line 16378 of file shell.c.

◆ VTR_OPEN

#define VTR_OPEN   0x00010000

Definition at line 16388 of file shell.c.

◆ VTR_RAND

#define VTR_RAND   0x01000000

Definition at line 16396 of file shell.c.

◆ VTR_READ

#define VTR_READ   0x00000002

Definition at line 16373 of file shell.c.

◆ VTR_SECSZ

#define VTR_SECSZ   0x00000400

Definition at line 16382 of file shell.c.

◆ VTR_SHMBAR

#define VTR_SHMBAR   0x00004000

Definition at line 16386 of file shell.c.

◆ VTR_SHMLOCK

#define VTR_SHMLOCK   0x00001000

Definition at line 16384 of file shell.c.

◆ VTR_SHMMAP

#define VTR_SHMMAP   0x00002000

Definition at line 16385 of file shell.c.

◆ VTR_SHMUNMAP

#define VTR_SHMUNMAP   0x00008000

Definition at line 16387 of file shell.c.

◆ VTR_SLEEP

#define VTR_SLEEP   0x02000000

Definition at line 16397 of file shell.c.

◆ VTR_SYNC

#define VTR_SYNC   0x00000010

Definition at line 16376 of file shell.c.

◆ VTR_TRUNC

#define VTR_TRUNC   0x00000008

Definition at line 16375 of file shell.c.

◆ VTR_UNLOCK

#define VTR_UNLOCK   0x00000080

Definition at line 16379 of file shell.c.

◆ VTR_WRITE

#define VTR_WRITE   0x00000004

Definition at line 16374 of file shell.c.

◆ WS

#define WS   0x81 /* whitespace */

Definition at line 5163 of file shell.c.

Typedef Documentation

◆ ApndFile

typedef struct ApndFile ApndFile

Definition at line 9614 of file shell.c.

◆ ApndVfs

typedef struct sqlite3_vfs ApndVfs

Definition at line 9613 of file shell.c.

◆ ColModeOpts

typedef struct ColModeOpts ColModeOpts

◆ completion_cursor

typedef struct completion_cursor completion_cursor

Definition at line 9080 of file shell.c.

◆ completion_vtab

typedef typedefSQLITE_EXTENSION_INIT1 struct completion_vtab completion_vtab

Definition at line 9070 of file shell.c.

◆ Decimal

typedef typedefSQLITE_EXTENSION_INIT1 struct Decimal Decimal

Definition at line 3730 of file shell.c.

◆ EQPGraph

typedef struct EQPGraph EQPGraph

Definition at line 21648 of file shell.c.

◆ EQPGraphRow

typedef struct EQPGraphRow EQPGraphRow

Definition at line 21639 of file shell.c.

◆ ExpertCsr

typedef struct ExpertCsr ExpertCsr

Definition at line 13129 of file shell.c.

◆ ExpertInfo

typedef struct ExpertInfo ExpertInfo

Definition at line 21632 of file shell.c.

◆ ExpertVtab

typedef struct ExpertVtab ExpertVtab

Definition at line 13122 of file shell.c.

◆ fsdir_cursor

typedef struct fsdir_cursor fsdir_cursor

Definition at line 8547 of file shell.c.

◆ fsdir_tab

typedef struct fsdir_tab fsdir_tab

Definition at line 8570 of file shell.c.

◆ FsdirLevel

typedef struct FsdirLevel FsdirLevel

Definition at line 8548 of file shell.c.

◆ i64

typedef sqlite3_int64 i64

Definition at line 122 of file shell.c.

◆ IdxColumn

typedef struct IdxColumn IdxColumn

Definition at line 12795 of file shell.c.

◆ IdxConstraint

typedef struct IdxConstraint IdxConstraint

Definition at line 12796 of file shell.c.

◆ IdxHash

typedef struct IdxHash IdxHash

Definition at line 12893 of file shell.c.

◆ IdxHashEntry

typedef struct IdxHashEntry IdxHashEntry

Definition at line 12892 of file shell.c.

◆ IdxScan

typedef struct IdxScan IdxScan

Definition at line 12797 of file shell.c.

◆ IdxStatement

typedef struct IdxStatement IdxStatement

Definition at line 12798 of file shell.c.

◆ IdxTable

typedef struct IdxTable IdxTable

Definition at line 12799 of file shell.c.

◆ IdxWrite

typedef struct IdxWrite IdxWrite

Definition at line 12800 of file shell.c.

◆ ImportCtx

typedef struct ImportCtx ImportCtx

Definition at line 26457 of file shell.c.

◆ Percentile

typedef struct Percentile Percentile

Definition at line 4717 of file shell.c.

◆ PercentileFunc

typedef struct PercentileFunc PercentileFunc

Definition at line 4729 of file shell.c.

◆ ReCompiled

typedef struct ReCompiled ReCompiled

Definition at line 7199 of file shell.c.

◆ ReInput

typedef struct ReInput ReInput

Definition at line 7189 of file shell.c.

◆ ReStateNumber

typedef unsigned short ReStateNumber

Definition at line 7175 of file shell.c.

◆ ReStateSet

typedef struct ReStateSet ReStateSet

◆ SequenceSpec

typedef struct SequenceSpec SequenceSpec

◆ series_cursor

typedef struct series_cursor series_cursor

Definition at line 6427 of file shell.c.

◆ SHA1Context

typedef typedefSQLITE_EXTENSION_INIT1 struct SHA1Context SHA1Context

Definition at line 3223 of file shell.c.

◆ SHA3Context

typedef struct SHA3Context SHA3Context

Definition at line 2472 of file shell.c.

◆ ShellState

typedef struct ShellState ShellState

Definition at line 21668 of file shell.c.

◆ ShellText

typedef struct ShellText ShellText

Definition at line 1460 of file shell.c.

◆ sqlite3_intck

typedef struct sqlite3_intck sqlite3_intck

Definition at line 15063 of file shell.c.

◆ sqlite3expert

typedef struct sqlite3expert sqlite3expert

Definition at line 12601 of file shell.c.

◆ Stmtrand

typedef SQLITE_EXTENSION_INIT1 struct Stmtrand Stmtrand

◆ t_DynaPromptRef

typedef struct DynaPrompt* t_DynaPromptRef

Definition at line 909 of file shell.c.

◆ u16

typedef unsigned short int u16

Definition at line 38 of file shell.c.

◆ u32

typedef unsigned int u32

Definition at line 37 of file shell.c.

◆ u64

Definition at line 123 of file shell.c.

◆ u8

typedef unsigned char u8

Definition at line 124 of file shell.c.

◆ vfstrace_file

typedef struct vfstrace_file vfstrace_file

Definition at line 16361 of file shell.c.

◆ vfstrace_info

typedef struct vfstrace_info vfstrace_info

Definition at line 16347 of file shell.c.

Enumeration Type Documentation

◆ QuickScanState

Enumerator
QSS_HasDark 
QSS_EndingSemi 
QSS_CharMask 
QSS_ScanMask 
QSS_Start 

Definition at line 32449 of file shell.c.

Function Documentation

◆ anyOfInStr()

const char * anyOfInStr ( const char * s,
const char * zAny,
size_t ns )
static

Definition at line 22228 of file shell.c.

◆ apndAccess()

int apndAccess ( sqlite3_vfs * pVfs,
const char * zName,
int flags,
int * pResOut )
static

Definition at line 10109 of file shell.c.

◆ apndCheckReservedLock()

int apndCheckReservedLock ( sqlite3_file * pFile,
int * pResOut )
static

Definition at line 9872 of file shell.c.

◆ apndClose()

int apndClose ( sqlite3_file * pFile)
static

Definition at line 9755 of file shell.c.

◆ apndCurrentTime()

int apndCurrentTime ( sqlite3_vfs * pVfs,
double * pTimeOut )
static

Definition at line 10143 of file shell.c.

◆ apndCurrentTimeInt64()

int apndCurrentTimeInt64 ( sqlite3_vfs * pVfs,
sqlite3_int64 * p )
static

Definition at line 10149 of file shell.c.

◆ apndDelete()

int apndDelete ( sqlite3_vfs * pVfs,
const char * zName,
int syncDir )
static

Definition at line 10102 of file shell.c.

◆ apndDeviceCharacteristics()

int apndDeviceCharacteristics ( sqlite3_file * pFile)
static

Definition at line 9903 of file shell.c.

◆ apndDlClose()

void apndDlClose ( sqlite3_vfs * pVfs,
void * pHandle )
static

Definition at line 10134 of file shell.c.

◆ apndDlError()

void apndDlError ( sqlite3_vfs * pVfs,
int nByte,
char * zErrMsg )
static

Definition at line 10128 of file shell.c.

◆ apndDlOpen()

void * apndDlOpen ( sqlite3_vfs * pVfs,
const char * zFilename )
static

Definition at line 10125 of file shell.c.

◆ apndFetch()

int apndFetch ( sqlite3_file * pFile,
sqlite3_int64 iOfst,
int iAmt,
void ** pp )
static

Definition at line 9939 of file shell.c.

◆ apndFileControl()

int apndFileControl ( sqlite3_file * pFile,
int op,
void * pArg )
static

Definition at line 9880 of file shell.c.

Here is the call graph for this function:

◆ apndFileSize()

int apndFileSize ( sqlite3_file * pFile,
sqlite3_int64 * pSize )
static

Definition at line 9847 of file shell.c.

◆ apndFullPathname()

int apndFullPathname ( sqlite3_vfs * pVfs,
const char * zName,
int nOut,
char * zOut )
static

Definition at line 10117 of file shell.c.

◆ apndGetLastError()

int apndGetLastError ( sqlite3_vfs * pVfs,
int a,
char * b )
static

Definition at line 10146 of file shell.c.

◆ apndGetSystemCall()

sqlite3_syscall_ptr apndGetSystemCall ( sqlite3_vfs * pVfs,
const char * z )
static

Definition at line 10159 of file shell.c.

◆ apndIsAppendvfsDatabase()

int apndIsAppendvfsDatabase ( sqlite3_int64 sz,
sqlite3_file * pFile )
static

Definition at line 9994 of file shell.c.

Referenced by apndIsOrdinaryDatabaseFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apndIsOrdinaryDatabaseFile()

int apndIsOrdinaryDatabaseFile ( sqlite3_int64 sz,
sqlite3_file * pFile )
static

Definition at line 10019 of file shell.c.

Referenced by apndOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apndLock()

int apndLock ( sqlite3_file * pFile,
int eLock )
static

Definition at line 9856 of file shell.c.

◆ apndNextSystemCall()

const char * apndNextSystemCall ( sqlite3_vfs * pVfs,
const char * zName )
static

Definition at line 10165 of file shell.c.

◆ apndOpen()

int apndOpen ( sqlite3_vfs * pApndVfs,
const char * zName,
sqlite3_file * pFile,
int flags,
int * pOutFlags )
static

Definition at line 10035 of file shell.c.

Here is the call graph for this function:

◆ apndRandomness()

int apndRandomness ( sqlite3_vfs * pVfs,
int nByte,
char * zOut )
static

Definition at line 10137 of file shell.c.

◆ apndRead()

int apndRead ( sqlite3_file * pFile,
void * zBuf,
int iAmt,
sqlite3_int64 iOfst )
static

Definition at line 9763 of file shell.c.

◆ apndReadMark()

sqlite3_int64 apndReadMark ( sqlite3_int64 sz,
sqlite3_file * pFile )
static

Definition at line 9969 of file shell.c.

Referenced by apndIsAppendvfsDatabase(), and apndOpen().

Here is the caller graph for this function:

◆ apndSectorSize()

int apndSectorSize ( sqlite3_file * pFile)
static

Definition at line 9895 of file shell.c.

◆ apndSetSystemCall()

int apndSetSystemCall ( sqlite3_vfs * pVfs,
const char * zName,
sqlite3_syscall_ptr pCall )
static

Definition at line 10152 of file shell.c.

◆ apndShmBarrier()

void apndShmBarrier ( sqlite3_file * pFile)
static

Definition at line 9927 of file shell.c.

◆ apndShmLock()

int apndShmLock ( sqlite3_file * pFile,
int offset,
int n,
int flags )
static

Definition at line 9921 of file shell.c.

◆ apndShmMap()

int apndShmMap ( sqlite3_file * pFile,
int iPg,
int pgsz,
int bExtend,
void volatile ** pp )
static

Definition at line 9909 of file shell.c.

◆ apndShmUnmap()

int apndShmUnmap ( sqlite3_file * pFile,
int deleteFlag )
static

Definition at line 9933 of file shell.c.

◆ apndSleep()

int apndSleep ( sqlite3_vfs * pVfs,
int microseconds )
static

Definition at line 10140 of file shell.c.

◆ apndSync()

int apndSync ( sqlite3_file * pFile,
int flags )
static

Definition at line 9838 of file shell.c.

◆ apndTruncate()

int apndTruncate ( sqlite3_file * pFile,
sqlite3_int64 size )
static

Definition at line 9826 of file shell.c.

Here is the call graph for this function:

◆ apndUnfetch()

int apndUnfetch ( sqlite3_file * pFile,
sqlite3_int64 iOfst,
void * p )
static

Definition at line 9954 of file shell.c.

◆ apndUnlock()

int apndUnlock ( sqlite3_file * pFile,
int eLock )
static

Definition at line 9864 of file shell.c.

◆ apndWrite()

int apndWrite ( sqlite3_file * pFile,
const void * zBuf,
int iAmt,
sqlite3_int64 iOfst )
static

Definition at line 9805 of file shell.c.

Here is the call graph for this function:

◆ apndWriteMark()

int apndWriteMark ( ApndFile * paf,
sqlite3_file * pFile,
sqlite_int64 iWriteEnd )
static

Definition at line 9779 of file shell.c.

Referenced by apndTruncate(), and apndWrite().

Here is the caller graph for this function:

◆ appendText()

void appendText ( ShellText * p,
const char * zAppend,
char quote )
static

Definition at line 1486 of file shell.c.

Referenced by captureOutputCallback(), do_meta_command(), dump_callback(), and shellFakeSchema().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ascii_read_one_field()

char *SQLITE_CDECL ascii_read_one_field ( ImportCtx * p)
static

Definition at line 26597 of file shell.c.

◆ base64()

void base64 ( sqlite3_context * context,
int na,
sqlite3_value * av[] )
static

Definition at line 5302 of file shell.c.

Referenced by sqlite3_base_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ base85()

void base85 ( sqlite3_context * context,
int na,
sqlite3_value * av[] )
static

Definition at line 5682 of file shell.c.

Here is the call graph for this function:

◆ beginTimer()

void beginTimer ( void )
static

Definition at line 688 of file shell.c.

◆ bind_prepared_stmt()

void bind_prepared_stmt ( ShellState * pArg,
sqlite3_stmt * pStmt )
static

Definition at line 24060 of file shell.c.

Here is the call graph for this function:

◆ bind_table_init()

void bind_table_init ( ShellState * p)
static

Definition at line 24031 of file shell.c.

Here is the call graph for this function:

◆ booleanValue()

int booleanValue ( const char * zArg)
static

Definition at line 26322 of file shell.c.

Here is the call graph for this function:

◆ callback()

int callback ( void * pArg,
int nArg,
char ** azArg,
char ** azCol )
static

Definition at line 23306 of file shell.c.

◆ captureOutputCallback()

int captureOutputCallback ( void * pArg,
int nArg,
char ** azArg,
char ** az )
static

Definition at line 23315 of file shell.c.

Here is the call graph for this function:

◆ clearTempFile()

void clearTempFile ( ShellState * p)
static

Definition at line 27273 of file shell.c.

Here is the call graph for this function:

◆ cli_strcmp()

int cli_strcmp ( const char * a,
const char * b )
static

Definition at line 640 of file shell.c.

Referenced by do_meta_command(), dump_callback(), main(), optionMatch(), output_file_open(), showHelp(), and str_in_array().

Here is the caller graph for this function:

◆ cli_strncmp()

int cli_strncmp ( const char * a,
const char * b,
size_t n )
static

Definition at line 645 of file shell.c.

Referenced by do_meta_command(), dump_callback(), expertDotCommand(), main(), readHexDb(), runOneSqlLine(), and shellAddSchemaName().

Here is the caller graph for this function:

◆ cli_wcwidth()

int cli_wcwidth ( int c)

Definition at line 1088 of file shell.c.

Referenced by translateForDisplayAndDup(), and utf8_width_print().

Here is the caller graph for this function:

◆ close_db()

void close_db ( sqlite3 * db)

Definition at line 26160 of file shell.c.

Here is the call graph for this function:

◆ cmdline_option_value()

char * cmdline_option_value ( int argc,
char ** argv,
int i )
static

Definition at line 33172 of file shell.c.

◆ completionBestIndex()

int completionBestIndex ( sqlite3_vtab * tab,
sqlite3_index_info * pIdxInfo )
static

Definition at line 9427 of file shell.c.

◆ completionClose()

int completionClose ( sqlite3_vtab_cursor * cur)
static

Definition at line 9196 of file shell.c.

Here is the call graph for this function:

◆ completionColumn()

int completionColumn ( sqlite3_vtab_cursor * cur,
sqlite3_context * ctx,
int i )
static

Definition at line 9324 of file shell.c.

Here is the call graph for this function:

◆ completionConnect()

int completionConnect ( sqlite3 * db,
void * pAux,
int argc,
const char *const * argv,
sqlite3_vtab ** ppVtab,
char ** pzErr )
static

Definition at line 9123 of file shell.c.

Here is the call graph for this function:

◆ completionCursorReset()

void completionCursorReset ( completion_cursor * pCur)
static

Definition at line 9186 of file shell.c.

Referenced by completionClose(), and completionFilter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ completionDisconnect()

int completionDisconnect ( sqlite3_vtab * pVtab)
static

Definition at line 9165 of file shell.c.

Here is the call graph for this function:

◆ completionEof()

int completionEof ( sqlite3_vtab_cursor * cur)
static

Definition at line 9365 of file shell.c.

◆ completionFilter()

int completionFilter ( sqlite3_vtab_cursor * pVtabCursor,
int idxNum,
const char * idxStr,
int argc,
sqlite3_value ** argv )
static

Definition at line 9376 of file shell.c.

Here is the call graph for this function:

◆ completionNext()

int completionNext ( sqlite3_vtab_cursor * cur)
static

Definition at line 9216 of file shell.c.

Referenced by completionFilter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ completionOpen()

int completionOpen ( sqlite3_vtab * p,
sqlite3_vtab_cursor ** ppCursor )
static

Definition at line 9173 of file shell.c.

Here is the call graph for this function:

◆ completionRowid()

int completionRowid ( sqlite3_vtab_cursor * cur,
sqlite_int64 * pRowid )
static

Definition at line 9355 of file shell.c.

◆ countNonzeros()

int countNonzeros ( void * pCount,
int nc,
char * azResults[],
char * azColumns[] )
static

Definition at line 13709 of file shell.c.

Referenced by idxCreateFromCons().

Here is the caller graph for this function:

◆ createSelftestTable()

void createSelftestTable ( ShellState * p)
static

Definition at line 23331 of file shell.c.

Here is the call graph for this function:

◆ csv_read_one_field()

char *SQLITE_CDECL csv_read_one_field ( ImportCtx * p)
static

Definition at line 26507 of file shell.c.

◆ ctxErrorMsg()

void ctxErrorMsg ( sqlite3_context * ctx,
const char * zFmt,
... )
static

Definition at line 8168 of file shell.c.

Referenced by writefileFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ db_int()

int db_int ( sqlite3 * db,
const char * zSql,
... )
static

Definition at line 26912 of file shell.c.

Here is the call graph for this function:

◆ decimal_add()

void decimal_add ( Decimal * pA,
Decimal * pB )
static

Definition at line 4140 of file shell.c.

Referenced by decimalAddFunc(), decimalSubFunc(), decimalSumInverse(), and decimalSumStep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimal_clear()

void decimal_clear ( Decimal * p)
static

Definition at line 3744 of file shell.c.

Referenced by decimal_free(), and decimalSumFinalize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimal_cmp()

int decimal_cmp ( const Decimal * pA,
const Decimal * pB )
static

Definition at line 4055 of file shell.c.

Referenced by decimalCmpFunc(), and decimalCollFunc().

Here is the caller graph for this function:

◆ decimal_expand()

void decimal_expand ( Decimal * p,
int nDigit,
int nFrac )
static

Definition at line 4111 of file shell.c.

Referenced by decimal_add().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimal_free()

void decimal_free ( Decimal * p)
static

Definition at line 3751 of file shell.c.

Referenced by decimalAddFunc(), decimalCmpFunc(), decimalCollFunc(), decimalFromDouble(), decimalFunc(), decimalMulFunc(), decimalPow2(), decimalPow2Func(), decimalSubFunc(), decimalSumInverse(), and decimalSumStep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimal_new()

Decimal * decimal_new ( sqlite3_context * pCtx,
sqlite3_value * pIn,
int bTextOnly )
static

Definition at line 3877 of file shell.c.

Referenced by decimalAddFunc(), decimalCmpFunc(), decimalFunc(), decimalMulFunc(), decimalSubFunc(), decimalSumInverse(), and decimalSumStep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimal_result()

void decimal_result ( sqlite3_context * pCtx,
Decimal * p )
static

Definition at line 3933 of file shell.c.

Referenced by decimalAddFunc(), decimalFunc(), decimalMulFunc(), decimalSubFunc(), decimalSumFinalize(), and decimalSumValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimal_result_sci()

void decimal_result_sci ( sqlite3_context * pCtx,
Decimal * p )
static

Definition at line 3988 of file shell.c.

Referenced by decimalFunc(), and decimalPow2Func().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalAddFunc()

void decimalAddFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 4402 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalCmpFunc()

void decimalCmpFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 4085 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalCollFunc()

int decimalCollFunc ( void * notUsed,
int nKey1,
const void * pKey1,
int nKey2,
const void * pKey2 )
static

Definition at line 4374 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalFromDouble()

Decimal * decimalFromDouble ( double r)
static

Definition at line 4296 of file shell.c.

Referenced by decimal_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalFunc()

void decimalFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 4354 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalMul()

void decimalMul ( Decimal * pA,
Decimal * pB )
static

Definition at line 4213 of file shell.c.

Referenced by decimalFromDouble(), decimalMulFunc(), and decimalPow2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalMulFunc()

void decimalMulFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 4496 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalNewFromText()

Decimal * decimalNewFromText ( const char * zIn,
int n )
static

Definition at line 3762 of file shell.c.

Referenced by decimal_new(), decimalCollFunc(), decimalFromDouble(), and decimalPow2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalPow2()

Decimal * decimalPow2 ( int N)
static

Definition at line 4261 of file shell.c.

Referenced by decimalFromDouble(), and decimalPow2Func().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalPow2Func()

void decimalPow2Func ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 4525 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalSubFunc()

void decimalSubFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 4415 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalSumFinalize()

void decimalSumFinalize ( sqlite3_context * context)
static

Definition at line 4484 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalSumInverse()

void decimalSumInverse ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 4463 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalSumStep()

void decimalSumStep ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 4437 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decimalSumValue()

void decimalSumValue ( sqlite3_context * context)
static

Definition at line 4479 of file shell.c.

Referenced by sqlite3_decimal_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decodeUtf8()

int decodeUtf8 ( const unsigned char * z,
int * pU )
static

Definition at line 1118 of file shell.c.

Referenced by translateForDisplayAndDup(), and utf8_width_print().

Here is the caller graph for this function:

◆ deduceDatabaseType()

int deduceDatabaseType ( const char * zName,
int dfltZip )

Definition at line 25787 of file shell.c.

Here is the call graph for this function:

◆ disable_debug_trace_modes()

void disable_debug_trace_modes ( void )
static

Definition at line 24018 of file shell.c.

◆ display_scanstats()

void display_scanstats ( sqlite3 * db,
ShellState * pArg )
static

Definition at line 23970 of file shell.c.

◆ display_stats()

int display_stats ( sqlite3 * db,
ShellState * pArg,
int bReset )
static

Definition at line 23596 of file shell.c.

Here is the call graph for this function:

◆ displayStatLine()

void displayStatLine ( FILE * out,
char * zLabel,
char * zFormat,
int iStatusCtrl,
int bReset )
static

Definition at line 23570 of file shell.c.

Here is the call graph for this function:

◆ do_meta_command()

int do_meta_command ( char * zLine,
ShellState * p )
static

Definition at line 28802 of file shell.c.

Here is the call graph for this function:

◆ doAutoDetectRestore()

int doAutoDetectRestore ( ShellState * p,
const char * zSql )
static

Definition at line 32600 of file shell.c.

Here is the call graph for this function:

◆ dummyCompare()

int dummyCompare ( void * up1,
int up2,
const void * up3,
int up4,
const void * up5 )

Definition at line 14660 of file shell.c.

Referenced by useDummyCS().

Here is the caller graph for this function:

◆ dummyUDF()

void dummyUDF ( sqlite3_context * up1,
int up2,
sqlite3_value ** up3 )

Definition at line 14680 of file shell.c.

Referenced by registerUDFs().

Here is the caller graph for this function:

◆ dummyUDFvalue()

void dummyUDFvalue ( sqlite3_context * up1)

Definition at line 14686 of file shell.c.

Referenced by registerUDFs().

Here is the caller graph for this function:

◆ dump_callback()

int dump_callback ( void * pArg,
int nArg,
char ** azArg,
char ** azNotUsed )
static

Definition at line 25115 of file shell.c.

Here is the call graph for this function:

◆ dynamicContinuePrompt()

char * dynamicContinuePrompt ( void )
static

Definition at line 938 of file shell.c.

Here is the call graph for this function:

◆ echo_group_input()

void echo_group_input ( ShellState * p,
const char * zDo )
static

Definition at line 32719 of file shell.c.

◆ editFunc()

void editFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 21946 of file shell.c.

Here is the call graph for this function:

◆ endTimer()

void endTimer ( FILE * out)
static

Definition at line 704 of file shell.c.

◆ eqp_append()

void eqp_append ( ShellState * p,
int iEqpId,
int p2,
const char * zText )
static

Definition at line 22728 of file shell.c.

Here is the call graph for this function:

◆ eqp_next_row()

EQPGraphRow * eqp_next_row ( ShellState * p,
int iEqpId,
EQPGraphRow * pOld )
static

Definition at line 22766 of file shell.c.

◆ eqp_render()

void eqp_render ( ShellState * p,
i64 nCycle )
static

Definition at line 22795 of file shell.c.

Here is the call graph for this function:

◆ eqp_render_level()

void eqp_render_level ( ShellState * p,
int iEqpId )
static

Definition at line 22775 of file shell.c.

◆ eqp_reset()

void eqp_reset ( ShellState * p)
static

Definition at line 22754 of file shell.c.

Here is the call graph for this function:

◆ escapeOutput()

const char * escapeOutput ( ShellState * p,
const char * zInX,
char ** ppFree )
static

Definition at line 22386 of file shell.c.

Here is the call graph for this function:

◆ exec_prepared_stmt()

void exec_prepared_stmt ( ShellState * pArg,
sqlite3_stmt * pStmt )
static

Definition at line 24605 of file shell.c.

Here is the call graph for this function:

◆ exec_prepared_stmt_columnar()

void exec_prepared_stmt_columnar ( ShellState * p,
sqlite3_stmt * pStmt )
static

Definition at line 24376 of file shell.c.

Here is the call graph for this function:

◆ expertBestIndex()

int expertBestIndex ( sqlite3_vtab * pVtab,
sqlite3_index_info * pIdxInfo )
static

Definition at line 13209 of file shell.c.

Referenced by idxRegisterVtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertClose()

int expertClose ( sqlite3_vtab_cursor * cur)
static

Definition at line 13304 of file shell.c.

Referenced by idxRegisterVtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertColumn()

int expertColumn ( sqlite3_vtab_cursor * cur,
sqlite3_context * ctx,
int i )
static

Definition at line 13353 of file shell.c.

Referenced by idxRegisterVtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertConnect()

int expertConnect ( sqlite3 * db,
void * pAux,
int argc,
const char *const * argv,
sqlite3_vtab ** ppVtab,
char ** pzErr )
static

Definition at line 13167 of file shell.c.

Referenced by idxRegisterVtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertDbContainsObject()

int expertDbContainsObject ( sqlite3 * db,
const char * zTab,
int * pbContains )
static

Definition at line 14158 of file shell.c.

Referenced by idxCreateVtabSchema(), and sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertDequote()

char * expertDequote ( const char * zIn)
static

Definition at line 13135 of file shell.c.

Referenced by expertConnect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertDisconnect()

int expertDisconnect ( sqlite3_vtab * pVtab)
static

Definition at line 13203 of file shell.c.

Referenced by idxRegisterVtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertDotCommand()

int expertDotCommand ( ShellState * pState,
char ** azArg,
int nArg )
static

Definition at line 24763 of file shell.c.

Here is the call graph for this function:

◆ expertEof()

int expertEof ( sqlite3_vtab_cursor * cur)
static

Definition at line 13317 of file shell.c.

Referenced by idxRegisterVtab().

Here is the caller graph for this function:

◆ expertFilter()

int expertFilter ( sqlite3_vtab_cursor * cur,
int idxNum,
const char * idxStr,
int argc,
sqlite3_value ** argv )
static

Definition at line 13366 of file shell.c.

Referenced by idxRegisterVtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertFinish()

int expertFinish ( ShellState * pState,
int bCancel,
char ** pzErr )
static

Definition at line 24717 of file shell.c.

Here is the call graph for this function:

◆ expertHandleSQL()

int expertHandleSQL ( ShellState * pState,
const char * zSql,
char ** pzErr )
static

Definition at line 24697 of file shell.c.

Here is the call graph for this function:

◆ expertNext()

int expertNext ( sqlite3_vtab_cursor * cur)
static

Definition at line 13325 of file shell.c.

Referenced by expertFilter(), and idxRegisterVtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertOpen()

int expertOpen ( sqlite3_vtab * pVTab,
sqlite3_vtab_cursor ** ppCursor )
static

Definition at line 13292 of file shell.c.

Referenced by idxRegisterVtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertRowid()

int expertRowid ( sqlite3_vtab_cursor * cur,
sqlite_int64 * pRowid )
static

Definition at line 13344 of file shell.c.

Referenced by idxRegisterVtab().

Here is the caller graph for this function:

◆ expertSchemaSql()

int expertSchemaSql ( sqlite3 * db,
const char * zSql,
char ** pzErr )
static

Definition at line 14193 of file shell.c.

Referenced by idxCreateVtabSchema(), and sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expertUpdate()

int expertUpdate ( sqlite3_vtab * pVtab,
int nData,
sqlite3_value ** azData,
sqlite_int64 * pRowid )
static

Definition at line 13276 of file shell.c.

Referenced by idxRegisterVtab().

Here is the caller graph for this function:

◆ explain_data_delete()

void explain_data_delete ( ShellState * p)
static

Definition at line 23958 of file shell.c.

Here is the call graph for this function:

◆ explain_data_prepare()

void explain_data_prepare ( ShellState * p,
sqlite3_stmt * pSql )
static

Definition at line 23896 of file shell.c.

Here is the call graph for this function:

◆ failIfSafeMode()

void failIfSafeMode ( ShellState * p,
const char * zErrMsg,
... )
static

Definition at line 21913 of file shell.c.

Here is the call graph for this function:

◆ faultsim_callback()

int faultsim_callback ( int iArg)
static

Definition at line 28772 of file shell.c.

◆ fileLinkStat()

int fileLinkStat ( const char * zPath,
STRUCT_STAT * pStatBuf )
static

Definition at line 8278 of file shell.c.

Referenced by fsdirFilter(), and fsdirNext().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fileStat()

int fileStat ( const char * zPath,
STRUCT_STAT * pStatBuf )
static

Definition at line 8254 of file shell.c.

Referenced by fileLinkStat(), makeDirectory(), and writeFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fileTail()

const char * fileTail ( const char * z)
static

Definition at line 16448 of file shell.c.

Referenced by vfstraceOpen().

Here is the caller graph for this function:

◆ find_home_dir()

char * find_home_dir ( int clearFlag)
static

Definition at line 32882 of file shell.c.

Here is the call graph for this function:

◆ find_xdg_config()

char * find_xdg_config ( void )
static

Definition at line 32957 of file shell.c.

◆ freeColumnList()

void freeColumnList ( char ** azCol)
static

Definition at line 24979 of file shell.c.

Here is the call graph for this function:

◆ freeText()

void freeText ( ShellText * p)
static

Definition at line 1473 of file shell.c.

Referenced by do_meta_command(), dump_callback(), and shellFakeSchema().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromBase64()

u8 * fromBase64 ( char * pIn,
int ncIn,
u8 * pOut )
static

Definition at line 5251 of file shell.c.

Referenced by base64().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromBase85()

u8 * fromBase85 ( char * pIn,
int ncIn,
u8 * pOut )
static

Definition at line 5605 of file shell.c.

Referenced by base85().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirBestIndex()

int fsdirBestIndex ( sqlite3_vtab * tab,
sqlite3_index_info * pIdxInfo )
static

Definition at line 8878 of file shell.c.

Referenced by fsdirRegister().

Here is the caller graph for this function:

◆ fsdirClose()

int fsdirClose ( sqlite3_vtab_cursor * cur)
static

Definition at line 8649 of file shell.c.

Referenced by fsdirRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirColumn()

int fsdirColumn ( sqlite3_vtab_cursor * cur,
sqlite3_context * ctx,
int i )
static

Definition at line 8736 of file shell.c.

Referenced by fsdirRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirConnect()

int fsdirConnect ( sqlite3 * db,
void * pAux,
int argc,
const char *const * argv,
sqlite3_vtab ** ppVtab,
char ** pzErr )
static

Definition at line 8578 of file shell.c.

Referenced by fsdirRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirDisconnect()

int fsdirDisconnect ( sqlite3_vtab * pVtab)
static

Definition at line 8605 of file shell.c.

Referenced by fsdirRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirEof()

int fsdirEof ( sqlite3_vtab_cursor * cur)
static

Definition at line 8811 of file shell.c.

Referenced by fsdirRegister().

Here is the caller graph for this function:

◆ fsdirFilter()

int fsdirFilter ( sqlite3_vtab_cursor * cur,
int idxNum,
const char * idxStr,
int argc,
sqlite3_value ** argv )
static

Definition at line 8822 of file shell.c.

Referenced by fsdirRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirNext()

int fsdirNext ( sqlite3_vtab_cursor * cur)
static

Definition at line 8672 of file shell.c.

Referenced by fsdirRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirOpen()

int fsdirOpen ( sqlite3_vtab * p,
sqlite3_vtab_cursor ** ppCursor )
static

Definition at line 8613 of file shell.c.

Referenced by fsdirRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirRegister()

int fsdirRegister ( sqlite3 * db)
static

Definition at line 8944 of file shell.c.

Referenced by sqlite3_fileio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirResetCursor()

void fsdirResetCursor ( fsdir_cursor * pCur)
static

Definition at line 8628 of file shell.c.

Referenced by fsdirClose(), and fsdirFilter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fsdirRowid()

int fsdirRowid ( sqlite3_vtab_cursor * cur,
sqlite_int64 * pRowid )
static

Definition at line 8801 of file shell.c.

Referenced by fsdirRegister().

Here is the caller graph for this function:

◆ fsdirSetErrmsg()

void fsdirSetErrmsg ( fsdir_cursor * pCur,
const char * zFmt,
... )
static

Definition at line 8661 of file shell.c.

Referenced by fsdirFilter(), and fsdirNext().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ genSeqMember()

SQLITE_EXTENSION_INIT1 sqlite3_int64 genSeqMember ( sqlite3_int64 smBase,
sqlite3_int64 smStep,
sqlite3_uint64 ix )
static

Definition at line 6304 of file shell.c.

Referenced by setupSequence().

Here is the caller graph for this function:

◆ hash_finish()

void hash_finish ( SHA1Context * p,
char * zOut,
int bAsBinary )
static

Definition at line 3385 of file shell.c.

Referenced by sha1Func(), and sha1QueryFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash_init()

void hash_init ( SHA1Context * p)
static

Definition at line 3329 of file shell.c.

Referenced by sha1Func(), and sha1QueryFunc().

Here is the caller graph for this function:

◆ hash_step()

void hash_step ( SHA1Context * p,
const unsigned char * data,
unsigned int len )
static

Definition at line 3340 of file shell.c.

Referenced by hash_finish(), hash_step_vformat(), sha1Func(), and sha1QueryFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash_step_vformat()

void hash_step_vformat ( SHA1Context * p,
const char * zFormat,
... )
static

Definition at line 3366 of file shell.c.

Referenced by sha1QueryFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hexDigitValue()

int hexDigitValue ( char c)
static

Definition at line 1404 of file shell.c.

Referenced by booleanValue(), integerValue(), and resolve_backslashes().

Here is the caller graph for this function:

◆ idxAppendColDefn()

char * idxAppendColDefn ( int * pRc,
char * zIn,
IdxTable * pTab,
IdxConstraint * pCons )
static

Definition at line 13599 of file shell.c.

Referenced by idxCreateFromCons().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxAppendText()

char * idxAppendText ( int * pRc,
char * zIn,
const char * zFmt,
... )
static

Definition at line 13545 of file shell.c.

Referenced by idxAppendColDefn(), idxCreateVtabSchema(), idxFindIndexes(), idxPopulateOneStat1(), idxProcessOneTrigger(), and sqlite3_expert_analyze().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxAuthCallback()

int idxAuthCallback ( void * pCtx,
int eOp,
const char * z3,
const char * z4,
const char * zDb,
const char * zTrigger )
static

Definition at line 14012 of file shell.c.

Referenced by sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxBuildSampleTable()

int idxBuildSampleTable ( sqlite3expert * p,
const char * zTab )
static

Definition at line 14532 of file shell.c.

Referenced by idxPopulateStat1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxConstraintFree()

void idxConstraintFree ( IdxConstraint * pConstraint)
static

Definition at line 13870 of file shell.c.

Referenced by idxScanFree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxCreateCandidates()

int idxCreateCandidates ( sqlite3expert * p)
static

Definition at line 13853 of file shell.c.

Referenced by sqlite3_expert_analyze().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxCreateFromCons()

int idxCreateFromCons ( sqlite3expert * p,
IdxScan * pScan,
IdxConstraint * pEq,
IdxConstraint * pTail )
static

Definition at line 13718 of file shell.c.

Referenced by idxCreateFromWhere().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxCreateFromWhere()

int idxCreateFromWhere ( sqlite3expert * p,
IdxScan * pScan,
IdxConstraint * pTail )
static

Definition at line 13814 of file shell.c.

Referenced by idxCreateCandidates().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxCreateVtabSchema()

int idxCreateVtabSchema ( sqlite3expert * p,
char ** pzErrmsg )
static

Definition at line 14211 of file shell.c.

Referenced by sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxDatabaseError()

void idxDatabaseError ( sqlite3 * db,
char ** pzErrmsg )
static

Definition at line 13069 of file shell.c.

Referenced by idxPrepareStmt(), idxProcessOneTrigger(), and sqlite3_expert_sql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxFinalize()

void idxFinalize ( int * pRc,
sqlite3_stmt * pStmt )
static

Definition at line 13433 of file shell.c.

Referenced by idxCreateVtabSchema(), idxFindCompatible(), idxFindIndexes(), idxGetTableInfo(), idxLargestIndex(), idxPopulateOneStat1(), idxPopulateStat1(), idxProcessOneTrigger(), and sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxFindCompatible()

int idxFindCompatible ( int * pRc,
sqlite3 * dbm,
IdxScan * pScan,
IdxConstraint * pEq,
IdxConstraint * pTail )
static

Definition at line 13637 of file shell.c.

Referenced by idxCreateFromCons().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxFindConstraint()

int idxFindConstraint ( IdxConstraint * pList,
IdxConstraint * p )
static

Definition at line 13806 of file shell.c.

Referenced by idxCreateFromWhere().

Here is the caller graph for this function:

◆ idxFindIndexes()

int idxFindIndexes ( sqlite3expert * p,
char ** pzErr )
static

Definition at line 13942 of file shell.c.

Referenced by sqlite3_expert_analyze().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxGetTableInfo()

int idxGetTableInfo ( sqlite3 * db,
const char * zTab,
IdxTable ** ppOut,
char ** pzErrmsg )
static

Definition at line 13448 of file shell.c.

Referenced by idxCreateVtabSchema().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxHashAdd()

int idxHashAdd ( int * pRc,
IdxHash * pHash,
const char * zKey,
const char * zVal )
static

Definition at line 12985 of file shell.c.

Referenced by idxCreateFromCons(), and idxFindIndexes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxHashClear()

void idxHashClear ( IdxHash * pHash)
static

Definition at line 12953 of file shell.c.

Referenced by idxFindIndexes(), and sqlite3_expert_destroy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxHashFind()

IdxHashEntry * idxHashFind ( IdxHash * pHash,
const char * zKey,
int nKey )
static

Definition at line 13022 of file shell.c.

Referenced by idxHashSearch(), and idxPopulateOneStat1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxHashInit()

void idxHashInit ( IdxHash * pHash)
static

Definition at line 12946 of file shell.c.

Referenced by idxFindIndexes().

Here is the caller graph for this function:

◆ idxHashSearch()

const char * idxHashSearch ( IdxHash * pHash,
const char * zKey,
int nKey )
static

Definition at line 13042 of file shell.c.

Referenced by idxFindIndexes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxHashString()

int idxHashString ( const char * z,
int n )
static

Definition at line 12971 of file shell.c.

Referenced by idxHashAdd(), and idxHashFind().

Here is the caller graph for this function:

◆ idxIdentifierRequiresQuotes()

int idxIdentifierRequiresQuotes ( const char * zId)
static

Definition at line 13577 of file shell.c.

Referenced by idxAppendColDefn(), and idxCreateFromCons().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxLargestIndex()

int idxLargestIndex ( sqlite3 * db,
int * pnMax,
char ** pzErr )
static

Definition at line 14405 of file shell.c.

Referenced by idxPopulateStat1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxMalloc()

void * idxMalloc ( int * pRc,
int nByte )
static

Definition at line 12930 of file shell.c.

Referenced by expertBestIndex(), expertConnect(), expertOpen(), idxAuthCallback(), idxGetTableInfo(), idxHashAdd(), idxNewConstraint(), idxPopulateOneStat1(), idxPopulateStat1(), sqlite3_expert_new(), and sqlite3_expert_sql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxNewConstraint()

IdxConstraint * idxNewConstraint ( int * pRc,
const char * zColl )
static

Definition at line 13052 of file shell.c.

Referenced by expertBestIndex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxPopulateOneStat1()

int idxPopulateOneStat1 ( sqlite3expert * p,
sqlite3_stmt * pIndexXInfo,
sqlite3_stmt * pWriteStat,
const char * zTab,
const char * zIdx,
char ** pzErr )
static

Definition at line 14425 of file shell.c.

Referenced by idxPopulateStat1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxPopulateStat1()

int idxPopulateStat1 ( sqlite3expert * p,
char ** pzErr )
static

Definition at line 14556 of file shell.c.

Referenced by sqlite3_expert_analyze().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxPrepareStmt()

int idxPrepareStmt ( sqlite3 * db,
sqlite3_stmt ** ppStmt,
char ** pzErrmsg,
const char * zSql )
static

Definition at line 13079 of file shell.c.

Referenced by idxCreateVtabSchema(), idxLargestIndex(), idxPopulateOneStat1(), idxPopulateStat1(), idxPrintfPrepareStmt(), and sqlite3_expert_sql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxPrintfPrepareStmt()

int idxPrintfPrepareStmt ( sqlite3 * db,
sqlite3_stmt ** ppStmt,
char ** pzErrmsg,
const char * zFmt,
... )
static

Definition at line 13096 of file shell.c.

Referenced by expertFilter(), idxFindCompatible(), idxFindIndexes(), idxGetTableInfo(), idxProcessOneTrigger(), and sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxProcessOneTrigger()

int idxProcessOneTrigger ( sqlite3expert * p,
IdxWrite * pWrite,
char ** pzErr )
static

Definition at line 14050 of file shell.c.

Referenced by idxProcessTriggers().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxProcessTriggers()

int idxProcessTriggers ( sqlite3expert * p,
char ** pzErr )
static

Definition at line 14133 of file shell.c.

Referenced by sqlite3_expert_analyze().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxRegisterVtab()

int idxRegisterVtab ( sqlite3expert * p)
static

Definition at line 13394 of file shell.c.

Referenced by idxCreateVtabSchema().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxRemFunc()

void idxRemFunc ( sqlite3_context * pCtx,
int argc,
sqlite3_value ** argv )
static

Definition at line 14329 of file shell.c.

Referenced by idxPopulateStat1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxSampleFunc()

void idxSampleFunc ( sqlite3_context * pCtx,
int argc,
sqlite3_value ** argv )
static

Definition at line 14288 of file shell.c.

Referenced by idxPopulateStat1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxScanFree()

void idxScanFree ( IdxScan * pScan,
IdxScan * pLast )
static

Definition at line 13884 of file shell.c.

Referenced by sqlite3_expert_destroy(), and sqlite3_expert_sql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxStatementFree()

void idxStatementFree ( IdxStatement * pStatement,
IdxStatement * pLast )
static

Definition at line 13900 of file shell.c.

Referenced by sqlite3_expert_destroy(), and sqlite3_expert_sql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxTableFree()

void idxTableFree ( IdxTable * pTab)
static

Definition at line 13914 of file shell.c.

Referenced by sqlite3_expert_destroy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ idxWriteFree()

void idxWriteFree ( IdxWrite * pTab)
static

Definition at line 13926 of file shell.c.

Referenced by sqlite3_expert_destroy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ieee754func()

SQLITE_EXTENSION_INIT1 void ieee754func ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 5953 of file shell.c.

Referenced by sqlite3_ieee_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ieee754func_from_blob()

void ieee754func_from_blob ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 6068 of file shell.c.

Referenced by sqlite3_ieee_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ieee754func_to_blob()

void ieee754func_to_blob ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 6088 of file shell.c.

Referenced by sqlite3_ieee_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ieee754inc()

void ieee754inc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 6123 of file shell.c.

Referenced by sqlite3_ieee_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ import_append_char()

void import_append_char ( ImportCtx * p,
int c )
static

Definition at line 26485 of file shell.c.

Here is the call graph for this function:

◆ import_cleanup()

void import_cleanup ( ImportCtx * p)
static

Definition at line 26475 of file shell.c.

Here is the call graph for this function:

◆ initText()

void initText ( ShellText * p)
static

Definition at line 1470 of file shell.c.

Referenced by do_meta_command(), dump_callback(), freeText(), and shellFakeSchema().

Here is the caller graph for this function:

◆ intckCheckObjectSql()

char * intckCheckObjectSql ( sqlite3_intck * p,
const char * zObj,
const char * zPrev,
int * pnKeyVal )
static

Definition at line 15673 of file shell.c.

Referenced by sqlite3_intck_step(), and sqlite3_intck_test_sql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckDatabaseCmd()

int intckDatabaseCmd ( ShellState * pState,
i64 nStepPerUnlock )
static

Definition at line 28480 of file shell.c.

Here is the call graph for this function:

◆ intckExec()

void intckExec ( sqlite3_intck * p,
const char * zSql )
static

Definition at line 15305 of file shell.c.

Referenced by intckCheckObjectSql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckFinalize()

void intckFinalize ( sqlite3_intck * p,
sqlite3_stmt * pStmt )
static

Definition at line 15284 of file shell.c.

Referenced by intckCheckObjectSql(), intckExec(), intckFindObject(), intckGetAutoIndex(), intckIsIndex(), intckSaveKey(), sqlite3_intck_step(), and sqlite3_intck_unlock().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckFindObject()

void intckFindObject ( sqlite3_intck * p)
static

Definition at line 15437 of file shell.c.

Referenced by sqlite3_intck_step().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckGetAutoIndex()

int intckGetAutoIndex ( sqlite3_intck * p)
static

Definition at line 15635 of file shell.c.

Referenced by intckCheckObjectSql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckGetToken()

int intckGetToken ( const char * z)
static

Definition at line 15483 of file shell.c.

Referenced by intckParseCreateIndex().

Here is the caller graph for this function:

◆ intckIsIndex()

int intckIsIndex ( sqlite3_intck * p,
const char * zObj )
static

Definition at line 15649 of file shell.c.

Referenced by intckCheckObjectSql().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckIsSpace()

int intckIsSpace ( char c)
static

Definition at line 15510 of file shell.c.

Referenced by intckParseCreateIndex().

Here is the caller graph for this function:

◆ intckMprintf()

char * intckMprintf ( sqlite3_intck * p,
const char * zFmt,
... )
static

Definition at line 15316 of file shell.c.

Referenced by intckCheckObjectSql(), intckFindObject(), intckSaveKey(), and sqlite3_intck_step().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckParseCreateIndex()

const char * intckParseCreateIndex ( const char * z,
int iCol,
int * pnByte )
static

Definition at line 15529 of file shell.c.

Referenced by intckParseCreateIndexFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckParseCreateIndexFunc()

void intckParseCreateIndexFunc ( sqlite3_context * pCtx,
int nVal,
sqlite3_value ** apVal )
static

Definition at line 15614 of file shell.c.

Referenced by sqlite3_intck_open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckPrepare()

sqlite3_stmt * intckPrepare ( sqlite3_intck * p,
const char * zSql )
static

Definition at line 15242 of file shell.c.

Referenced by intckExec(), intckGetAutoIndex(), intckPrepareFmt(), intckSaveKey(), and sqlite3_intck_step().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckPrepareFmt()

sqlite3_stmt * intckPrepareFmt ( sqlite3_intck * p,
const char * zFmt,
... )
static

Definition at line 15264 of file shell.c.

Referenced by intckCheckObjectSql(), intckFindObject(), intckIsIndex(), and intckSaveKey().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckSaveErrmsg()

void intckSaveErrmsg ( sqlite3_intck * p)
static

Definition at line 15228 of file shell.c.

Referenced by intckFinalize(), and intckPrepare().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckSaveKey()

void intckSaveKey ( sqlite3_intck * p)
static

Definition at line 15337 of file shell.c.

Referenced by sqlite3_intck_unlock().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intckStep()

int intckStep ( sqlite3_intck * p,
sqlite3_stmt * pStmt )
static

Definition at line 15295 of file shell.c.

Referenced by intckExec(), and intckGetAutoIndex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ integerValue()

sqlite3_int64 integerValue ( const char * zArg)
static

Definition at line 1414 of file shell.c.

Referenced by booleanValue(), do_meta_command(), expertDotCommand(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ interrupt_handler()

void interrupt_handler ( int NotUsed)
static

Definition at line 22549 of file shell.c.

Here is the call graph for this function:

◆ isatty()

int isatty ( int )
extern

◆ isNumber()

int isNumber ( const char * z,
int * realnum )
static

Definition at line 1235 of file shell.c.

Referenced by shell_callback().

Here is the caller graph for this function:

◆ isVt100()

int isVt100 ( const unsigned char * z)
static

Definition at line 1175 of file shell.c.

Referenced by translateForDisplayAndDup(), and utf8_width_print().

Here is the caller graph for this function:

◆ KeccakF1600Step()

void KeccakF1600Step ( SHA3Context * p)
static

Definition at line 2487 of file shell.c.

Referenced by SHA3Update().

Here is the caller graph for this function:

◆ line_is_command_terminator()

int line_is_command_terminator ( char * zLine)
static

Definition at line 32549 of file shell.c.

◆ line_is_complete()

int line_is_complete ( char * zSql,
int nSql )
static

Definition at line 32572 of file shell.c.

Here is the call graph for this function:

◆ lintDotCommand()

int lintDotCommand ( ShellState * pState,
char ** azArg,
int nArg )
static

Definition at line 27546 of file shell.c.

Here is the call graph for this function:

◆ lintFkeyIndexes()

int lintFkeyIndexes ( ShellState * pState,
char ** azArg,
int nArg )
static

Definition at line 27370 of file shell.c.

Here is the call graph for this function:

◆ local_getline()

char * local_getline ( char * zLine,
FILE * in )
static

Definition at line 1324 of file shell.c.

Referenced by one_input_line().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lockName()

const char * lockName ( int eLock)
static

Definition at line 16694 of file shell.c.

Referenced by vfstraceLock(), and vfstraceUnlock().

Here is the caller graph for this function:

◆ lsModeFunc()

void lsModeFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 8513 of file shell.c.

Referenced by sqlite3_fileio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int SQLITE_CDECL main ( int argc,
char ** argv )

Definition at line 33208 of file shell.c.

Here is the call graph for this function:

◆ main_init()

void main_init ( ShellState * data)
static

Definition at line 33122 of file shell.c.

Here is the call graph for this function:

◆ makeDirectory()

int makeDirectory ( const char * zFile)
static

Definition at line 8300 of file shell.c.

Referenced by writefileFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ memtraceFree()

void memtraceFree ( void * p)
static

Definition at line 2078 of file shell.c.

Referenced by memtraceRealloc().

Here is the caller graph for this function:

◆ memtraceInit()

int memtraceInit ( void * p)
static

Definition at line 2103 of file shell.c.

◆ memtraceMalloc()

void * memtraceMalloc ( int n)
static

Definition at line 2071 of file shell.c.

Referenced by memtraceRealloc().

Here is the caller graph for this function:

◆ memtraceRealloc()

void * memtraceRealloc ( void * p,
int n )
static

Definition at line 2085 of file shell.c.

Here is the call graph for this function:

◆ memtraceRoundup()

int memtraceRoundup ( int n)
static

Definition at line 2100 of file shell.c.

◆ memtraceShutdown()

void memtraceShutdown ( void * p)
static

Definition at line 2106 of file shell.c.

◆ memtraceSize()

int memtraceSize ( void * p)
static

Definition at line 2097 of file shell.c.

◆ needUnistr()

int needUnistr ( const unsigned char * z)
static

Definition at line 24326 of file shell.c.

◆ newTempFile()

void newTempFile ( ShellState * p,
const char * zSuffix )
static

Definition at line 27284 of file shell.c.

Here is the call graph for this function:

◆ one_input_line()

char * one_input_line ( FILE * in,
char * zPrior,
int isContinuation )
static

Definition at line 1368 of file shell.c.

Referenced by process_input().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ open_db()

void open_db ( ShellState * p,
int openFlags )
static

Definition at line 25975 of file shell.c.

Here is the call graph for this function:

◆ openChrSource()

FILE * openChrSource ( const char * zFile)
static

Definition at line 1286 of file shell.c.

Referenced by do_meta_command().

Here is the caller graph for this function:

◆ optionMatch()

int optionMatch ( const char * zStr,
const char * zOpt )
static

Definition at line 27247 of file shell.c.

Here is the call graph for this function:

◆ output_c_string()

void output_c_string ( FILE * out,
const char * z )
static

Definition at line 22280 of file shell.c.

◆ output_csv()

void output_csv ( ShellState * p,
const char * z,
int bSep )
static

Definition at line 22521 of file shell.c.

Here is the call graph for this function:

◆ output_file_close()

void output_file_close ( FILE * f)
static

Definition at line 26355 of file shell.c.

◆ output_file_open()

FILE * output_file_open ( const char * zFile)
static

Definition at line 26364 of file shell.c.

Here is the call graph for this function:

◆ output_hex_blob()

void output_hex_blob ( FILE * out,
const void * pBlob,
int nBlob )
static

Definition at line 22107 of file shell.c.

Here is the call graph for this function:

◆ output_html_string()

void output_html_string ( FILE * out,
const char * z )
static

Definition at line 22461 of file shell.c.

◆ output_json_string()

void output_json_string ( FILE * out,
const char * z,
i64 n )
static

Definition at line 22324 of file shell.c.

◆ output_quoted_escaped_string()

void output_quoted_escaped_string ( ShellState * p,
const char * z )
static

Definition at line 22211 of file shell.c.

Here is the call graph for this function:

◆ output_quoted_string()

void output_quoted_string ( ShellState * p,
const char * zInX )
static

Definition at line 22142 of file shell.c.

Here is the call graph for this function:

◆ output_redir()

void output_redir ( ShellState * p,
FILE * pfNew )
static

Definition at line 26841 of file shell.c.

◆ output_reset()

void output_reset ( ShellState * p)
static

Definition at line 26864 of file shell.c.

Here is the call graph for this function:

◆ outputDumpWarning()

int outputDumpWarning ( ShellState * p,
const char * zLike )
static

Definition at line 28738 of file shell.c.

Here is the call graph for this function:

◆ outputModePop()

void outputModePop ( ShellState * p)
static

Definition at line 22082 of file shell.c.

◆ outputModePush()

void outputModePush ( ShellState * p)
static

Definition at line 22076 of file shell.c.

◆ pcachetraceCachesize()

void pcachetraceCachesize ( sqlite3_pcache * p,
int nCachesize )
static

Definition at line 2212 of file shell.c.

◆ pcachetraceCreate()

sqlite3_pcache * pcachetraceCreate ( int szPage,
int szExtra,
int bPurge )
static

Definition at line 2199 of file shell.c.

◆ pcachetraceDestroy()

void pcachetraceDestroy ( sqlite3_pcache * p)
static

Definition at line 2274 of file shell.c.

◆ pcachetraceFetch()

sqlite3_pcache_page * pcachetraceFetch ( sqlite3_pcache * p,
unsigned key,
int crFg )
static

Definition at line 2229 of file shell.c.

◆ pcachetraceInit()

int pcachetraceInit ( void * pArg)
static

Definition at line 2182 of file shell.c.

◆ pcachetracePagecount()

int pcachetracePagecount ( sqlite3_pcache * p)
static

Definition at line 2218 of file shell.c.

◆ pcachetraceRekey()

void pcachetraceRekey ( sqlite3_pcache * p,
sqlite3_pcache_page * pPg,
unsigned oldKey,
unsigned newKey )
static

Definition at line 2256 of file shell.c.

◆ pcachetraceShrink()

void pcachetraceShrink ( sqlite3_pcache * p)
static

Definition at line 2280 of file shell.c.

◆ pcachetraceShutdown()

void pcachetraceShutdown ( void * pArg)
static

Definition at line 2193 of file shell.c.

◆ pcachetraceTruncate()

void pcachetraceTruncate ( sqlite3_pcache * p,
unsigned n )
static

Definition at line 2268 of file shell.c.

◆ pcachetraceUnpin()

void pcachetraceUnpin ( sqlite3_pcache * p,
sqlite3_pcache_page * pPg,
int bDiscard )
static

Definition at line 2245 of file shell.c.

◆ pclose()

int pclose ( FILE * )
extern

◆ percentBinarySearch()

int percentBinarySearch ( Percentile * p,
double y,
int bExact )
static

Definition at line 4772 of file shell.c.

Referenced by percentInverse(), and percentStep().

Here is the caller graph for this function:

◆ percentCompute()

void percentCompute ( sqlite3_context * pCtx,
int bIsFinal )
static

Definition at line 5021 of file shell.c.

Referenced by percentFinal(), and percentValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ percentError()

void percentError ( sqlite3_context * pCtx,
const char * zFormat,
... )
static

Definition at line 4797 of file shell.c.

Referenced by percentStep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ percentFinal()

void percentFinal ( sqlite3_context * pCtx)
static

Definition at line 5055 of file shell.c.

Referenced by sqlite3_percentile_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ percentInverse()

void percentInverse ( sqlite3_context * pCtx,
int argc,
sqlite3_value ** argv )
static

Definition at line 4974 of file shell.c.

Referenced by sqlite3_percentile_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ percentIsInfinity()

int percentIsInfinity ( double r)
static

Definition at line 4746 of file shell.c.

Referenced by percentInverse(), and percentStep().

Here is the caller graph for this function:

◆ percentSameValue()

int percentSameValue ( double a,
double b )
static

Definition at line 4756 of file shell.c.

Referenced by percentStep().

Here is the caller graph for this function:

◆ percentSort()

void percentSort ( double * a,
unsigned int n )
static

Definition at line 4923 of file shell.c.

Referenced by percentCompute(), percentInverse(), and percentSort().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ percentStep()

void percentStep ( sqlite3_context * pCtx,
int argc,
sqlite3_value ** argv )
static

Definition at line 4816 of file shell.c.

Referenced by sqlite3_percentile_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ percentValue()

void percentValue ( sqlite3_context * pCtx)
static

Definition at line 5058 of file shell.c.

Referenced by sqlite3_percentile_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popen()

FILE * popen ( const char * ,
const char *  )
extern

◆ print_box_line()

void print_box_line ( FILE * out,
int N )
static

Definition at line 24140 of file shell.c.

◆ print_box_row_separator()

void print_box_row_separator ( ShellState * p,
int nArg,
const char * zSep1,
const char * zSep2,
const char * zSep3 )
static

Definition at line 24156 of file shell.c.

◆ print_dashes()

void print_dashes ( FILE * out,
int N )
static

Definition at line 22840 of file shell.c.

◆ print_row_separator()

void print_row_separator ( ShellState * p,
int nArg,
const char * zSep )
static

Definition at line 22853 of file shell.c.

◆ printBold()

void printBold ( const char * zText)
static

Definition at line 33163 of file shell.c.

◆ printSchemaLine()

void printSchemaLine ( FILE * out,
const char * z,
const char * zTail )
static

Definition at line 22675 of file shell.c.

Here is the call graph for this function:

◆ printSchemaLineN()

void printSchemaLineN ( FILE * out,
char * z,
int n,
const char * zTail )
static

Definition at line 22703 of file shell.c.

◆ process_input()

int process_input ( ShellState * p)
static

Definition at line 32768 of file shell.c.

Here is the call graph for this function:

◆ process_sqliterc()

void process_sqliterc ( ShellState * p,
const char * sqliterc_override )
static

Definition at line 32989 of file shell.c.

Here is the call graph for this function:

◆ progress_handler()

int progress_handler ( void * pClientData)
static

Definition at line 22821 of file shell.c.

◆ progressSequence()

int progressSequence ( SequenceSpec * pss)
static

Definition at line 6403 of file shell.c.

Referenced by seriesNext().

Here is the caller graph for this function:

◆ putcs()

char * putcs ( char * pc,
char * s )
static

Definition at line 5554 of file shell.c.

Referenced by toBase85().

Here is the caller graph for this function:

◆ quickscan()

QuickScanState quickscan ( char * zLine,
QuickScanState qss,
SCAN_TRACKER_REFTYPE pst )
static

Definition at line 32465 of file shell.c.

◆ quoteChar()

char quoteChar ( const char * zName)
static

Definition at line 1530 of file shell.c.

Referenced by do_meta_command(), dump_callback(), set_table_name(), shell_callback(), shellAddSchemaName(), and shellFakeSchema().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ quoted_column()

char * quoted_column ( sqlite3_stmt * pStmt,
int i )
static

Definition at line 24337 of file shell.c.

Here is the call graph for this function:

◆ rc_err_oom_die()

void rc_err_oom_die ( int rc)
static

Definition at line 28531 of file shell.c.

Here is the call graph for this function:

◆ re_add_state()

void re_add_state ( ReStateSet * pSet,
int newState )
static

Definition at line 7213 of file shell.c.

Referenced by re_match().

Here is the caller graph for this function:

◆ re_append()

int re_append ( ReCompiled * p,
int op,
int arg )
static

Definition at line 7455 of file shell.c.

Referenced by re_compile(), re_subcompile_re(), and re_subcompile_string().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_compile()

const char * re_compile ( ReCompiled ** ppRe,
const char * zIn,
int noCase )
static

Definition at line 7723 of file shell.c.

Here is the call graph for this function:

◆ re_copy()

void re_copy ( ReCompiled * p,
int iStart,
int N )
static

Definition at line 7462 of file shell.c.

Referenced by re_subcompile_string().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_digit_char()

int re_digit_char ( int c)
static

Definition at line 7262 of file shell.c.

Referenced by re_match().

Here is the caller graph for this function:

◆ re_esc_char()

unsigned re_esc_char ( ReCompiled * p)
static

Definition at line 7490 of file shell.c.

Referenced by re_subcompile_string().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_free()

void re_free ( void * p)
static

Definition at line 7708 of file shell.c.

Here is the call graph for this function:

◆ re_hex()

int re_hex ( int c,
int * pV )
static

Definition at line 7473 of file shell.c.

Referenced by re_esc_char().

Here is the caller graph for this function:

◆ re_insert()

int re_insert ( ReCompiled * p,
int iBefore,
int op,
int arg )
static

Definition at line 7440 of file shell.c.

Referenced by re_append(), re_subcompile_re(), and re_subcompile_string().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_match()

int re_match ( ReCompiled * pRe,
const unsigned char * zIn,
int nIn )
static

Definition at line 7274 of file shell.c.

Here is the call graph for this function:

◆ re_next_char()

unsigned re_next_char ( ReInput * p)
static

Definition at line 7224 of file shell.c.

Referenced by re_compile(), and re_next_char_nocase().

Here is the caller graph for this function:

◆ re_next_char_nocase()

unsigned re_next_char_nocase ( ReInput * p)
static

Definition at line 7249 of file shell.c.

Referenced by re_compile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_resize()

int re_resize ( ReCompiled * p,
int N )
static

Definition at line 7424 of file shell.c.

Referenced by re_compile(), re_copy(), and re_insert().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_space_char()

int re_space_char ( int c)
static

Definition at line 7267 of file shell.c.

Referenced by re_match().

Here is the caller graph for this function:

◆ re_sql_func()

void re_sql_func ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 7799 of file shell.c.

Referenced by sqlite3_regexp_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_subcompile_re()

const char * re_subcompile_re ( ReCompiled * p)
static

Definition at line 7539 of file shell.c.

Referenced by re_compile(), and re_subcompile_string().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_subcompile_string()

const char * re_subcompile_string ( ReCompiled * p)
static

Definition at line 7561 of file shell.c.

Referenced by re_subcompile_re().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ re_word_char()

int re_word_char ( int c)
static

Definition at line 7256 of file shell.c.

Referenced by re_match().

Here is the caller graph for this function:

◆ readFile()

char * readFile ( const char * zName,
int * pnByte )
static

Definition at line 25697 of file shell.c.

Here is the call graph for this function:

◆ readFileContents()

void readFileContents ( sqlite3_context * ctx,
const char * zName )
static

Definition at line 8110 of file shell.c.

Referenced by fsdirColumn(), and readfileFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readfileFunc()

void readfileFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 8152 of file shell.c.

Referenced by sqlite3_fileio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readHexDb()

unsigned char * readHexDb ( ShellState * p,
int * pnData )
static

Definition at line 25828 of file shell.c.

Here is the call graph for this function:

◆ registerUDFs()

int registerUDFs ( sqlite3 * dbSrc,
sqlite3 * dbDst )

Definition at line 14694 of file shell.c.

Referenced by sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rePeek()

unsigned char rePeek ( ReCompiled * p)
static

Definition at line 7531 of file shell.c.

Referenced by re_subcompile_re(), and re_subcompile_string().

Here is the caller graph for this function:

◆ resolve_backslashes()

void resolve_backslashes ( char * z)
static

Definition at line 26265 of file shell.c.

Here is the call graph for this function:

◆ restore_debug_trace_modes()

void restore_debug_trace_modes ( void )
static

Definition at line 24025 of file shell.c.

◆ run_schema_dump_query()

int run_schema_dump_query ( ShellState * p,
const char * zQuery )
static

Definition at line 25236 of file shell.c.

Here is the call graph for this function:

◆ run_table_dump_query()

int run_table_dump_query ( ShellState * p,
const char * zSelect )
static

Definition at line 23461 of file shell.c.

Here is the call graph for this function:

◆ runOneSqlLine()

int runOneSqlLine ( ShellState * p,
char * zSql,
FILE * in,
int startline )
static

Definition at line 32670 of file shell.c.

Here is the call graph for this function:

◆ safeModeAuth()

int safeModeAuth ( void * pClientData,
int op,
const char * zA1,
const char * zA2,
const char * zA3,
const char * zA4 )
static

Definition at line 22574 of file shell.c.

Here is the call graph for this function:

◆ save_err_msg()

char * save_err_msg ( sqlite3 * db,
const char * zPhase,
int rc,
const char * zSql )
static

Definition at line 23508 of file shell.c.

Here is the call graph for this function:

◆ sayAbnormalExit()

void sayAbnormalExit ( void )
static

Definition at line 33181 of file shell.c.

◆ seriesBestIndex()

int seriesBestIndex ( sqlite3_vtab * pVTab,
sqlite3_index_info * pIdxInfo )
static

Definition at line 6821 of file shell.c.

Here is the call graph for this function:

◆ seriesClose()

int seriesClose ( sqlite3_vtab_cursor * cur)
static

Definition at line 6502 of file shell.c.

Here is the call graph for this function:

◆ seriesColumn()

int seriesColumn ( sqlite3_vtab_cursor * cur,
sqlite3_context * ctx,
int i )
static

Definition at line 6521 of file shell.c.

Here is the call graph for this function:

◆ seriesConnect()

int seriesConnect ( sqlite3 * db,
void * pUnused,
int argcUnused,
const char *const * argvUnused,
sqlite3_vtab ** ppVtab,
char ** pzErrUnused )
static

Definition at line 6446 of file shell.c.

Here is the call graph for this function:

◆ seriesDisconnect()

int seriesDisconnect ( sqlite3_vtab * pVtab)
static

Definition at line 6481 of file shell.c.

Here is the call graph for this function:

◆ seriesEof()

int seriesEof ( sqlite3_vtab_cursor * cur)
static

Definition at line 6557 of file shell.c.

◆ seriesFilter()

int seriesFilter ( sqlite3_vtab_cursor * pVtabCursor,
int idxNum,
const char * idxStrUnused,
int argc,
sqlite3_value ** argv )
static

Definition at line 6597 of file shell.c.

Here is the call graph for this function:

◆ seriesNext()

int seriesNext ( sqlite3_vtab_cursor * cur)
static

Definition at line 6511 of file shell.c.

Here is the call graph for this function:

◆ seriesOpen()

int seriesOpen ( sqlite3_vtab * pUnused,
sqlite3_vtab_cursor ** ppCursor )
static

Definition at line 6489 of file shell.c.

Here is the call graph for this function:

◆ seriesRowid()

int seriesRowid ( sqlite3_vtab_cursor * cur,
sqlite_int64 * pRowid )
static

Definition at line 6547 of file shell.c.

◆ set_table_name()

void set_table_name ( ShellState * p,
const char * zName )
static

Definition at line 23382 of file shell.c.

Here is the call graph for this function:

◆ setCrlfMode()

void setCrlfMode ( ShellState * p)
static

Definition at line 22092 of file shell.c.

◆ setLexemeOpen()

void setLexemeOpen ( struct DynaPrompt * p,
char * s,
char c )
static

Definition at line 927 of file shell.c.

◆ setOrClearFlag()

void setOrClearFlag ( ShellState * p,
unsigned mFlag,
const char * zArg )
static

Definition at line 26344 of file shell.c.

◆ setupSequence()

void setupSequence ( SequenceSpec * pss)
static

Definition at line 6349 of file shell.c.

Referenced by seriesFilter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sha1Func()

void sha1Func ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 3429 of file shell.c.

Referenced by sqlite3_sha_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sha1QueryFunc()

void sha1QueryFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 3468 of file shell.c.

Referenced by sqlite3_sha_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA1Transform()

void SHA1Transform ( unsigned int state[5],
const unsigned char buffer[64] )
static

Definition at line 3262 of file shell.c.

Referenced by hash_step().

Here is the caller graph for this function:

◆ sha3_step_vformat()

void sha3_step_vformat ( SHA3Context * p,
const char * zFormat,
... )
static

Definition at line 2940 of file shell.c.

Referenced by sha3QueryFunc(), and sha3UpdateFromValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sha3AggFinal()

void sha3AggFinal ( sqlite3_context * context)
static

Definition at line 3134 of file shell.c.

Referenced by sqlite3_shathree_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sha3AggStep()

void sha3AggStep ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 3109 of file shell.c.

Referenced by sqlite3_shathree_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA3Final()

unsigned char * SHA3Final ( SHA3Context * p)
static

Definition at line 2879 of file shell.c.

Referenced by sha3AggFinal(), sha3Func(), and sha3QueryFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sha3Func()

void sha3Func ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 2908 of file shell.c.

Referenced by sqlite3_shathree_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA3Init()

void SHA3Init ( SHA3Context * p,
int iSize )
static

Definition at line 2809 of file shell.c.

Referenced by sha3AggStep(), sha3Func(), and sha3QueryFunc().

Here is the caller graph for this function:

◆ sha3QueryFunc()

void sha3QueryFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 3041 of file shell.c.

Referenced by sqlite3_shathree_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA3Update()

void SHA3Update ( SHA3Context * p,
const unsigned char * aData,
unsigned int nData )
static

Definition at line 2839 of file shell.c.

Referenced by sha3_step_vformat(), SHA3Final(), sha3Func(), sha3QueryFunc(), and sha3UpdateFromValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sha3UpdateFromValue()

void sha3UpdateFromValue ( SHA3Context * p,
sqlite3_value * pVal )
static

Definition at line 2958 of file shell.c.

Referenced by sha3AggStep(), and sha3QueryFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shell_callback()

int shell_callback ( void * pArg,
int nArg,
char ** azArg,
char ** azCol,
int * aiType )
static

Definition at line 22875 of file shell.c.

Here is the call graph for this function:

◆ shell_check_oom()

void shell_check_oom ( const void * p)
static

Definition at line 977 of file shell.c.

Referenced by appendText(), do_meta_command(), dump_callback(), eqp_append(), escapeOutput(), exec_prepared_stmt_columnar(), explain_data_prepare(), import_append_char(), local_getline(), main(), newTempFile(), open_db(), output_csv(), output_hex_blob(), printSchemaLine(), process_input(), process_sqliterc(), rc_err_oom_die(), readHexDb(), save_err_msg(), set_table_name(), shell_callback(), shell_dbtotxt_command(), shell_error_context(), shellFakeSchema(), showHelp(), tableColumnList(), translateForDisplayAndDup(), tryToCloneData(), and tryToCloneSchema().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shell_dbtotxt_command()

int shell_dbtotxt_command ( ShellState * p,
int nArg,
char ** azArg )
static

Definition at line 27043 of file shell.c.

Here is the call graph for this function:

◆ shell_error_context()

char * shell_error_context ( const char * zSql,
sqlite3 * db )
static

Definition at line 23416 of file shell.c.

Here is the call graph for this function:

◆ shell_exec()

int shell_exec ( ShellState * pArg,
const char * zSql,
char ** pzErrMsg )
static

Definition at line 24829 of file shell.c.

Here is the call graph for this function:

◆ shell_out_of_memory()

void shell_out_of_memory ( void )
static

Definition at line 969 of file shell.c.

Referenced by do_meta_command(), exec_prepared_stmt(), and shell_check_oom().

Here is the caller graph for this function:

◆ shell_strcpy()

void shell_strcpy ( char * dest,
const char * src )
static

Definition at line 878 of file shell.c.

Referenced by dynamicContinuePrompt().

Here is the caller graph for this function:

◆ shell_strncpy()

char * shell_strncpy ( char * dest,
const char * src,
size_t n )
static

Definition at line 867 of file shell.c.

Referenced by do_meta_command(), and dynamicContinuePrompt().

Here is the caller graph for this function:

◆ shellAddSchemaName()

void shellAddSchemaName ( sqlite3_context * pCtx,
int nVal,
sqlite3_value ** apVal )
static

Definition at line 1646 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shellAuth()

int shellAuth ( void * pClientData,
int op,
const char * zA1,
const char * zA2,
const char * zA3,
const char * zA4 )
static

Definition at line 22622 of file shell.c.

◆ shellDatabaseError()

int shellDatabaseError ( sqlite3 * db)
static

Definition at line 27140 of file shell.c.

Here is the call graph for this function:

◆ shellDeleteFile()

int shellDeleteFile ( const char * zFilename)

Definition at line 27257 of file shell.c.

Here is the call graph for this function:

◆ shellDtostr()

void shellDtostr ( sqlite3_context * pCtx,
int nVal,
sqlite3_value ** apVal )
static

Definition at line 1613 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shellEmitError()

void shellEmitError ( const char * zErr)
static

Definition at line 27134 of file shell.c.

◆ shellFakeSchema()

char * shellFakeSchema ( sqlite3 * db,
const char * zSchema,
const char * zName )
static

Definition at line 1544 of file shell.c.

Referenced by shellAddSchemaName(), and shellModuleSchema().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shellFinalize()

void shellFinalize ( int * pRc,
sqlite3_stmt * pStmt )
static

Definition at line 27609 of file shell.c.

Here is the call graph for this function:

◆ shellFkeyCollateClause()

void shellFkeyCollateClause ( sqlite3_context * pCtx,
int nVal,
sqlite3_value ** apVal )
static

Definition at line 27329 of file shell.c.

Here is the call graph for this function:

◆ shellLog()

void shellLog ( void * pArg,
int iErrCode,
const char * zMsg )
static

Definition at line 21885 of file shell.c.

◆ shellModuleSchema()

void shellModuleSchema ( sqlite3_context * pCtx,
int nVal,
sqlite3_value ** apVal )
static

Definition at line 25931 of file shell.c.

Here is the call graph for this function:

◆ shellPrepare()

void shellPrepare ( sqlite3 * db,
int * pRc,
const char * zSql,
sqlite3_stmt ** ppStmt )
static

Definition at line 27563 of file shell.c.

Here is the call graph for this function:

◆ shellPreparePrintf()

void shellPreparePrintf ( sqlite3 * db,
int * pRc,
sqlite3_stmt ** ppStmt,
const char * zFmt,
... )
static

Definition at line 27583 of file shell.c.

Here is the call graph for this function:

◆ shellPutsFunc()

void shellPutsFunc ( sqlite3_context * pCtx,
int nVal,
sqlite3_value ** apVal )
static

Definition at line 21898 of file shell.c.

Here is the call graph for this function:

◆ shellReset()

void shellReset ( int * pRc,
sqlite3_stmt * pStmt )

Definition at line 27632 of file shell.c.

Here is the call graph for this function:

◆ shellStrtod()

void shellStrtod ( sqlite3_context * pCtx,
int nVal,
sqlite3_value ** apVal )
static

Definition at line 1595 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shellUSleepFunc()

void shellUSleepFunc ( sqlite3_context * context,
int argcUnused,
sqlite3_value ** argv )
static

Definition at line 25914 of file shell.c.

Here is the call graph for this function:

◆ showHelp()

int showHelp ( FILE * out,
const char * zPattern )
static

Definition at line 25601 of file shell.c.

Here is the call graph for this function:

◆ skipNonB64()

char * skipNonB64 ( char * s,
int nc )
static

Definition at line 5244 of file shell.c.

Referenced by fromBase64().

Here is the caller graph for this function:

◆ skipNonB85()

char * skipNonB85 ( char * s,
int nc )
static

Definition at line 5537 of file shell.c.

Referenced by fromBase85().

Here is the caller graph for this function:

◆ sql_trace_callback()

int sql_trace_callback ( unsigned mType,
void * pArg,
void * pP,
void * pX )
static

Definition at line 26385 of file shell.c.

Here is the call graph for this function:

◆ sqlite3_appendvfs_init()

int sqlite3_appendvfs_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 10177 of file shell.c.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_base_init()

int sqlite3_base_init ( sqlite3 * db,
char ** pzErr,
const sqlite3_api_routines * pApi )

Definition at line 5369 of file shell.c.

Here is the call graph for this function:

◆ sqlite3_completion_init()

int sqlite3_completion_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 9513 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_decimal_init()

int sqlite3_decimal_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 4541 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_expert_analyze()

int sqlite3_expert_analyze ( sqlite3expert * p,
char ** pzErr )

Definition at line 14895 of file shell.c.

Referenced by expertFinish().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_expert_config()

int sqlite3_expert_config ( sqlite3expert * p,
int op,
... )

Definition at line 14822 of file shell.c.

Referenced by expertDotCommand().

Here is the caller graph for this function:

◆ sqlite3_expert_count()

int sqlite3_expert_count ( sqlite3expert * p)

Definition at line 14940 of file shell.c.

Referenced by expertFinish().

Here is the caller graph for this function:

◆ sqlite3_expert_destroy()

void sqlite3_expert_destroy ( sqlite3expert * p)

Definition at line 14975 of file shell.c.

Referenced by expertFinish(), and sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_expert_new()

sqlite3expert * sqlite3_expert_new ( sqlite3 * db,
char ** pzErr )

Definition at line 14741 of file shell.c.

Referenced by expertDotCommand().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_expert_report()

const char * sqlite3_expert_report ( sqlite3expert * p,
int iStmt,
int eReport )

Definition at line 14949 of file shell.c.

Referenced by expertFinish().

Here is the caller graph for this function:

◆ sqlite3_expert_sql()

int sqlite3_expert_sql ( sqlite3expert * p,
const char * zSql,
char ** pzErr )

Definition at line 14846 of file shell.c.

Referenced by expertHandleSQL().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_fileio_init()

int sqlite3_fileio_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 8983 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_ieee_init()

int sqlite3_ieee_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 6145 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_intck_close()

void sqlite3_intck_close ( sqlite3_intck * pCk)

Definition at line 15980 of file shell.c.

Referenced by intckDatabaseCmd(), and sqlite3_intck_open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_intck_error()

int sqlite3_intck_error ( sqlite3_intck * pCk,
const char ** pzErr )

Definition at line 16070 of file shell.c.

Referenced by intckDatabaseCmd().

Here is the caller graph for this function:

◆ sqlite3_intck_message()

const char * sqlite3_intck_message ( sqlite3_intck * pCk)

Definition at line 16056 of file shell.c.

Referenced by intckDatabaseCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_intck_open()

int sqlite3_intck_open ( sqlite3 * db,
const char * zDb,
sqlite3_intck ** ppOut )

Definition at line 15946 of file shell.c.

Referenced by intckDatabaseCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_intck_step()

int sqlite3_intck_step ( sqlite3_intck * pCk)

Definition at line 15998 of file shell.c.

Referenced by intckDatabaseCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_intck_test_sql()

const char * sqlite3_intck_test_sql ( sqlite3_intck * pCk,
const char * zObj )

Definition at line 16093 of file shell.c.

Here is the call graph for this function:

◆ sqlite3_intck_unlock()

int sqlite3_intck_unlock ( sqlite3_intck * pCk)

Definition at line 16079 of file shell.c.

Referenced by intckDatabaseCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_percentile_init()

int sqlite3_percentile_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 5065 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_regexp_init()

int sqlite3_regexp_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 7905 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_series_init()

int sqlite3_series_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 7030 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_sha_init()

int sqlite3_sha_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 3574 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_shathree_init()

int sqlite3_shathree_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 3148 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_stmtrand_init()

int sqlite3_stmtrand_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 16191 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3_uint_init()

int sqlite3_uint_init ( sqlite3 * db,
char ** pzErrMsg,
const sqlite3_api_routines * pApi )

Definition at line 3684 of file shell.c.

Referenced by open_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3CompletionVtabInit()

int sqlite3CompletionVtabInit ( sqlite3 * db)

Definition at line 9502 of file shell.c.

Referenced by sqlite3_completion_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3MemTraceActivate()

int sqlite3MemTraceActivate ( FILE * out)

Definition at line 2123 of file shell.c.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3MemTraceDeactivate()

int sqlite3MemTraceDeactivate ( void )

Definition at line 2136 of file shell.c.

Here is the call graph for this function:

◆ sqlite3PcacheTraceActivate()

int sqlite3PcacheTraceActivate ( FILE * out)

Definition at line 2305 of file shell.c.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqlite3PcacheTraceDeactivate()

int sqlite3PcacheTraceDeactivate ( void )

Definition at line 2318 of file shell.c.

Here is the call graph for this function:

◆ stmtrandFunc()

void stmtrandFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 16154 of file shell.c.

Referenced by sqlite3_stmtrand_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ str_in_array()

int str_in_array ( const char * zStr,
const char ** azArray )
static

Definition at line 23867 of file shell.c.

Here is the call graph for this function:

◆ strappend()

void strappend ( char * z,
int * pI,
const char * zAppend )
static

Definition at line 16564 of file shell.c.

Referenced by vfstraceShmLock(), and vfstraceSync().

Here is the caller graph for this function:

◆ strlen30()

int strlen30 ( const char * z)
static

Definition at line 1263 of file shell.c.

Referenced by appendText(), do_meta_command(), expertDotCommand(), find_home_dir(), lintDotCommand(), lintFkeyIndexes(), main(), run_schema_dump_query(), set_table_name(), shell_callback(), shellAddSchemaName(), and tryToCloneData().

Here is the caller graph for this function:

◆ strlenChar()

int strlenChar ( const char * z)
static

Definition at line 1273 of file shell.c.

Referenced by exec_prepared_stmt_columnar(), and shell_callback().

Here is the caller graph for this function:

◆ tableColumnList()

char ** tableColumnList ( ShellState * p,
const char * zTab )
static

Definition at line 25001 of file shell.c.

Here is the call graph for this function:

◆ test_breakpoint()

void test_breakpoint ( void )
static

Definition at line 26449 of file shell.c.

◆ testcase_glob()

int testcase_glob ( const char * zGlob,
const char * z )
static

Definition at line 27168 of file shell.c.

◆ timeDiff()

double timeDiff ( struct timeval * pStart,
struct timeval * pEnd )
static

Definition at line 696 of file shell.c.

◆ timeOfDay()

sqlite3_int64 timeOfDay ( void )
static

Definition at line 652 of file shell.c.

Here is the call graph for this function:

◆ toBase64()

char * toBase64 ( u8 * pIn,
int nbIn,
char * pOut )
static

Definition at line 5207 of file shell.c.

Referenced by base64().

Here is the caller graph for this function:

◆ toBase85()

char * toBase85 ( u8 * pIn,
int nbIn,
char * pOut,
char * pSep )
static

Definition at line 5564 of file shell.c.

Referenced by base85().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toggleSelectOrder()

void toggleSelectOrder ( sqlite3 * db)
static

Definition at line 25095 of file shell.c.

Here is the call graph for this function:

◆ trackParenLevel()

void trackParenLevel ( struct DynaPrompt * p,
int ni )
static

Definition at line 920 of file shell.c.

◆ translateForDisplayAndDup()

char * translateForDisplayAndDup ( ShellState * p,
const unsigned char * z,
const unsigned char ** pzTail,
int mxWidth,
u8 bWordWrap )
static

Definition at line 24187 of file shell.c.

Here is the call graph for this function:

◆ tryToClone()

void tryToClone ( ShellState * p,
const char * zNewDb )
static

Definition at line 26815 of file shell.c.

Here is the call graph for this function:

◆ tryToCloneData()

void tryToCloneData ( ShellState * p,
sqlite3 * newDb,
const char * zTable )
static

Definition at line 26624 of file shell.c.

Here is the call graph for this function:

◆ tryToCloneSchema()

void tryToCloneSchema ( ShellState * p,
sqlite3 * newDb,
const char * zWhere,
void(* xForEach )(ShellState *, sqlite3 *, const char *) )
static

Definition at line 26734 of file shell.c.

Here is the call graph for this function:

◆ uintCollFunc()

SQLITE_EXTENSION_INIT1 int uintCollFunc ( void * notUsed,
int nKey1,
const void * pKey1,
int nKey2,
const void * pKey2 )
static

Definition at line 3640 of file shell.c.

Referenced by sqlite3_uint_init().

Here is the caller graph for this function:

◆ usage()

void usage ( int showDetail)
static

Definition at line 33096 of file shell.c.

◆ useDummyCS()

void useDummyCS ( void * up1,
sqlite3 * db,
int etr,
const char * zName )

Definition at line 14670 of file shell.c.

Referenced by sqlite3_expert_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8_width_print()

void utf8_width_print ( FILE * out,
int w,
const char * zUtf )
static

Definition at line 1195 of file shell.c.

Referenced by exec_prepared_stmt_columnar(), and shell_callback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verify_uninitialized()

void verify_uninitialized ( void )
static

Definition at line 33112 of file shell.c.

Here is the call graph for this function:

◆ vfstrace_errcode_name()

const char * vfstrace_errcode_name ( int rc)
static

Definition at line 16478 of file shell.c.

Referenced by vfstrace_print_errcode().

Here is the caller graph for this function:

◆ vfstrace_print_errcode()

void vfstrace_print_errcode ( vfstrace_info * pInfo,
const char * zFormat,
int rc )
static

Definition at line 16541 of file shell.c.

Referenced by vfstraceAccess(), vfstraceCheckReservedLock(), vfstraceClose(), vfstraceDelete(), vfstraceFetch(), vfstraceFileControl(), vfstraceFileSize(), vfstraceFullPathname(), vfstraceLock(), vfstraceOpen(), vfstraceRead(), vfstraceShmLock(), vfstraceShmMap(), vfstraceShmUnmap(), vfstraceUnfetch(), vfstraceUnlock(), and vfstraceWrite().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstrace_printf()

void vfstrace_printf ( vfstrace_info * pInfo,
const char * zFormat,
... )
static

◆ vfstrace_register()

int vfstrace_register ( const char * zTraceName,
const char * zOldVfsName,
int(* xOut )(const char *, void *),
void * pOutArg,
int makeDefault )

Definition at line 17347 of file shell.c.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstrace_unregister()

void vfstrace_unregister ( const char * zTraceName)

Definition at line 17414 of file shell.c.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceAccess()

int vfstraceAccess ( sqlite3_vfs * pVfs,
const char * zName,
int flags,
int * pResOut )
static

Definition at line 17162 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceCheckReservedLock()

int vfstraceCheckReservedLock ( sqlite3_file * pFile,
int * pResOut )
static

Definition at line 16738 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceClose()

int vfstraceClose ( sqlite3_file * pFile)
static

Definition at line 16581 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceCurrentTime()

int vfstraceCurrentTime ( sqlite3_vfs * pVfs,
double * pTimeOut )
static

Definition at line 17276 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceCurrentTimeInt64()

int vfstraceCurrentTimeInt64 ( sqlite3_vfs * pVfs,
sqlite3_int64 * pTimeOut )
static

Definition at line 17286 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceDelete()

int vfstraceDelete ( sqlite3_vfs * pVfs,
const char * zName,
int syncDir )
static

Definition at line 17146 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceDeviceCharacteristics()

int vfstraceDeviceCharacteristics ( sqlite3_file * pFile)
static

Definition at line 16970 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceDlClose()

void vfstraceDlClose ( sqlite3_vfs * pVfs,
void * pHandle )
static

Definition at line 17241 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceDlError()

void vfstraceDlError ( sqlite3_vfs * pVfs,
int nByte,
char * zErrMsg )
static

Definition at line 17219 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceDlOpen()

void * vfstraceDlOpen ( sqlite3_vfs * pVfs,
const char * zFilename )
static

Definition at line 17206 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceFetch()

int vfstraceFetch ( sqlite3_file * pFile,
i64 iOff,
int nAmt,
void ** pptr )
static

Definition at line 17058 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceFileControl()

int vfstraceFileControl ( sqlite3_file * pFile,
int op,
void * pArg )
static

Definition at line 16754 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceFileSize()

int vfstraceFileSize ( sqlite3_file * pFile,
sqlite3_int64 * pSize )
static

Definition at line 16679 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceFullPathname()

int vfstraceFullPathname ( sqlite3_vfs * pVfs,
const char * zName,
int nOut,
char * zOut )
static

Definition at line 17185 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceGetLastError()

int vfstraceGetLastError ( sqlite3_vfs * pVfs,
int nErr,
char * zErr )
static

Definition at line 17300 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceGetSystemCall()

sqlite3_syscall_ptr vfstraceGetSystemCall ( sqlite3_vfs * pVfs,
const char * zName )
static

Definition at line 17324 of file shell.c.

Referenced by vfstrace_register().

Here is the caller graph for this function:

◆ vfstraceLock()

int vfstraceLock ( sqlite3_file * pFile,
int eLock )
static

Definition at line 16708 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceNextSystemCall()

const char * vfstraceNextSystemCall ( sqlite3_vfs * pVfs,
const char * zName )
static

Definition at line 17332 of file shell.c.

Referenced by vfstrace_register().

Here is the caller graph for this function:

◆ vfstraceOnOff()

◆ vfstraceOpen()

int vfstraceOpen ( sqlite3_vfs * pVfs,
const char * zName,
sqlite3_file * pFile,
int flags,
int * pOutFlags )
static

Definition at line 17085 of file shell.c.

Referenced by vfstrace_register(), and vfstrace_unregister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceOut()

int vfstraceOut ( const char * z,
void * pArg )
static

Definition at line 33187 of file shell.c.

◆ vfstraceRandomness()

int vfstraceRandomness ( sqlite3_vfs * pVfs,
int nByte,
char * zOut )
static

Definition at line 17253 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceRead()

int vfstraceRead ( sqlite3_file * pFile,
void * zBuf,
int iAmt,
sqlite3_int64 iOfst )
static

Definition at line 16599 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceSectorSize()

int vfstraceSectorSize ( sqlite3_file * pFile)
static

Definition at line 16956 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceSetSystemCall()

int vfstraceSetSystemCall ( sqlite3_vfs * pVfs,
const char * zName,
sqlite3_syscall_ptr pFunc )
static

Definition at line 17315 of file shell.c.

Referenced by vfstrace_register().

Here is the caller graph for this function:

◆ vfstraceShmBarrier()

void vfstraceShmBarrier ( sqlite3_file * pFile)
static

Definition at line 17040 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceShmLock()

int vfstraceShmLock ( sqlite3_file * pFile,
int ofst,
int n,
int flags )
static

Definition at line 16985 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceShmMap()

int vfstraceShmMap ( sqlite3_file * pFile,
int iRegion,
int szRegion,
int isWrite,
void volatile ** pp )
static

Definition at line 17023 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceShmUnmap()

int vfstraceShmUnmap ( sqlite3_file * pFile,
int delFlag )
static

Definition at line 17047 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceSleep()

int vfstraceSleep ( sqlite3_vfs * pVfs,
int microseconds )
static

Definition at line 17265 of file shell.c.

Referenced by vfstrace_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceSync()

int vfstraceSync ( sqlite3_file * pFile,
int flags )
static

Definition at line 16654 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceTruncate()

int vfstraceTruncate ( sqlite3_file * pFile,
sqlite3_int64 size )
static

Definition at line 16639 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceUnfetch()

int vfstraceUnfetch ( sqlite3_file * pFile,
i64 iOff,
void * ptr )
static

Definition at line 17069 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceUnlock()

int vfstraceUnlock ( sqlite3_file * pFile,
int eLock )
static

Definition at line 16723 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vfstraceWrite()

int vfstraceWrite ( sqlite3_file * pFile,
const void * zBuf,
int iAmt,
sqlite3_int64 iOfst )
static

Definition at line 16619 of file shell.c.

Referenced by vfstraceOpen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFile()

int writeFile ( sqlite3_context * pCtx,
const char * zFile,
sqlite3_value * pData,
mode_t mode,
sqlite3_int64 mtime )
static

Definition at line 8340 of file shell.c.

Referenced by writefileFunc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writefileFunc()

void writefileFunc ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 8463 of file shell.c.

Referenced by sqlite3_fileio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wsToEol()

int wsToEol ( const char * z)
static

Definition at line 22714 of file shell.c.

◆ zAutoColumn()

char * zAutoColumn ( const char * zColNew,
sqlite3 ** pDb,
char ** pzRenamed )
static

Definition at line 28554 of file shell.c.

Here is the call graph for this function:

◆ zSkipValidUtf8()

const char * zSkipValidUtf8 ( const char * z,
int nAccept,
long ccm )

Definition at line 22248 of file shell.c.

Variable Documentation

◆ aPercentFunc

const PercentileFunc aPercentFunc[]
static
Initial value:
= {
{ "median", 1, 1, 0 },
{ "percentile", 2, 100, 0 },
{ "percentile_cont", 2, 1, 0 },
{ "percentile_disc", 2, 1, 1 },
}

Definition at line 4736 of file shell.c.

Referenced by sqlite3_percentile_init().

◆ apnd_io_methods

const sqlite3_io_methods apnd_io_methods
static
Initial value:
= {
3,
}
static int apndShmMap(sqlite3_file *, int iPg, int pgsz, int, void volatile **)
Definition shell.c:9909
static int apndSectorSize(sqlite3_file *)
Definition shell.c:9895
static int apndDeviceCharacteristics(sqlite3_file *)
Definition shell.c:9903
static void apndShmBarrier(sqlite3_file *)
Definition shell.c:9927
static int apndSync(sqlite3_file *, int flags)
Definition shell.c:9838
static int apndFileControl(sqlite3_file *, int op, void *pArg)
Definition shell.c:9880
static int apndShmUnmap(sqlite3_file *, int deleteFlag)
Definition shell.c:9933
static int apndShmLock(sqlite3_file *, int offset, int n, int flags)
Definition shell.c:9921
static int apndUnfetch(sqlite3_file *, sqlite3_int64 iOfst, void *p)
Definition shell.c:9954
static int apndLock(sqlite3_file *, int)
Definition shell.c:9856
static int apndRead(sqlite3_file *, void *, int iAmt, sqlite3_int64 iOfst)
Definition shell.c:9763
static int apndWrite(sqlite3_file *, const void *, int iAmt, sqlite3_int64 iOfst)
Definition shell.c:9805
static int apndClose(sqlite3_file *)
Definition shell.c:9755
static int apndTruncate(sqlite3_file *, sqlite3_int64 size)
Definition shell.c:9826
static int apndCheckReservedLock(sqlite3_file *, int *pResOut)
Definition shell.c:9872
static int apndUnlock(sqlite3_file *, int)
Definition shell.c:9864
static int apndFetch(sqlite3_file *, sqlite3_int64 iOfst, int iAmt, void **pp)
Definition shell.c:9939
static int apndFileSize(sqlite3_file *, sqlite3_int64 *pSize)
Definition shell.c:9847

Definition at line 9730 of file shell.c.

Referenced by apndOpen().

◆ apnd_vfs

sqlite3_vfs apnd_vfs
static
Initial value:
= {
3,
0,
1024,
0,
"apndvfs",
0,
}
static int apndOpen(sqlite3_vfs *, const char *, sqlite3_file *, int, int *)
Definition shell.c:10035
static int apndFullPathname(sqlite3_vfs *, const char *zName, int, char *zOut)
Definition shell.c:10117
static int apndCurrentTimeInt64(sqlite3_vfs *, sqlite3_int64 *)
Definition shell.c:10149
static int apndAccess(sqlite3_vfs *, const char *zName, int flags, int *)
Definition shell.c:10109
static int apndDelete(sqlite3_vfs *, const char *zName, int syncDir)
Definition shell.c:10102
static void apndDlError(sqlite3_vfs *, int nByte, char *zErrMsg)
Definition shell.c:10128
static int apndRandomness(sqlite3_vfs *, int nByte, char *zOut)
Definition shell.c:10137
static int apndSleep(sqlite3_vfs *, int microseconds)
Definition shell.c:10140
static int apndSetSystemCall(sqlite3_vfs *, const char *, sqlite3_syscall_ptr)
Definition shell.c:10152
static const char * apndNextSystemCall(sqlite3_vfs *, const char *zName)
Definition shell.c:10165
static void * apndDlOpen(sqlite3_vfs *, const char *zFilename)
Definition shell.c:10125
static void(*)(void) apndDlSym(sqlite3_vfs *pVfs, void *p, const char *zSym)
Definition shell.c:9694
static int apndGetLastError(sqlite3_vfs *, int, char *)
Definition shell.c:10146
static int apndCurrentTime(sqlite3_vfs *, double *)
Definition shell.c:10143
static sqlite3_syscall_ptr apndGetSystemCall(sqlite3_vfs *, const char *z)
Definition shell.c:10159
static void apndDlClose(sqlite3_vfs *, void *)
Definition shell.c:10134

Definition at line 9705 of file shell.c.

Referenced by sqlite3_appendvfs_init().

◆ apndDlSym

void(*)(void) apndDlSym(sqlite3_vfs *pVfs, void *p, const char *zSym) ( sqlite3_vfs * pVfs,
void * p,
const char * zSym )
static

Definition at line 9694 of file shell.c.

◆ apvfsSqliteHdr

const char apvfsSqliteHdr[] = "SQLite format 3"
static

Definition at line 9989 of file shell.c.

Referenced by apndIsAppendvfsDatabase(), and apndIsOrdinaryDatabaseFile().

◆ Argv0

char* Argv0
static

Definition at line 850 of file shell.c.

Referenced by main().

◆ [struct]

const struct { ... } aUWidth[]

◆ azHelp

const char* azHelp[]
static

Definition at line 25276 of file shell.c.

◆ b64DigitValues

const u8 b64DigitValues[128]
static
Initial value:
= {
WS,ND,ND,ND, ND,ND,ND,ND, ND,ND,ND,62, ND,ND,ND,63,
52,53,54,55, 56,57,58,59, 60,61,ND,ND, ND,PC,ND,ND,
ND, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11,12,13,14,
15,16,17,18, 19,20,21,22, 23,24,25,ND, ND,ND,ND,ND,
ND,26,27,28, 29,30,31,32, 33,34,35,36, 37,38,39,40,
41,42,43,44, 45,46,47,48, 49,50,51,ND, ND,ND,ND,ND
}
#define ND
Definition shell.c:5164

Definition at line 5173 of file shell.c.

◆ b64Numerals

const char b64Numerals[64+1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
static

Definition at line 5192 of file shell.c.

Referenced by fromBase64().

◆ b85_cOffset

u8 b85_cOffset[] = { 0, '#', 0, '*'-4, 0 }
static

Definition at line 5519 of file shell.c.

◆ bail_on_error

int bail_on_error = 0
static

Definition at line 819 of file shell.c.

Referenced by do_meta_command(), main(), process_input(), and process_sqliterc().

◆ completionModule

sqlite3_module completionModule
static
Initial value:
= {
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
}
static int completionNext(sqlite3_vtab_cursor *cur)
Definition shell.c:9216
static int completionClose(sqlite3_vtab_cursor *cur)
Definition shell.c:9196
static int completionFilter(sqlite3_vtab_cursor *pVtabCursor, int idxNum, const char *idxStr, int argc, sqlite3_value **argv)
Definition shell.c:9376
static int completionRowid(sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid)
Definition shell.c:9355
static int completionColumn(sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i)
Definition shell.c:9324
static int completionDisconnect(sqlite3_vtab *pVtab)
Definition shell.c:9165
static int completionConnect(sqlite3 *db, void *pAux, int argc, const char *const *argv, sqlite3_vtab **ppVtab, char **pzErr)
Definition shell.c:9123
static int completionEof(sqlite3_vtab_cursor *cur)
Definition shell.c:9365
static int completionOpen(sqlite3_vtab *p, sqlite3_vtab_cursor **ppCursor)
Definition shell.c:9173
static int completionBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo)
Definition shell.c:9427

Definition at line 9472 of file shell.c.

Referenced by sqlite3CompletionVtabInit().

◆ continuePrompt

char continuePrompt[PROMPT_LEN_MAX]
static

Definition at line 860 of file shell.c.

Referenced by do_meta_command(), dynamicContinuePrompt(), and main_init().

◆ dynPrompt

struct DynaPrompt dynPrompt = { {0}, {0}, 0, 0 }
static

◆ enableTimer

int enableTimer = 0
static

Definition at line 637 of file shell.c.

Referenced by do_meta_command().

◆ ersaztMethods

sqlite3_mem_methods ersaztMethods
static
Initial value:
= {
0
}
static void memtraceFree(void *p)
Definition shell.c:2078
static void * memtraceRealloc(void *p, int n)
Definition shell.c:2085
static int memtraceInit(void *p)
Definition shell.c:2103
static void * memtraceMalloc(int n)
Definition shell.c:2071
static int memtraceSize(void *p)
Definition shell.c:2097
static int memtraceRoundup(int n)
Definition shell.c:2100
static void memtraceShutdown(void *p)
Definition shell.c:2106

Definition at line 2111 of file shell.c.

Referenced by sqlite3MemTraceActivate().

◆ ersaztPcacheMethods

sqlite3_pcache_methods2 ersaztPcacheMethods
static
Initial value:
= {
0,
0,
}
static void pcachetraceUnpin(sqlite3_pcache *p, sqlite3_pcache_page *pPg, int bDiscard)
Definition shell.c:2245
static int pcachetraceInit(void *pArg)
Definition shell.c:2182
static void pcachetraceShutdown(void *pArg)
Definition shell.c:2193
static void pcachetraceDestroy(sqlite3_pcache *p)
Definition shell.c:2274
static void pcachetraceCachesize(sqlite3_pcache *p, int nCachesize)
Definition shell.c:2212
static sqlite3_pcache_page * pcachetraceFetch(sqlite3_pcache *p, unsigned key, int crFg)
Definition shell.c:2229
static void pcachetraceRekey(sqlite3_pcache *p, sqlite3_pcache_page *pPg, unsigned oldKey, unsigned newKey)
Definition shell.c:2256
static void pcachetraceTruncate(sqlite3_pcache *p, unsigned n)
Definition shell.c:2268
static int pcachetracePagecount(sqlite3_pcache *p)
Definition shell.c:2218
static sqlite3_pcache * pcachetraceCreate(int szPage, int szExtra, int bPurge)
Definition shell.c:2199
static void pcachetraceShrink(sqlite3_pcache *p)
Definition shell.c:2280

Definition at line 2288 of file shell.c.

Referenced by sqlite3PcacheTraceActivate().

◆ eVerbose

int eVerbose

Definition at line 28763 of file shell.c.

◆ [struct]

struct { ... } faultsim_state

◆ globalDb

sqlite3* globalDb = 0
static

Definition at line 839 of file shell.c.

Referenced by do_meta_command(), interrupt_handler(), and open_db().

◆ iBegin

sqlite3_int64 iBegin
static

Definition at line 683 of file shell.c.

◆ iCnt

int iCnt

Definition at line 28761 of file shell.c.

◆ iErr

int iErr

Definition at line 28760 of file shell.c.

◆ iFirst

int iFirst

Definition at line 1012 of file shell.c.

Referenced by cli_wcwidth().

◆ iId

int iId

Definition at line 28759 of file shell.c.

◆ iInterval

int iInterval

Definition at line 28762 of file shell.c.

◆ mainPrompt

char mainPrompt[PROMPT_LEN_MAX]
static

Definition at line 858 of file shell.c.

Referenced by do_meta_command(), main_init(), and one_input_line().

◆ memtraceBase

◆ memtraceOut

FILE* memtraceOut
static

◆ modeDescr

const char* modeDescr[]
static
Initial value:
= {
"line",
"column",
"list",
"semi",
"html",
"insert",
"quote",
"tcl",
"csv",
"explain",
"ascii",
"prettyprint",
"eqp",
"json",
"markdown",
"table",
"box",
"count",
"off",
"scanexp",
"www",
}

Definition at line 21839 of file shell.c.

◆ needCsvQuote

const char needCsvQuote[]
static
Initial value:
= {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
}

Definition at line 22496 of file shell.c.

◆ nHit

int nHit

Definition at line 28764 of file shell.c.

◆ nRepeat

int nRepeat

Definition at line 28765 of file shell.c.

◆ nSkip

int nSkip

Definition at line 28766 of file shell.c.

◆ pcacheBase

◆ pcachetraceOut

◆ savedSelectTrace

unsigned int savedSelectTrace
static

Definition at line 24016 of file shell.c.

◆ savedWhereTrace

unsigned int savedWhereTrace
static

Definition at line 24017 of file shell.c.

◆ sBegin

struct rusage sBegin
static

Definition at line 682 of file shell.c.

◆ seenInterrupt

◆ seriesModule

sqlite3_module seriesModule
static
Initial value:
= {
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
}
static int seriesClose(sqlite3_vtab_cursor *cur)
Definition shell.c:6502
static int seriesNext(sqlite3_vtab_cursor *cur)
Definition shell.c:6511
static int seriesConnect(sqlite3 *db, void *pUnused, int argcUnused, const char *const *argvUnused, sqlite3_vtab **ppVtab, char **pzErrUnused)
Definition shell.c:6446
static int seriesOpen(sqlite3_vtab *pUnused, sqlite3_vtab_cursor **ppCursor)
Definition shell.c:6489
static int seriesColumn(sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i)
Definition shell.c:6521
static int seriesBestIndex(sqlite3_vtab *pVTab, sqlite3_index_info *pIdxInfo)
Definition shell.c:6821
static int seriesEof(sqlite3_vtab_cursor *cur)
Definition shell.c:6557
static int seriesRowid(sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid)
Definition shell.c:6547
static int seriesFilter(sqlite3_vtab_cursor *pVtabCursor, int idxNum, const char *idxStrUnused, int argc, sqlite3_value **argv)
Definition shell.c:6597
static int seriesDisconnect(sqlite3_vtab *pVtab)
Definition shell.c:6481

Definition at line 6997 of file shell.c.

Referenced by sqlite3_series_init().

◆ shell_EscModeNames

const char* shell_EscModeNames[] = { "ascii", "symbol", "off" }
static

Definition at line 21790 of file shell.c.

◆ SQLITE_EXTENSION_INIT1

SQLITE_EXTENSION_INIT1

Definition at line 5160 of file shell.c.

◆ stdin_is_interactive

int stdin_is_interactive = 1
static

Definition at line 825 of file shell.c.

Referenced by do_meta_command(), main(), process_input(), process_sqliterc(), and runOneSqlLine().

◆ stdout_is_console

int stdout_is_console = 1
static

Definition at line 832 of file shell.c.

Referenced by main().

◆ vfstraceDlSym

void(*)(void) vfstraceDlSym(sqlite3_vfs *pVfs, void *p, const char *zSym) ( sqlite3_vfs * pVfs,
void * p,
const char * zSymbol )
static

Definition at line 16431 of file shell.c.

Referenced by vfstrace_register().

◆ w

unsigned char w

Definition at line 1011 of file shell.c.

Referenced by cli_wcwidth().

◆ zCOL_DB

const char* zCOL_DB = ":memory:"
static

Definition at line 28540 of file shell.c.

◆ zOptions

const char zOptions[]
static

Definition at line 33032 of file shell.c.