Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: third_party/sqlite/src/src/pragma.h

Issue 2732553002: [sql] SQLite patch to implement "smart" auto-vacuum. (Closed)
Patch Set: sigh, keep clang happy on windows Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/src/btreeInt.h ('k') | third_party/sqlite/src/src/pragma.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* DO NOT EDIT! 1 /* DO NOT EDIT!
2 ** This file is automatically generated by the script at 2 ** This file is automatically generated by the script at
3 ** ../tool/mkpragmatab.tcl. To update the set of pragmas, edit 3 ** ../tool/mkpragmatab.tcl. To update the set of pragmas, edit
4 ** that script and rerun it. 4 ** that script and rerun it.
5 */ 5 */
6 6
7 /* The various pragma types */ 7 /* The various pragma types */
8 #define PragTyp_HEADER_VALUE 0 8 #define PragTyp_HEADER_VALUE 0
9 #define PragTyp_AUTO_VACUUM 1 9 #define PragTyp_AUTO_VACUUM 1
10 #define PragTyp_FLAG 2 10 #define PragTyp_FLAG 2
(...skipping 30 matching lines...) Expand all
41 #define PragTyp_TEMP_STORE_DIRECTORY 33 41 #define PragTyp_TEMP_STORE_DIRECTORY 33
42 #define PragTyp_THREADS 34 42 #define PragTyp_THREADS 34
43 #define PragTyp_WAL_AUTOCHECKPOINT 35 43 #define PragTyp_WAL_AUTOCHECKPOINT 35
44 #define PragTyp_WAL_CHECKPOINT 36 44 #define PragTyp_WAL_CHECKPOINT 36
45 #define PragTyp_ACTIVATE_EXTENSIONS 37 45 #define PragTyp_ACTIVATE_EXTENSIONS 37
46 #define PragTyp_HEXKEY 38 46 #define PragTyp_HEXKEY 38
47 #define PragTyp_KEY 39 47 #define PragTyp_KEY 39
48 #define PragTyp_REKEY 40 48 #define PragTyp_REKEY 40
49 #define PragTyp_LOCK_STATUS 41 49 #define PragTyp_LOCK_STATUS 41
50 #define PragTyp_PARSER_TRACE 42 50 #define PragTyp_PARSER_TRACE 42
51 #define PragTyp_AUTO_VACUUM_SLACK_PAGES 43
51 52
52 /* Property flags associated with various pragma. */ 53 /* Property flags associated with various pragma. */
53 #define PragFlg_NeedSchema 0x01 /* Force schema load before running */ 54 #define PragFlg_NeedSchema 0x01 /* Force schema load before running */
54 #define PragFlg_NoColumns 0x02 /* OP_ResultRow called with zero columns */ 55 #define PragFlg_NoColumns 0x02 /* OP_ResultRow called with zero columns */
55 #define PragFlg_NoColumns1 0x04 /* zero columns if RHS argument is present */ 56 #define PragFlg_NoColumns1 0x04 /* zero columns if RHS argument is present */
56 #define PragFlg_ReadOnly 0x08 /* Read-only HEADER_VALUE */ 57 #define PragFlg_ReadOnly 0x08 /* Read-only HEADER_VALUE */
57 #define PragFlg_Result0 0x10 /* Acts as query when no argument */ 58 #define PragFlg_Result0 0x10 /* Acts as query when no argument */
58 #define PragFlg_Result1 0x20 /* Acts as query when has one argument */ 59 #define PragFlg_Result1 0x20 /* Acts as query when has one argument */
59 #define PragFlg_SchemaOpt 0x40 /* Schema restricts name search if present */ 60 #define PragFlg_SchemaOpt 0x40 /* Schema restricts name search if present */
60 #define PragFlg_SchemaReq 0x80 /* Schema required - "main" is default */ 61 #define PragFlg_SchemaReq 0x80 /* Schema required - "main" is default */
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 /* ColNames: */ 0, 0, 139 /* ColNames: */ 0, 0,
139 /* iArg: */ BTREE_APPLICATION_ID }, 140 /* iArg: */ BTREE_APPLICATION_ID },
140 #endif 141 #endif
141 #if !defined(SQLITE_OMIT_AUTOVACUUM) 142 #if !defined(SQLITE_OMIT_AUTOVACUUM)
142 {/* zName: */ "auto_vacuum", 143 {/* zName: */ "auto_vacuum",
143 /* ePragTyp: */ PragTyp_AUTO_VACUUM, 144 /* ePragTyp: */ PragTyp_AUTO_VACUUM,
144 /* ePragFlg: */ PragFlg_NeedSchema|PragFlg_Result0|PragFlg_SchemaReq|PragFlg_ NoColumns1, 145 /* ePragFlg: */ PragFlg_NeedSchema|PragFlg_Result0|PragFlg_SchemaReq|PragFlg_ NoColumns1,
145 /* ColNames: */ 0, 0, 146 /* ColNames: */ 0, 0,
146 /* iArg: */ 0 }, 147 /* iArg: */ 0 },
147 #endif 148 #endif
149 #if !defined(SQLITE_OMIT_AUTOVACUUM)
150 { /* zName: */ "auto_vacuum_slack_pages",
151 /* ePragTyp: */ PragTyp_AUTO_VACUUM_SLACK_PAGES,
152 /* ePragFlg: */ PragFlg_NeedSchema|PragFlg_Result0|PragFlg_SchemaReq|PragFl g_NoColumns1,
153 /* ColNames: */ 0, 0,
154 /* iArg: */ 0 },
155 #endif
148 #if !defined(SQLITE_OMIT_FLAG_PRAGMAS) 156 #if !defined(SQLITE_OMIT_FLAG_PRAGMAS)
149 #if !defined(SQLITE_OMIT_AUTOMATIC_INDEX) 157 #if !defined(SQLITE_OMIT_AUTOMATIC_INDEX)
150 {/* zName: */ "automatic_index", 158 {/* zName: */ "automatic_index",
151 /* ePragTyp: */ PragTyp_FLAG, 159 /* ePragTyp: */ PragTyp_FLAG,
152 /* ePragFlg: */ PragFlg_Result0|PragFlg_NoColumns1, 160 /* ePragFlg: */ PragFlg_Result0|PragFlg_NoColumns1,
153 /* ColNames: */ 0, 0, 161 /* ColNames: */ 0, 0,
154 /* iArg: */ SQLITE_AutoIndex }, 162 /* iArg: */ SQLITE_AutoIndex },
155 #endif 163 #endif
156 #endif 164 #endif
157 {/* zName: */ "busy_timeout", 165 {/* zName: */ "busy_timeout",
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 #endif 606 #endif
599 #if !defined(SQLITE_OMIT_FLAG_PRAGMAS) 607 #if !defined(SQLITE_OMIT_FLAG_PRAGMAS)
600 {/* zName: */ "writable_schema", 608 {/* zName: */ "writable_schema",
601 /* ePragTyp: */ PragTyp_FLAG, 609 /* ePragTyp: */ PragTyp_FLAG,
602 /* ePragFlg: */ PragFlg_Result0|PragFlg_NoColumns1, 610 /* ePragFlg: */ PragFlg_Result0|PragFlg_NoColumns1,
603 /* ColNames: */ 0, 0, 611 /* ColNames: */ 0, 0,
604 /* iArg: */ SQLITE_WriteSchema|SQLITE_RecoveryMode }, 612 /* iArg: */ SQLITE_WriteSchema|SQLITE_RecoveryMode },
605 #endif 613 #endif
606 }; 614 };
607 /* Number of pragmas: 60 on by default, 73 total. */ 615 /* Number of pragmas: 60 on by default, 73 total. */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/src/btreeInt.h ('k') | third_party/sqlite/src/src/pragma.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698