Files
sqlite3/sqlite3/sqlite_cfg.h

85 lines
2.0 KiB
C
Raw Normal View History

2023-01-24 11:17:30 -08:00
#include <time.h>
// Platform Configuration
#define SQLITE_OS_OTHER 1
#define SQLITE_BYTEORDER 1234
2023-10-29 11:28:29 +00:00
#define HAVE_INT8_T 1
#define HAVE_INT16_T 1
#define HAVE_INT32_T 1
#define HAVE_INT64_T 1
#define HAVE_UINT8_T 1
#define HAVE_UINT16_T 1
#define HAVE_UINT32_T 1
#define HAVE_UINT64_T 1
2023-02-14 18:21:18 +00:00
#define HAVE_STDINT_H 1
#define HAVE_INTTYPES_H 1
2023-10-29 11:28:29 +00:00
#define HAVE_LOG2 1
#define HAVE_LOG10 1
2023-01-24 11:17:30 -08:00
#define HAVE_ISNAN 1
2023-10-29 11:28:29 +00:00
2023-01-24 11:17:30 -08:00
#define HAVE_USLEEP 1
2023-10-29 11:28:29 +00:00
#define HAVE_NANOSLEEP 1
#define HAVE_GMTIME_R 1
2023-01-24 11:17:30 -08:00
#define HAVE_LOCALTIME_S 1
2023-10-29 11:28:29 +00:00
#define HAVE_MALLOC_H 1
2023-01-24 11:17:30 -08:00
#define HAVE_MALLOC_USABLE_SIZE 1
// Recommended Options
#define SQLITE_DQS 0
#define SQLITE_THREADSAFE 0
#define SQLITE_DEFAULT_MEMSTATUS 0
#define SQLITE_DEFAULT_WAL_SYNCHRONOUS 1
#define SQLITE_LIKE_DOESNT_MATCH_BLOBS
#define SQLITE_MAX_EXPR_DEPTH 0
2023-12-01 02:38:56 +00:00
#define SQLITE_USE_ALLOCA
2023-01-24 11:17:30 -08:00
#define SQLITE_OMIT_DEPRECATED
#define SQLITE_OMIT_SHARED_CACHE
#define SQLITE_OMIT_AUTOINIT
2023-12-01 02:38:56 +00:00
// #define SQLITE_OMIT_DECLTYPE
// #define SQLITE_OMIT_PROGRESS_CALLBACK
2023-01-24 11:17:30 -08:00
2023-04-11 15:33:38 +01:00
// Other Options
2023-07-26 02:02:39 +01:00
2023-05-12 12:11:14 +01:00
#define SQLITE_ALLOW_URI_AUTHORITY
2023-11-28 16:38:02 +00:00
#define SQLITE_TRUSTED_SCHEMA 0
#define SQLITE_DEFAULT_FOREIGN_KEYS 1
2023-05-31 03:24:21 +01:00
#define SQLITE_ENABLE_ATOMIC_WRITE
2023-11-27 14:57:04 +00:00
#define SQLITE_ENABLE_BATCH_ATOMIC_WRITE
2023-04-11 15:33:38 +01:00
2023-02-26 04:49:10 +00:00
// Because WASM does not support shared memory,
2023-04-04 18:32:56 +01:00
// SQLite disables WAL for WASM builds.
2023-06-24 02:18:56 +01:00
// We patch SQLite to use exclusive locking mode instead.
2023-11-09 16:35:45 +00:00
// https://sqlite.org/wal.html#noshm
2023-02-26 04:49:10 +00:00
#undef SQLITE_OMIT_WAL
2023-11-28 16:38:02 +00:00
// 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
2023-05-16 15:40:08 +01:00
// Amalgamated Extensions
2023-02-14 18:21:18 +00:00
2023-02-26 04:49:10 +00:00
#define SQLITE_ENABLE_MATH_FUNCTIONS 1
#define SQLITE_ENABLE_JSON1 1
#define SQLITE_ENABLE_FTS3 1
#define SQLITE_ENABLE_FTS3_PARENTHESIS 1
#define SQLITE_ENABLE_FTS4 1
#define SQLITE_ENABLE_FTS5 1
#define SQLITE_ENABLE_RTREE 1
#define SQLITE_ENABLE_GEOPOLY 1
2023-02-14 18:21:18 +00:00
2023-10-29 11:28:29 +00:00
#define SQLITE_SOUNDEX
2023-02-26 04:49:10 +00:00
// Session Extension
2023-05-12 12:11:14 +01:00
// #define SQLITE_ENABLE_SESSION
// #define SQLITE_ENABLE_PREUPDATE_HOOK
2023-02-26 04:49:10 +00:00
2023-05-16 15:40:08 +01:00
// Implemented in vfs.c.
2023-05-31 03:24:21 +01:00
int localtime_s(struct tm *const pTm, time_t const *const pTime);