205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
+
-
+
+
+
|
Some files require special C-preprocessor macro definitions.
When compiling sqlite.c, the following macros are recommended:
* -DSQLITE_OMIT_LOAD_EXTENSION=1
* -DSQLITE_ENABLE_LOCKING_STYLE=0
* -DSQLITE_THREADSAFE=0
* -DSQLITE_DEFAULT_FILE_FORMAT=4
* -DSQLITE_ENABLE_EXPLAIN_COMMENTS=1
The first symbol definition above is required; the others
are merely recommended. Extension loading is omitted
as a security measure. Fossil is single-threaded so mutexing is disabled
in SQLite as a performance enhancement.
in SQLite as a performance enhancement. The SQLITE_ENABLE_EXPLAIN_COMMENTS
option makes the output of "EXPLAIN" queries in the
"[/help?cmd=sqlite3|fossil sql]" command much more readable.
When compiling the shell.c source file, these macros are required:
* -Dmain=sqlite3_main
* -DSQLITE_OMIT_LOAD_EXTENSION=1
The "main()" routine in the shell must be changed into sqlite3_main()
|