mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
// Recommended Options
|
|
|
|
#define SQLITE_DQS 0
|
|
#define SQLITE_THREADSAFE 0
|
|
#define SQLITE_DEFAULT_WAL_SYNCHRONOUS 1
|
|
#define SQLITE_LIKE_DOESNT_MATCH_BLOBS
|
|
#define SQLITE_STRICT_SUBTYPE 1
|
|
#define SQLITE_OMIT_DEPRECATED
|
|
#define SQLITE_OMIT_SHARED_CACHE
|
|
#define SQLITE_OMIT_AUTOINIT
|
|
|
|
// We need these:
|
|
// #define SQLITE_DEFAULT_MEMSTATUS 0
|
|
// #define SQLITE_MAX_EXPR_DEPTH 0
|
|
// #define SQLITE_USE_ALLOCA
|
|
// #define SQLITE_OMIT_DECLTYPE
|
|
// #define SQLITE_OMIT_PROGRESS_CALLBACK
|
|
|
|
// Other Options
|
|
|
|
#define SQLITE_ALLOW_URI_AUTHORITY
|
|
#define SQLITE_TRUSTED_SCHEMA 0
|
|
#define SQLITE_DEFAULT_FOREIGN_KEYS 1
|
|
#define SQLITE_ENABLE_API_ARMOR
|
|
#define SQLITE_ENABLE_ATOMIC_WRITE
|
|
#define SQLITE_ENABLE_BATCH_ATOMIC_WRITE
|
|
#define SQLITE_ENABLE_COLUMN_METADATA
|
|
#define SQLITE_ENABLE_SETLK_TIMEOUT 2
|
|
#define SQLITE_ENABLE_STAT4 1
|
|
|
|
// We have our own memdb VFS.
|
|
// To avoid interactions between the two,
|
|
// omit sqlite3_serialize/sqlite3_deserialize,
|
|
// which we also don't wrap.
|
|
#define SQLITE_OMIT_DESERIALIZE
|
|
|
|
// Amalgamated Extensions
|
|
|
|
#define SQLITE_ENABLE_MATH_FUNCTIONS 1
|
|
#define SQLITE_ENABLE_JSON1 1
|
|
#define SQLITE_ENABLE_FTS5 1
|
|
#define SQLITE_ENABLE_RTREE 1
|
|
#define SQLITE_ENABLE_GEOPOLY 1
|
|
|
|
#define SQLITE_SOUNDEX
|
|
#define SQLITE_UNTESTABLE |