Sqlite3 3.50.2
Light weight SQL DB
|
#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>
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 DynaPrompt * | t_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_pcache * | pcachetraceCreate (int szPage, int szExtra, int bPurge) |
static void | pcachetraceCachesize (sqlite3_pcache *p, int nCachesize) |
static int | pcachetracePagecount (sqlite3_pcache *p) |
static sqlite3_pcache_page * | pcachetraceFetch (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 Decimal * | decimalNewFromText (const char *zIn, int n) |
static Decimal * | decimalFromDouble (double) |
static Decimal * | decimal_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 Decimal * | decimalPow2 (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 u8 * | fromBase64 (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 u8 * | fromBase85 (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) |
sqlite3expert * | sqlite3_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 IdxHashEntry * | idxHashFind (IdxHash *pHash, const char *zKey, int nKey) |
static const char * | idxHashSearch (IdxHash *pHash, const char *zKey, int nKey) |
static IdxConstraint * | idxNewConstraint (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_stmt * | intckPrepare (sqlite3_intck *p, const char *zSql) |
static sqlite3_stmt * | intckPrepareFmt (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 EQPGraphRow * | eqp_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 sqlite3 * | globalDb = 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 [] |
#define a qq[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 APND_ALIGN_MASK ((sqlite3_int64)(APND_ROUNDUP-1)) |
#define APND_MARK_SIZE (APND_MARK_PREFIX_SZ+APND_MARK_FOS_SZ) |
#define APND_START_ROUNDUP | ( | fsz | ) |
#define AUTOEQP_off 0 /* Automatic EXPLAIN QUERY PLAN is off */ |
#define AUTOEQP_trigger 2 /* On and also show plans for triggers */ |
#define b qq[1] |
#define B85_CLASS | ( | c | ) |
#define B85_DNOS | ( | c | ) |
#define BASE64_EXPOSE | ( | db, | |
pzErr ) |
#define BASE64_INIT | ( | db | ) |
#define BASE85_EXPOSE | ( | db, | |
pzErr ) |
#define BASE85_INIT | ( | db | ) |
#define base85Numeral | ( | dn | ) |
#define BEGIN_TIMER beginTimer() |
#define blk | ( | i | ) |
#define blk0le | ( | i | ) |
#define BX_DV_PROTO | ( | c | ) |
#define BX_NUMERAL | ( | dv | ) |
#define c qq[2] |
#define COMPLETION_COLUMN_CANDIDATE 0 /* Suggested completion of the input */ |
#define COMPLETION_COLUMN_PHASE 3 /* ePhase - used for debugging only */ |
#define COMPLETION_COLUMN_PREFIX 1 /* Prefix of the word to be completed */ |
#define COMPLETION_COLUMN_WHOLELINE 2 /* Entire line seen so far */ |
#define CONTINUATION_PROMPT dynamicContinuePrompt() |
#define CONTINUE_PAREN_INCR | ( | p, | |
n ) |
#define CONTINUE_PROMPT_AWAITC | ( | p, | |
c ) |
#define CONTINUE_PROMPT_AWAITS | ( | p, | |
s ) |
#define CONTINUE_PROMPT_RESET do {setLexemeOpen(&dynPrompt,0,0); trackParenLevel(&dynPrompt,0);} while(0) |
#define CTIMEOPT_VAL | ( | opt | ) |
#define CTIMEOPT_VAL_ | ( | opt | ) |
#define d qq[3] |
#define e qq[4] |
#define END_TIMER | ( | X | ) |
#define eputz | ( | z | ) |
#define FSDIR_COLUMN_DIR 5 /* Path is relative to this directory */ |
#define FSDIR_SCHEMA "(name,mode,mtime,data,path HIDDEN,dir HIDDEN)" |
#define IS_BX_PAD | ( | bdp | ) |
#define IS_BX_WS | ( | bdp | ) |
#define LARGEST_INT64 (0xffffffff|(((sqlite3_int64)0x7fffffff)<<32)) |
#define LARGEST_UINT64 (0xffffffff|(((sqlite3_uint64)0xffffffff)<<32)) |
#define MODE_Ascii 10 /* Use ASCII unit and record separators (0x1F/0x1E) */ |
#define MODE_Column 1 /* One record per line in neat columns */ |
#define MODE_Count 17 /* Output only a count of the rows of output */ |
#define MODE_EQP 12 /* Converts EXPLAIN QUERY PLAN output into a graph */ |
#define MODE_Explain 9 /* Like MODE_Column, but do not truncate data */ |
#define MODE_Insert 5 /* Generate SQL "insert" statements */ |
#define MODE_Line 0 /* One column per line. Blank line between records */ |
#define MODE_List 2 /* One record per line with a separator */ |
#define MODE_ScanExp 19 /* Like MODE_Explain, but for ".scanstats vm" */ |
#define MODE_Semi 3 /* Same as MODE_List but append ";" to each line */ |
#define MODE_Tcl 7 /* Generate ANSI-C or TCL quoted elements */ |
#define OPEN_DB_KEEPALIVE 0x001 /* Return after error if true */ |
#define OPEN_DB_ZIPFILE 0x002 /* Open as ZIP if name matches *.zip */ |
#define ORIGFILE | ( | p | ) |
#define ORIGVFS | ( | p | ) |
#define QSS_INPLAIN | ( | qss | ) |
#define QSS_PLAINDARK | ( | qss | ) |
#define QSS_PLAINWHITE | ( | qss | ) |
#define QSS_SEMITERM | ( | qss | ) |
#define QSS_SETV | ( | qss, | |
newst ) |
#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 Rb0 | ( | v, | |
w, | |||
x, | |||
y, | |||
z, | |||
i ) |
#define RE_OP_ACCEPT 6 /* Halt and indicate a successful match */ |
#define RE_OP_ANY 2 /* Match any one character. (Implements ".") */ |
#define RE_OP_ANYSTAR 3 /* Special optimized version of .* */ |
#define RE_OP_ATSTART 18 /* Currently at the start of the string */ |
#define RE_OP_BOUNDARY 17 /* Boundary between word and non-word */ |
#define RE_OP_CC_EXC 8 /* Beginning of a [^...] character class */ |
#define RE_OP_CC_INC 7 /* Beginning of a [...] character class */ |
#define RE_OP_CC_RANGE 10 /* Range of values in a character class */ |
#define RE_OP_CC_VALUE 9 /* Single value in a character class */ |
#define RE_OP_FORK 4 /* Continue to both next and opcode at iArg */ |
#define RE_OP_MATCH 1 /* Match the one character in the argument */ |
#define RE_OP_WORD 11 /* Perl word character [A-Za-z0-9_] */ |
#define RE_START 0xfffffff /* Start of input - larger than an UTF-8 */ |
#define Rl0 | ( | v, | |
w, | |||
x, | |||
y, | |||
z, | |||
i ) |
#define rol | ( | x, | |
k ) |
#define SCAN_TRACKER_REFTYPE t_DynaPromptRef |
#define SERIES_COLUMN_ROWID (-1) |
#define SERIES_COLUMN_START 1 |
#define SERIES_COLUMN_STEP 3 |
#define SERIES_COLUMN_STOP 2 |
#define SERIES_COLUMN_VALUE 0 |
#define SHA_ROT | ( | x, | |
l, | |||
r ) |
#define SHELL_ESC_ASCII 0 /* Substitute ^Y for X where Y=X+0x40 */ |
#define SHELL_ESC_SYMBOL 1 /* Substitute U+2400 graphics */ |
#define SHELL_OPEN_DESERIALIZE 5 /* Open using sqlite3_deserialize() */ |
#define SHELL_OPEN_HEXDB 6 /* Use "dbtotxt" output as data source */ |
#define SHELL_OPEN_READONLY 4 /* Open a normal database read-only */ |
#define SHELL_OPEN_ZIPFILE 3 /* Use the zipfile virtual table */ |
#define SHELL_PROGRESS_ONCE 0x04 /* Cancel the --limit after firing once */ |
#define SHELL_PROGRESS_QUIET 0x01 /* Omit announcing every progress callback */ |
#define SHELL_PROGRESS_RESET |
#define SHELL_STRINGIFY | ( | f | ) |
#define SHELL_TRACE_EXPANDED 1 /* Show expanded SQL text */ |
#define SHELL_TRACE_NORMALIZED 2 /* Show normalized SQL text */ |
#define ShellClearFlag | ( | P, | |
X ) |
#define ShellHasFlag | ( | P, | |
X ) |
#define SHFLG_Backslash 0x00000004 /* The --backslash option is used */ |
#define SHFLG_CountChanges 0x00000020 /* .changes setting */ |
#define SHFLG_DumpDataOnly 0x00000100 /* .dump show data only */ |
#define SHFLG_DumpNoSys 0x00000200 /* .dump omits system tables */ |
#define SHFLG_Echo 0x00000040 /* .echo on/off, or --echo setting */ |
#define SHFLG_HeaderSet 0x00000080 /* showHeader has been specified */ |
#define SHFLG_Lookaside 0x00000002 /* Lookaside memory is used */ |
#define SHFLG_Newlines 0x00000010 /* .dump --newline flag */ |
#define SHFLG_Pagecache 0x00000001 /* The --pagecache option is used */ |
#define SHFLG_PreserveRowid 0x00000008 /* .dump preserves rowid values */ |
#define SHFLG_TestingMode 0x00000400 /* allow unsafe testing features */ |
#define SMALLEST_INT64 (((sqlite3_int64)-1) - LARGEST_INT64) |
#define sputz | ( | fp, | |
z ) |
#define STAT_CHR_SRC | ( | mode | ) |
#define SWAP_DOUBLE | ( | X, | |
Y ) |
#define UNIQUE_TABLE_NAME "t592690916721053953805701627921227776" |
typedef struct sqlite3_vfs ApndVfs |
typedef struct ColModeOpts ColModeOpts |
typedef typedefSQLITE_EXTENSION_INIT1 struct completion_vtab completion_vtab |
typedef typedefSQLITE_EXTENSION_INIT1 struct Decimal Decimal |
typedef sqlite3_int64 i64 |
typedef unsigned short ReStateNumber |
typedef struct ReStateSet ReStateSet |
typedef struct SequenceSpec SequenceSpec |
typedef typedefSQLITE_EXTENSION_INIT1 struct SHA1Context SHA1Context |
typedef SQLITE_EXTENSION_INIT1 struct Stmtrand Stmtrand |
typedef struct DynaPrompt* t_DynaPromptRef |
typedef sqlite3_uint64 u64 |
enum QuickScanState |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 9994 of file shell.c.
Referenced by apndIsOrdinaryDatabaseFile().
|
static |
Definition at line 10019 of file shell.c.
Referenced by apndOpen().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 9969 of file shell.c.
Referenced by apndIsAppendvfsDatabase(), and apndOpen().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 9779 of file shell.c.
Referenced by apndTruncate(), and apndWrite().
|
static |
Definition at line 1486 of file shell.c.
Referenced by captureOutputCallback(), do_meta_command(), dump_callback(), and shellFakeSchema().
|
static |
|
static |
Definition at line 5302 of file shell.c.
Referenced by sqlite3_base_init().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
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().
|
static |
Definition at line 645 of file shell.c.
Referenced by do_meta_command(), dump_callback(), expertDotCommand(), main(), readHexDb(), runOneSqlLine(), and shellAddSchemaName().
int cli_wcwidth | ( | int | c | ) |
Definition at line 1088 of file shell.c.
Referenced by translateForDisplayAndDup(), and utf8_width_print().
void close_db | ( | sqlite3 * | db | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 9186 of file shell.c.
Referenced by completionClose(), and completionFilter().
|
static |
|
static |
|
static |
|
static |
Definition at line 9216 of file shell.c.
Referenced by completionFilter().
|
static |
|
static |
|
static |
Definition at line 13709 of file shell.c.
Referenced by idxCreateFromCons().
|
static |
|
static |
|
static |
Definition at line 8168 of file shell.c.
Referenced by writefileFunc().
|
static |
Definition at line 4140 of file shell.c.
Referenced by decimalAddFunc(), decimalSubFunc(), decimalSumInverse(), and decimalSumStep().
|
static |
Definition at line 3744 of file shell.c.
Referenced by decimal_free(), and decimalSumFinalize().
Definition at line 4055 of file shell.c.
Referenced by decimalCmpFunc(), and decimalCollFunc().
|
static |
Definition at line 4111 of file shell.c.
Referenced by decimal_add().
|
static |
Definition at line 3751 of file shell.c.
Referenced by decimalAddFunc(), decimalCmpFunc(), decimalCollFunc(), decimalFromDouble(), decimalFunc(), decimalMulFunc(), decimalPow2(), decimalPow2Func(), decimalSubFunc(), decimalSumInverse(), and decimalSumStep().
|
static |
Definition at line 3877 of file shell.c.
Referenced by decimalAddFunc(), decimalCmpFunc(), decimalFunc(), decimalMulFunc(), decimalSubFunc(), decimalSumInverse(), and decimalSumStep().
|
static |
Definition at line 3933 of file shell.c.
Referenced by decimalAddFunc(), decimalFunc(), decimalMulFunc(), decimalSubFunc(), decimalSumFinalize(), and decimalSumValue().
|
static |
Definition at line 3988 of file shell.c.
Referenced by decimalFunc(), and decimalPow2Func().
|
static |
Definition at line 4402 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 4085 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 4374 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 4296 of file shell.c.
Referenced by decimal_new().
|
static |
Definition at line 4354 of file shell.c.
Referenced by sqlite3_decimal_init().
Definition at line 4213 of file shell.c.
Referenced by decimalFromDouble(), decimalMulFunc(), and decimalPow2().
|
static |
Definition at line 4496 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 3762 of file shell.c.
Referenced by decimal_new(), decimalCollFunc(), decimalFromDouble(), and decimalPow2().
|
static |
Definition at line 4261 of file shell.c.
Referenced by decimalFromDouble(), and decimalPow2Func().
|
static |
Definition at line 4525 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 4415 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 4484 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 4463 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 4437 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 4479 of file shell.c.
Referenced by sqlite3_decimal_init().
|
static |
Definition at line 1118 of file shell.c.
Referenced by translateForDisplayAndDup(), and utf8_width_print().
int deduceDatabaseType | ( | const char * | zName, |
int | dfltZip ) |
|
static |
|
static |
|
static |
|
static |
|
static |
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().
void dummyUDF | ( | sqlite3_context * | up1, |
int | up2, | ||
sqlite3_value ** | up3 ) |
Definition at line 14680 of file shell.c.
Referenced by registerUDFs().
void dummyUDFvalue | ( | sqlite3_context * | up1 | ) |
Definition at line 14686 of file shell.c.
Referenced by registerUDFs().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 13209 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
Definition at line 13304 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
Definition at line 13353 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
Definition at line 13167 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
Definition at line 14158 of file shell.c.
Referenced by idxCreateVtabSchema(), and sqlite3_expert_new().
|
static |
Definition at line 13135 of file shell.c.
Referenced by expertConnect().
|
static |
Definition at line 13203 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
|
static |
Definition at line 13317 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
Definition at line 13366 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
|
static |
|
static |
Definition at line 13325 of file shell.c.
Referenced by expertFilter(), and idxRegisterVtab().
|
static |
Definition at line 13292 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
Definition at line 13344 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
Definition at line 14193 of file shell.c.
Referenced by idxCreateVtabSchema(), and sqlite3_expert_new().
|
static |
Definition at line 13276 of file shell.c.
Referenced by idxRegisterVtab().
|
static |
|
static |
|
static |
|
static |
Definition at line 8278 of file shell.c.
Referenced by fsdirFilter(), and fsdirNext().
|
static |
Definition at line 8254 of file shell.c.
Referenced by fileLinkStat(), makeDirectory(), and writeFile().
|
static |
Definition at line 16448 of file shell.c.
Referenced by vfstraceOpen().
|
static |
|
static |
|
static |
Definition at line 1473 of file shell.c.
Referenced by do_meta_command(), dump_callback(), and shellFakeSchema().
|
static |
Definition at line 8878 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8649 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8736 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8578 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8605 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8811 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8822 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8672 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8613 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8944 of file shell.c.
Referenced by sqlite3_fileio_init().
|
static |
Definition at line 8628 of file shell.c.
Referenced by fsdirClose(), and fsdirFilter().
|
static |
Definition at line 8801 of file shell.c.
Referenced by fsdirRegister().
|
static |
Definition at line 8661 of file shell.c.
Referenced by fsdirFilter(), and fsdirNext().
|
static |
Definition at line 6304 of file shell.c.
Referenced by setupSequence().
|
static |
Definition at line 3385 of file shell.c.
Referenced by sha1Func(), and sha1QueryFunc().
|
static |
Definition at line 3329 of file shell.c.
Referenced by sha1Func(), and sha1QueryFunc().
|
static |
Definition at line 3340 of file shell.c.
Referenced by hash_finish(), hash_step_vformat(), sha1Func(), and sha1QueryFunc().
|
static |
Definition at line 3366 of file shell.c.
Referenced by sha1QueryFunc().
|
static |
Definition at line 1404 of file shell.c.
Referenced by booleanValue(), integerValue(), and resolve_backslashes().
|
static |
Definition at line 13599 of file shell.c.
Referenced by idxCreateFromCons().
|
static |
Definition at line 13545 of file shell.c.
Referenced by idxAppendColDefn(), idxCreateVtabSchema(), idxFindIndexes(), idxPopulateOneStat1(), idxProcessOneTrigger(), and sqlite3_expert_analyze().
|
static |
Definition at line 14012 of file shell.c.
Referenced by sqlite3_expert_new().
|
static |
Definition at line 14532 of file shell.c.
Referenced by idxPopulateStat1().
|
static |
Definition at line 13870 of file shell.c.
Referenced by idxScanFree().
|
static |
Definition at line 13853 of file shell.c.
Referenced by sqlite3_expert_analyze().
|
static |
Definition at line 13718 of file shell.c.
Referenced by idxCreateFromWhere().
|
static |
Definition at line 13814 of file shell.c.
Referenced by idxCreateCandidates().
|
static |
Definition at line 14211 of file shell.c.
Referenced by sqlite3_expert_new().
|
static |
Definition at line 13069 of file shell.c.
Referenced by idxPrepareStmt(), idxProcessOneTrigger(), and sqlite3_expert_sql().
|
static |
Definition at line 13433 of file shell.c.
Referenced by idxCreateVtabSchema(), idxFindCompatible(), idxFindIndexes(), idxGetTableInfo(), idxLargestIndex(), idxPopulateOneStat1(), idxPopulateStat1(), idxProcessOneTrigger(), and sqlite3_expert_new().
|
static |
Definition at line 13637 of file shell.c.
Referenced by idxCreateFromCons().
|
static |
Definition at line 13806 of file shell.c.
Referenced by idxCreateFromWhere().
|
static |
Definition at line 13942 of file shell.c.
Referenced by sqlite3_expert_analyze().
Definition at line 13448 of file shell.c.
Referenced by idxCreateVtabSchema().
|
static |
Definition at line 12985 of file shell.c.
Referenced by idxCreateFromCons(), and idxFindIndexes().
|
static |
Definition at line 12953 of file shell.c.
Referenced by idxFindIndexes(), and sqlite3_expert_destroy().
|
static |
Definition at line 13022 of file shell.c.
Referenced by idxHashSearch(), and idxPopulateOneStat1().
|
static |
Definition at line 12946 of file shell.c.
Referenced by idxFindIndexes().
|
static |
Definition at line 13042 of file shell.c.
Referenced by idxFindIndexes().
|
static |
Definition at line 12971 of file shell.c.
Referenced by idxHashAdd(), and idxHashFind().
|
static |
Definition at line 13577 of file shell.c.
Referenced by idxAppendColDefn(), and idxCreateFromCons().
|
static |
Definition at line 14405 of file shell.c.
Referenced by idxPopulateStat1().
|
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().
|
static |
Definition at line 13052 of file shell.c.
Referenced by expertBestIndex().
|
static |
Definition at line 14425 of file shell.c.
Referenced by idxPopulateStat1().
|
static |
Definition at line 14556 of file shell.c.
Referenced by sqlite3_expert_analyze().
|
static |
Definition at line 13079 of file shell.c.
Referenced by idxCreateVtabSchema(), idxLargestIndex(), idxPopulateOneStat1(), idxPopulateStat1(), idxPrintfPrepareStmt(), and sqlite3_expert_sql().
|
static |
Definition at line 13096 of file shell.c.
Referenced by expertFilter(), idxFindCompatible(), idxFindIndexes(), idxGetTableInfo(), idxProcessOneTrigger(), and sqlite3_expert_new().
|
static |
Definition at line 14050 of file shell.c.
Referenced by idxProcessTriggers().
|
static |
Definition at line 14133 of file shell.c.
Referenced by sqlite3_expert_analyze().
|
static |
Definition at line 13394 of file shell.c.
Referenced by idxCreateVtabSchema().
|
static |
Definition at line 14329 of file shell.c.
Referenced by idxPopulateStat1().
|
static |
Definition at line 14288 of file shell.c.
Referenced by idxPopulateStat1().
Definition at line 13884 of file shell.c.
Referenced by sqlite3_expert_destroy(), and sqlite3_expert_sql().
|
static |
Definition at line 13900 of file shell.c.
Referenced by sqlite3_expert_destroy(), and sqlite3_expert_sql().
|
static |
Definition at line 13914 of file shell.c.
Referenced by sqlite3_expert_destroy().
|
static |
Definition at line 13926 of file shell.c.
Referenced by sqlite3_expert_destroy().
|
static |
Definition at line 5953 of file shell.c.
Referenced by sqlite3_ieee_init().
|
static |
Definition at line 6068 of file shell.c.
Referenced by sqlite3_ieee_init().
|
static |
Definition at line 6088 of file shell.c.
Referenced by sqlite3_ieee_init().
|
static |
Definition at line 6123 of file shell.c.
Referenced by sqlite3_ieee_init().
|
static |
|
static |
|
static |
Definition at line 1470 of file shell.c.
Referenced by do_meta_command(), dump_callback(), freeText(), and shellFakeSchema().
|
static |
Definition at line 15673 of file shell.c.
Referenced by sqlite3_intck_step(), and sqlite3_intck_test_sql().
|
static |
|
static |
Definition at line 15305 of file shell.c.
Referenced by intckCheckObjectSql().
|
static |
Definition at line 15284 of file shell.c.
Referenced by intckCheckObjectSql(), intckExec(), intckFindObject(), intckGetAutoIndex(), intckIsIndex(), intckSaveKey(), sqlite3_intck_step(), and sqlite3_intck_unlock().
|
static |
Definition at line 15437 of file shell.c.
Referenced by sqlite3_intck_step().
|
static |
Definition at line 15635 of file shell.c.
Referenced by intckCheckObjectSql().
|
static |
Definition at line 15483 of file shell.c.
Referenced by intckParseCreateIndex().
|
static |
Definition at line 15649 of file shell.c.
Referenced by intckCheckObjectSql().
|
static |
Definition at line 15510 of file shell.c.
Referenced by intckParseCreateIndex().
|
static |
Definition at line 15316 of file shell.c.
Referenced by intckCheckObjectSql(), intckFindObject(), intckSaveKey(), and sqlite3_intck_step().
|
static |
Definition at line 15529 of file shell.c.
Referenced by intckParseCreateIndexFunc().
|
static |
Definition at line 15614 of file shell.c.
Referenced by sqlite3_intck_open().
|
static |
Definition at line 15242 of file shell.c.
Referenced by intckExec(), intckGetAutoIndex(), intckPrepareFmt(), intckSaveKey(), and sqlite3_intck_step().
|
static |
Definition at line 15264 of file shell.c.
Referenced by intckCheckObjectSql(), intckFindObject(), intckIsIndex(), and intckSaveKey().
|
static |
Definition at line 15228 of file shell.c.
Referenced by intckFinalize(), and intckPrepare().
|
static |
Definition at line 15337 of file shell.c.
Referenced by sqlite3_intck_unlock().
|
static |
Definition at line 15295 of file shell.c.
Referenced by intckExec(), and intckGetAutoIndex().
|
static |
Definition at line 1414 of file shell.c.
Referenced by booleanValue(), do_meta_command(), expertDotCommand(), and main().
|
static |
|
extern |
|
static |
Definition at line 1235 of file shell.c.
Referenced by shell_callback().
|
static |
Definition at line 1175 of file shell.c.
Referenced by translateForDisplayAndDup(), and utf8_width_print().
|
static |
Definition at line 2487 of file shell.c.
Referenced by SHA3Update().
|
static |
|
static |
|
static |
|
static |
Definition at line 1324 of file shell.c.
Referenced by one_input_line().
|
static |
Definition at line 16694 of file shell.c.
Referenced by vfstraceLock(), and vfstraceUnlock().
|
static |
Definition at line 8513 of file shell.c.
Referenced by sqlite3_fileio_init().
int SQLITE_CDECL main | ( | int | argc, |
char ** | argv ) |
|
static |
|
static |
Definition at line 8300 of file shell.c.
Referenced by writefileFunc().
|
static |
Definition at line 2078 of file shell.c.
Referenced by memtraceRealloc().
|
static |
Definition at line 2071 of file shell.c.
Referenced by memtraceRealloc().
|
static |
|
static |
|
static |
Definition at line 1368 of file shell.c.
Referenced by process_input().
|
static |
|
static |
Definition at line 1286 of file shell.c.
Referenced by do_meta_command().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
extern |
|
static |
Definition at line 4772 of file shell.c.
Referenced by percentInverse(), and percentStep().
|
static |
Definition at line 5021 of file shell.c.
Referenced by percentFinal(), and percentValue().
|
static |
Definition at line 4797 of file shell.c.
Referenced by percentStep().
|
static |
Definition at line 5055 of file shell.c.
Referenced by sqlite3_percentile_init().
|
static |
Definition at line 4974 of file shell.c.
Referenced by sqlite3_percentile_init().
|
static |
Definition at line 4746 of file shell.c.
Referenced by percentInverse(), and percentStep().
|
static |
Definition at line 4756 of file shell.c.
Referenced by percentStep().
|
static |
Definition at line 4923 of file shell.c.
Referenced by percentCompute(), percentInverse(), and percentSort().
|
static |
Definition at line 4816 of file shell.c.
Referenced by sqlite3_percentile_init().
|
static |
Definition at line 5058 of file shell.c.
Referenced by sqlite3_percentile_init().
|
extern |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 6403 of file shell.c.
Referenced by seriesNext().
|
static |
Definition at line 5554 of file shell.c.
Referenced by toBase85().
|
static |
|
static |
Definition at line 1530 of file shell.c.
Referenced by do_meta_command(), dump_callback(), set_table_name(), shell_callback(), shellAddSchemaName(), and shellFakeSchema().
|
static |
|
static |
|
static |
Definition at line 7213 of file shell.c.
Referenced by re_match().
|
static |
Definition at line 7455 of file shell.c.
Referenced by re_compile(), re_subcompile_re(), and re_subcompile_string().
|
static |
|
static |
Definition at line 7462 of file shell.c.
Referenced by re_subcompile_string().
|
static |
Definition at line 7262 of file shell.c.
Referenced by re_match().
|
static |
Definition at line 7490 of file shell.c.
Referenced by re_subcompile_string().
|
static |
|
static |
Definition at line 7473 of file shell.c.
Referenced by re_esc_char().
|
static |
Definition at line 7440 of file shell.c.
Referenced by re_append(), re_subcompile_re(), and re_subcompile_string().
|
static |
|
static |
Definition at line 7224 of file shell.c.
Referenced by re_compile(), and re_next_char_nocase().
|
static |
Definition at line 7249 of file shell.c.
Referenced by re_compile().
|
static |
Definition at line 7424 of file shell.c.
Referenced by re_compile(), re_copy(), and re_insert().
|
static |
Definition at line 7267 of file shell.c.
Referenced by re_match().
|
static |
Definition at line 7799 of file shell.c.
Referenced by sqlite3_regexp_init().
|
static |
Definition at line 7539 of file shell.c.
Referenced by re_compile(), and re_subcompile_string().
|
static |
Definition at line 7561 of file shell.c.
Referenced by re_subcompile_re().
|
static |
Definition at line 7256 of file shell.c.
Referenced by re_match().
|
static |
|
static |
Definition at line 8110 of file shell.c.
Referenced by fsdirColumn(), and readfileFunc().
|
static |
Definition at line 8152 of file shell.c.
Referenced by sqlite3_fileio_init().
|
static |
Definition at line 14694 of file shell.c.
Referenced by sqlite3_expert_new().
|
static |
Definition at line 7531 of file shell.c.
Referenced by re_subcompile_re(), and re_subcompile_string().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 6349 of file shell.c.
Referenced by seriesFilter().
|
static |
Definition at line 3429 of file shell.c.
Referenced by sqlite3_sha_init().
|
static |
Definition at line 3468 of file shell.c.
Referenced by sqlite3_sha_init().
|
static |
Definition at line 3262 of file shell.c.
Referenced by hash_step().
|
static |
Definition at line 2940 of file shell.c.
Referenced by sha3QueryFunc(), and sha3UpdateFromValue().
|
static |
Definition at line 3134 of file shell.c.
Referenced by sqlite3_shathree_init().
|
static |
Definition at line 3109 of file shell.c.
Referenced by sqlite3_shathree_init().
|
static |
Definition at line 2879 of file shell.c.
Referenced by sha3AggFinal(), sha3Func(), and sha3QueryFunc().
|
static |
Definition at line 2908 of file shell.c.
Referenced by sqlite3_shathree_init().
|
static |
Definition at line 2809 of file shell.c.
Referenced by sha3AggStep(), sha3Func(), and sha3QueryFunc().
|
static |
Definition at line 3041 of file shell.c.
Referenced by sqlite3_shathree_init().
|
static |
Definition at line 2839 of file shell.c.
Referenced by sha3_step_vformat(), SHA3Final(), sha3Func(), sha3QueryFunc(), and sha3UpdateFromValue().
|
static |
Definition at line 2958 of file shell.c.
Referenced by sha3AggStep(), and sha3QueryFunc().
|
static |
|
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().
|
static |
|
static |
|
static |
|
static |
Definition at line 969 of file shell.c.
Referenced by do_meta_command(), exec_prepared_stmt(), and shell_check_oom().
|
static |
Definition at line 878 of file shell.c.
Referenced by dynamicContinuePrompt().
|
static |
Definition at line 867 of file shell.c.
Referenced by do_meta_command(), and dynamicContinuePrompt().
|
static |
|
static |
|
static |
int shellDeleteFile | ( | const char * | zFilename | ) |
|
static |
|
static |
Definition at line 1544 of file shell.c.
Referenced by shellAddSchemaName(), and shellModuleSchema().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void shellReset | ( | int * | pRc, |
sqlite3_stmt * | pStmt ) |
|
static |
|
static |
|
static |
|
static |
Definition at line 5244 of file shell.c.
Referenced by fromBase64().
|
static |
Definition at line 5537 of file shell.c.
Referenced by fromBase85().
|
static |
int sqlite3_appendvfs_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_base_init | ( | sqlite3 * | db, |
char ** | pzErr, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_completion_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_decimal_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_expert_analyze | ( | sqlite3expert * | p, |
char ** | pzErr ) |
Definition at line 14895 of file shell.c.
Referenced by expertFinish().
int sqlite3_expert_config | ( | sqlite3expert * | p, |
int | op, | ||
... ) |
Definition at line 14822 of file shell.c.
Referenced by expertDotCommand().
int sqlite3_expert_count | ( | sqlite3expert * | p | ) |
Definition at line 14940 of file shell.c.
Referenced by expertFinish().
void sqlite3_expert_destroy | ( | sqlite3expert * | p | ) |
Definition at line 14975 of file shell.c.
Referenced by expertFinish(), and sqlite3_expert_new().
sqlite3expert * sqlite3_expert_new | ( | sqlite3 * | db, |
char ** | pzErr ) |
Definition at line 14741 of file shell.c.
Referenced by expertDotCommand().
const char * sqlite3_expert_report | ( | sqlite3expert * | p, |
int | iStmt, | ||
int | eReport ) |
Definition at line 14949 of file shell.c.
Referenced by expertFinish().
int sqlite3_expert_sql | ( | sqlite3expert * | p, |
const char * | zSql, | ||
char ** | pzErr ) |
Definition at line 14846 of file shell.c.
Referenced by expertHandleSQL().
int sqlite3_fileio_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_ieee_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
void sqlite3_intck_close | ( | sqlite3_intck * | pCk | ) |
Definition at line 15980 of file shell.c.
Referenced by intckDatabaseCmd(), and sqlite3_intck_open().
int sqlite3_intck_error | ( | sqlite3_intck * | pCk, |
const char ** | pzErr ) |
Definition at line 16070 of file shell.c.
Referenced by intckDatabaseCmd().
const char * sqlite3_intck_message | ( | sqlite3_intck * | pCk | ) |
Definition at line 16056 of file shell.c.
Referenced by intckDatabaseCmd().
int sqlite3_intck_open | ( | sqlite3 * | db, |
const char * | zDb, | ||
sqlite3_intck ** | ppOut ) |
Definition at line 15946 of file shell.c.
Referenced by intckDatabaseCmd().
int sqlite3_intck_step | ( | sqlite3_intck * | pCk | ) |
Definition at line 15998 of file shell.c.
Referenced by intckDatabaseCmd().
const char * sqlite3_intck_test_sql | ( | sqlite3_intck * | pCk, |
const char * | zObj ) |
int sqlite3_intck_unlock | ( | sqlite3_intck * | pCk | ) |
Definition at line 16079 of file shell.c.
Referenced by intckDatabaseCmd().
int sqlite3_percentile_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_regexp_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_series_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_sha_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_shathree_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_stmtrand_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3_uint_init | ( | sqlite3 * | db, |
char ** | pzErrMsg, | ||
const sqlite3_api_routines * | pApi ) |
int sqlite3CompletionVtabInit | ( | sqlite3 * | db | ) |
Definition at line 9502 of file shell.c.
Referenced by sqlite3_completion_init().
int sqlite3MemTraceActivate | ( | FILE * | out | ) |
int sqlite3MemTraceDeactivate | ( | void | ) |
int sqlite3PcacheTraceActivate | ( | FILE * | out | ) |
int sqlite3PcacheTraceDeactivate | ( | void | ) |
|
static |
Definition at line 16154 of file shell.c.
Referenced by sqlite3_stmtrand_init().
|
static |
|
static |
Definition at line 16564 of file shell.c.
Referenced by vfstraceShmLock(), and vfstraceSync().
|
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().
|
static |
Definition at line 1273 of file shell.c.
Referenced by exec_prepared_stmt_columnar(), and shell_callback().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 3640 of file shell.c.
Referenced by sqlite3_uint_init().
void useDummyCS | ( | void * | up1, |
sqlite3 * | db, | ||
int | etr, | ||
const char * | zName ) |
Definition at line 14670 of file shell.c.
Referenced by sqlite3_expert_new().
|
static |
Definition at line 1195 of file shell.c.
Referenced by exec_prepared_stmt_columnar(), and shell_callback().
|
static |
|
static |
Definition at line 16478 of file shell.c.
Referenced by vfstrace_print_errcode().
|
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().
|
static |
Definition at line 16459 of file shell.c.
Referenced by vfstrace_print_errcode(), vfstrace_register(), vfstraceAccess(), vfstraceCheckReservedLock(), vfstraceClose(), vfstraceCurrentTime(), vfstraceCurrentTimeInt64(), vfstraceDelete(), vfstraceDeviceCharacteristics(), vfstraceDlClose(), vfstraceDlError(), vfstraceDlOpen(), vfstraceFetch(), vfstraceFileControl(), vfstraceFileSize(), vfstraceFullPathname(), vfstraceGetLastError(), vfstraceLock(), vfstraceOpen(), vfstraceRandomness(), vfstraceRead(), vfstraceSectorSize(), vfstraceShmBarrier(), vfstraceShmLock(), vfstraceShmMap(), vfstraceShmUnmap(), vfstraceSleep(), vfstraceSync(), vfstraceTruncate(), vfstraceUnfetch(), vfstraceUnlock(), and vfstraceWrite().
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 |
Definition at line 17162 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 16738 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 16581 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17276 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 17286 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 17146 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 16970 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17241 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 17219 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 17206 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 17058 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 16754 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 16679 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17185 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 17300 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 17324 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 16708 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17332 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 16574 of file shell.c.
Referenced by vfstraceAccess(), vfstraceCheckReservedLock(), vfstraceClose(), vfstraceCurrentTime(), vfstraceCurrentTimeInt64(), vfstraceDelete(), vfstraceDeviceCharacteristics(), vfstraceDlClose(), vfstraceDlError(), vfstraceDlOpen(), vfstraceFetch(), vfstraceFileControl(), vfstraceFileSize(), vfstraceFullPathname(), vfstraceGetLastError(), vfstraceLock(), vfstraceOpen(), vfstraceRandomness(), vfstraceRead(), vfstraceSectorSize(), vfstraceShmBarrier(), vfstraceShmLock(), vfstraceShmMap(), vfstraceShmUnmap(), vfstraceSleep(), vfstraceSync(), vfstraceTruncate(), vfstraceUnfetch(), vfstraceUnlock(), and vfstraceWrite().
|
static |
Definition at line 17085 of file shell.c.
Referenced by vfstrace_register(), and vfstrace_unregister().
|
static |
Definition at line 17253 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 16599 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 16956 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17315 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 17040 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 16985 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17023 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17047 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17265 of file shell.c.
Referenced by vfstrace_register().
|
static |
Definition at line 16654 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 16639 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 17069 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 16723 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 16619 of file shell.c.
Referenced by vfstraceOpen().
|
static |
Definition at line 8340 of file shell.c.
Referenced by writefileFunc().
|
static |
Definition at line 8463 of file shell.c.
Referenced by sqlite3_fileio_init().
|
static |
const char * zSkipValidUtf8 | ( | const char * | z, |
int | nAccept, | ||
long | ccm ) |
|
static |
Definition at line 4736 of file shell.c.
Referenced by sqlite3_percentile_init().
|
static |
Definition at line 9730 of file shell.c.
Referenced by apndOpen().
|
static |
Definition at line 9705 of file shell.c.
Referenced by sqlite3_appendvfs_init().
|
static |
|
static |
Definition at line 9989 of file shell.c.
Referenced by apndIsAppendvfsDatabase(), and apndIsOrdinaryDatabaseFile().
const struct { ... } aUWidth[] |
|
static |
|
static |
Definition at line 5192 of file shell.c.
Referenced by fromBase64().
|
static |
Definition at line 819 of file shell.c.
Referenced by do_meta_command(), main(), process_input(), and process_sqliterc().
|
static |
Definition at line 9472 of file shell.c.
Referenced by sqlite3CompletionVtabInit().
|
static |
Definition at line 860 of file shell.c.
Referenced by do_meta_command(), dynamicContinuePrompt(), and main_init().
|
static |
|
static |
Definition at line 637 of file shell.c.
Referenced by do_meta_command().
|
static |
Definition at line 2111 of file shell.c.
Referenced by sqlite3MemTraceActivate().
|
static |
Definition at line 2288 of file shell.c.
Referenced by sqlite3PcacheTraceActivate().
struct { ... } faultsim_state |
|
static |
Definition at line 839 of file shell.c.
Referenced by do_meta_command(), interrupt_handler(), and open_db().
|
static |
int iFirst |
Definition at line 1012 of file shell.c.
Referenced by cli_wcwidth().
|
static |
Definition at line 858 of file shell.c.
Referenced by do_meta_command(), main_init(), and one_input_line().
|
static |
Definition at line 2067 of file shell.c.
Referenced by memtraceFree(), memtraceInit(), memtraceMalloc(), memtraceRealloc(), memtraceRoundup(), memtraceShutdown(), memtraceSize(), sqlite3MemTraceActivate(), and sqlite3MemTraceDeactivate().
|
static |
Definition at line 2068 of file shell.c.
Referenced by memtraceFree(), memtraceMalloc(), memtraceRealloc(), sqlite3MemTraceActivate(), and sqlite3MemTraceDeactivate().
|
static |
|
static |
|
static |
Definition at line 2178 of file shell.c.
Referenced by pcachetraceCachesize(), pcachetraceCreate(), pcachetraceDestroy(), pcachetraceFetch(), pcachetraceInit(), pcachetracePagecount(), pcachetraceRekey(), pcachetraceShrink(), pcachetraceShutdown(), pcachetraceTruncate(), pcachetraceUnpin(), sqlite3PcacheTraceActivate(), and sqlite3PcacheTraceDeactivate().
|
static |
Definition at line 2179 of file shell.c.
Referenced by pcachetraceCachesize(), pcachetraceCreate(), pcachetraceDestroy(), pcachetraceFetch(), pcachetraceInit(), pcachetracePagecount(), pcachetraceRekey(), pcachetraceShrink(), pcachetraceShutdown(), pcachetraceTruncate(), pcachetraceUnpin(), sqlite3PcacheTraceActivate(), and sqlite3PcacheTraceDeactivate().
|
static |
Definition at line 844 of file shell.c.
Referenced by ascii_read_one_field(), csv_read_one_field(), do_meta_command(), exec_prepared_stmt_columnar(), interrupt_handler(), one_input_line(), process_input(), and sayAbnormalExit().
|
static |
Definition at line 6997 of file shell.c.
Referenced by sqlite3_series_init().
|
static |
|
static |
Definition at line 825 of file shell.c.
Referenced by do_meta_command(), main(), process_input(), process_sqliterc(), and runOneSqlLine().
|
static |
Definition at line 16431 of file shell.c.
Referenced by vfstrace_register().
unsigned char w |
Definition at line 1011 of file shell.c.
Referenced by cli_wcwidth().