ultimatepp/uppsrc/plugin/sqlite3/libsee/config.c
cxl 9435a7cbe7 plugin\Sqlite3: New features, updated (thanks coolman)
git-svn-id: svn://ultimatepp.org/upp/trunk@12564 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-11-22 08:51:57 +00:00

32 lines
1,003 B
C

/*
* sqleet configuration.
*
* # SKIP_HEADER_BYTES
* Keep this many bytes unencrypted in the beginning of the database header.
* Value 0 produces encrypted databases that are indistinguishable from random.
* Use 24 for compatibility with the SQLite3 Encryption Extension (SEE) so that
* database settings (e.g., page size) can be read from an encrypted database.
*/
#ifndef SKIP_HEADER_BYTES
#define SKIP_HEADER_BYTES 0
#endif
/*
* SQLite3 configuration.
*
* # SQLITE_HAS_CODEC
* Required for compiling SQLite3 with encryption support.
*
* # SQLITE_TEMP_STORE
* - 0 Store temp files on disk
* - 1 Store temp files on disk but allow overriding with `PRAGMA temp_store`
* - 2 Store temp files in memory but allow overriding with `PRAGMA temp_store`
* - 3 Store temp files on memory
* Note that temp files are *NOT* encrypted so using either 2 or 3 is critical!
*/
#ifndef SQLITE_HAS_CODEC
#define SQLITE_HAS_CODEC 1
#endif
#ifndef SQLITE_TEMP_STORE
#define SQLITE_TEMP_STORE 2
#endif