|
|
@@ -123,11 +123,11 @@ extern "C" {
|
|
|
*/
|
|
|
#define SQLITE_VERSION "3.16.0"
|
|
|
#define SQLITE_VERSION_NUMBER 3016000
|
|
|
-#define SQLITE_SOURCE_ID "2016-10-14 21:27:50 16039be3739b8d3b34a1e6093eaebb09e07f984b"
|
|
|
+#define SQLITE_SOURCE_ID "2016-11-20 17:59:59 b3b7b42d9a4a0e7e2be8b2933328a7bec2f49a81"
|
|
|
|
|
|
/*
|
|
|
** CAPI3REF: Run-Time Library Version Numbers
|
|
|
-** KEYWORDS: sqlite3_version, sqlite3_sourceid
|
|
|
+** KEYWORDS: sqlite3_version sqlite3_sourceid
|
|
|
**
|
|
|
** These interfaces provide the same information as the [SQLITE_VERSION],
|
|
|
** [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] C preprocessor macros
|
|
|
@@ -1050,6 +1050,7 @@ struct sqlite3_io_methods {
|
|
|
#define SQLITE_FCNTL_VFS_POINTER 27
|
|
|
#define SQLITE_FCNTL_JOURNAL_POINTER 28
|
|
|
#define SQLITE_FCNTL_WIN32_GET_HANDLE 29
|
|
|
+#define SQLITE_FCNTL_PDB 30
|
|
|
|
|
|
/* deprecated names */
|
|
|
#define SQLITE_GET_LOCKPROXYFILE SQLITE_FCNTL_GET_LOCKPROXYFILE
|
|
|
@@ -2002,6 +2003,18 @@ struct sqlite3_mem_methods {
|
|
|
** until after the database connection closes.
|
|
|
** </dd>
|
|
|
**
|
|
|
+** <dt>SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE</dt>
|
|
|
+** <dd> Usually, when a database in wal mode is closed or detached from a
|
|
|
+** database handle, SQLite checks if this will mean that there are now no
|
|
|
+** connections at all to the database. If so, it performs a checkpoint
|
|
|
+** operation before closing the connection. This option may be used to
|
|
|
+** override this behaviour. The first parameter passed to this operation
|
|
|
+** is an integer - non-zero to disable checkpoints-on-close, or zero (the
|
|
|
+** default) to enable them. The second parameter is a pointer to an integer
|
|
|
+** into which is written 0 or 1 to indicate whether checkpoints-on-close
|
|
|
+** have been disabled - 0 if they are not disabled, 1 if they are.
|
|
|
+** </dd>
|
|
|
+**
|
|
|
** </dl>
|
|
|
*/
|
|
|
#define SQLITE_DBCONFIG_MAINDBNAME 1000 /* const char* */
|
|
|
@@ -2010,6 +2023,7 @@ struct sqlite3_mem_methods {
|
|
|
#define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */
|
|
|
#define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004 /* int int* */
|
|
|
#define SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION 1005 /* int int* */
|
|
|
+#define SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE 1006 /* int int* */
|
|
|
|
|
|
|
|
|
/*
|
|
|
@@ -8251,7 +8265,8 @@ SQLITE_API int sqlite3_db_cacheflush(sqlite3*);
|
|
|
**
|
|
|
** See also: [sqlite3_update_hook()]
|
|
|
*/
|
|
|
-SQLITE_API SQLITE_EXPERIMENTAL void *sqlite3_preupdate_hook(
|
|
|
+#if defined(SQLITE_ENABLE_PREUPDATE_HOOK)
|
|
|
+SQLITE_API void *sqlite3_preupdate_hook(
|
|
|
sqlite3 *db,
|
|
|
void(*xPreUpdate)(
|
|
|
void *pCtx, /* Copy of third arg to preupdate_hook() */
|
|
|
@@ -8264,10 +8279,11 @@ SQLITE_API SQLITE_EXPERIMENTAL void *sqlite3_preupdate_hook(
|
|
|
),
|
|
|
void*
|
|
|
);
|
|
|
-SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_preupdate_old(sqlite3 *, int, sqlite3_value **);
|
|
|
-SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_preupdate_count(sqlite3 *);
|
|
|
-SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_preupdate_depth(sqlite3 *);
|
|
|
-SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **);
|
|
|
+SQLITE_API int sqlite3_preupdate_old(sqlite3 *, int, sqlite3_value **);
|
|
|
+SQLITE_API int sqlite3_preupdate_count(sqlite3 *);
|
|
|
+SQLITE_API int sqlite3_preupdate_depth(sqlite3 *);
|
|
|
+SQLITE_API int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **);
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
|
** CAPI3REF: Low-level system error code
|