diff --git a/src/sqlite3mc.c b/src/sqlite3mc.c index 43d5a5d..decc3e1 100644 --- a/src/sqlite3mc.c +++ b/src/sqlite3mc.c @@ -7,6 +7,21 @@ ** License: MIT */ +/* +** Keep temporary data in memory by default +** +** Temporary files (for example temporary tables, sort data and transient +** databases) are not encrypted. The default applies only if SQLITE_TEMP_STORE +** is not defined. Possible values: +** 0 = always use temporary files +** 1 = use temporary files, unless PRAGMA temp_store=MEMORY (SQLite's default) +** 2 = use memory, unless PRAGMA temp_store=FILE +** 3 = always use memory +*/ +#ifndef SQLITE_TEMP_STORE +#define SQLITE_TEMP_STORE 2 +#endif + /* ** If SQLite functions should be called through a dispatch table, ** thus hiding all SQLite function symbols from the linker,