-
Notifications
You must be signed in to change notification settings - Fork 1
/
sqlite-config.h
82 lines (55 loc) · 1.72 KB
/
sqlite-config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include <linux/compiler.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/ktime.h>
#define FILE void
#define SQLITE_OS_OTHER 1
#define SQLITE_CORE 1
#define SQLITE_AMALGAMATION 1
#define SQLITE_OMIT_COMPILEOPTION_DIAGS 1
#define SQLITE_SMALL_STACKS 1
#define SQLITE_THREADSAFE 0
// It could make queries go faster?
#define SQLITE_ENABLE_STAT3 1
#define SQLITE_ENABLE_STAT4 1
#define SQLITE_ENABLE_HIDDEN_COLUMNS 1
#define SQLITE_CASE_SENSITIVE_LIKE 1
// Set into NORMAL locking mode, which shouldn't matter, given we will only use sqlite in memory
#define SQLITE_DEFAULT_LOCKING_MODE 0
#define SQLITE_DISABLE_DIRSYNC 1
#define SQLITE_DISABLE_LFS 1
// No idea what this is
#define SQLITE_ENABLE_8_3_NAMES 1
// TODO: Disable when we're confident
#define SQLITE_ENABLE_API_ARMOR 0
#define SQLITE_ENABLE_COLUMN_METADATA 1
#define SQLITE_ENABLE_DBSTAT_VTAB 1
// JSON is cool, right?
#define SQLITE_ENABLE_JSON1 1
#define SQLITE_ENABLE_MEMORY_MANAGEMENT 1
/*
#define SQLITE_ENABLE_MEMSYS3 0
#define SQLITE_ENABLE_MEMSYS5 0
#define SQLITE_ENABLE_SQLLOG 0
#define SQLITE_ENABLE_UNLOCK_NOTIFY 1
*/
/* Now we start trimming features */
#define SQLITE_OMIT_AUTHORIZATION 1
//#define SQLITE_OMIT_DISKIO 1
#define SQLITE_OMIT_DEPRECATED 1
#define SQLITE_OMIT_SHARED_CACHE 1
#define SQLITE_OMIT_TCL_VARIABLE 1
#define SQLITE_OMIT_WAL 1
#define SQLITE_ZERO_MALLOC 1
#define SQLITE_OMIT_DATETIME_FUNCS 1
#define SQLITE_OMIT_LOCALTIME 1
#define SQLITE_OMIT_FLOATING_POINT 1
#define SQLITE_MUTEX_APPDEF 1
//#define SQLITE_HOMEGROWN_RECURSIVE_MUTEX 1
//#define SQLITE_MUTEX_OMIT 1
#define HAVE_STRCHRNUL 1
#define HAVE_ISNAN 0
#define SQLITE_COVERAGE_TEST 0
#define assert(X)
#define SQLITE_USE_URI 1