mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 19:41:37 +08:00
update to sqlite 3.33.0
This commit is contained in:
parent
157256a26c
commit
6e33947c2a
@ -123,7 +123,7 @@ bencher = "0.1"
|
|||||||
|
|
||||||
[dependencies.libsqlite3-sys]
|
[dependencies.libsqlite3-sys]
|
||||||
path = "libsqlite3-sys"
|
path = "libsqlite3-sys"
|
||||||
version = "0.19.0"
|
version = "0.20.0"
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "config_log"
|
name = "config_log"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "libsqlite3-sys"
|
name = "libsqlite3-sys"
|
||||||
version = "0.19.0"
|
version = "0.20.0"
|
||||||
authors = ["The rusqlite developers"]
|
authors = ["The rusqlite developers"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
repository = "https://github.com/rusqlite/rusqlite"
|
repository = "https://github.com/rusqlite/rusqlite"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/* automatically generated by rust-bindgen 0.54.1 */
|
/* automatically generated by rust-bindgen 0.54.1 */
|
||||||
|
|
||||||
pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.32.3\0";
|
pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.33.0\0";
|
||||||
pub const SQLITE_VERSION_NUMBER: i32 = 3032003;
|
pub const SQLITE_VERSION_NUMBER: i32 = 3033000;
|
||||||
pub const SQLITE_SOURCE_ID: &'static [u8; 85usize] =
|
pub const SQLITE_SOURCE_ID: &'static [u8; 85usize] =
|
||||||
b"2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd\0";
|
b"2020-08-14 13:23:32 fca8dc8b578f215a969cd899336378966156154710873e68b3d9ac5881b0ff3f\0";
|
||||||
pub const SQLITE_OK: i32 = 0;
|
pub const SQLITE_OK: i32 = 0;
|
||||||
pub const SQLITE_ERROR: i32 = 1;
|
pub const SQLITE_ERROR: i32 = 1;
|
||||||
pub const SQLITE_INTERNAL: i32 = 2;
|
pub const SQLITE_INTERNAL: i32 = 2;
|
||||||
@ -122,13 +122,14 @@ pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024;
|
|||||||
pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048;
|
pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048;
|
||||||
pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096;
|
pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096;
|
||||||
pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192;
|
pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192;
|
||||||
pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384;
|
pub const SQLITE_OPEN_SUPER_JOURNAL: i32 = 16384;
|
||||||
pub const SQLITE_OPEN_NOMUTEX: i32 = 32768;
|
pub const SQLITE_OPEN_NOMUTEX: i32 = 32768;
|
||||||
pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536;
|
pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536;
|
||||||
pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072;
|
pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072;
|
||||||
pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144;
|
pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144;
|
||||||
pub const SQLITE_OPEN_WAL: i32 = 524288;
|
pub const SQLITE_OPEN_WAL: i32 = 524288;
|
||||||
pub const SQLITE_OPEN_NOFOLLOW: i32 = 16777216;
|
pub const SQLITE_OPEN_NOFOLLOW: i32 = 16777216;
|
||||||
|
pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384;
|
||||||
pub const SQLITE_IOCAP_ATOMIC: i32 = 1;
|
pub const SQLITE_IOCAP_ATOMIC: i32 = 1;
|
||||||
pub const SQLITE_IOCAP_ATOMIC512: i32 = 2;
|
pub const SQLITE_IOCAP_ATOMIC512: i32 = 2;
|
||||||
pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4;
|
pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4;
|
||||||
@ -339,7 +340,7 @@ pub const SQLITE_INDEX_CONSTRAINT_IS: i32 = 72;
|
|||||||
pub const SQLITE_INDEX_CONSTRAINT_FUNCTION: i32 = 150;
|
pub const SQLITE_INDEX_CONSTRAINT_FUNCTION: i32 = 150;
|
||||||
pub const SQLITE_MUTEX_FAST: i32 = 0;
|
pub const SQLITE_MUTEX_FAST: i32 = 0;
|
||||||
pub const SQLITE_MUTEX_RECURSIVE: i32 = 1;
|
pub const SQLITE_MUTEX_RECURSIVE: i32 = 1;
|
||||||
pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2;
|
pub const SQLITE_MUTEX_STATIC_MAIN: i32 = 2;
|
||||||
pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3;
|
pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3;
|
||||||
pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4;
|
pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4;
|
||||||
pub const SQLITE_MUTEX_STATIC_OPEN: i32 = 4;
|
pub const SQLITE_MUTEX_STATIC_OPEN: i32 = 4;
|
||||||
@ -353,6 +354,7 @@ pub const SQLITE_MUTEX_STATIC_APP3: i32 = 10;
|
|||||||
pub const SQLITE_MUTEX_STATIC_VFS1: i32 = 11;
|
pub const SQLITE_MUTEX_STATIC_VFS1: i32 = 11;
|
||||||
pub const SQLITE_MUTEX_STATIC_VFS2: i32 = 12;
|
pub const SQLITE_MUTEX_STATIC_VFS2: i32 = 12;
|
||||||
pub const SQLITE_MUTEX_STATIC_VFS3: i32 = 13;
|
pub const SQLITE_MUTEX_STATIC_VFS3: i32 = 13;
|
||||||
|
pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2;
|
||||||
pub const SQLITE_TESTCTRL_FIRST: i32 = 5;
|
pub const SQLITE_TESTCTRL_FIRST: i32 = 5;
|
||||||
pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5;
|
pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5;
|
||||||
pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6;
|
pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6;
|
||||||
|
4030
libsqlite3-sys/sqlite3/sqlite3.c
vendored
4030
libsqlite3-sys/sqlite3/sqlite3.c
vendored
File diff suppressed because it is too large
Load Diff
32
libsqlite3-sys/sqlite3/sqlite3.h
vendored
32
libsqlite3-sys/sqlite3/sqlite3.h
vendored
@ -123,9 +123,9 @@ extern "C" {
|
|||||||
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
||||||
** [sqlite_version()] and [sqlite_source_id()].
|
** [sqlite_version()] and [sqlite_source_id()].
|
||||||
*/
|
*/
|
||||||
#define SQLITE_VERSION "3.32.3"
|
#define SQLITE_VERSION "3.33.0"
|
||||||
#define SQLITE_VERSION_NUMBER 3032003
|
#define SQLITE_VERSION_NUMBER 3033000
|
||||||
#define SQLITE_SOURCE_ID "2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd"
|
#define SQLITE_SOURCE_ID "2020-08-14 13:23:32 fca8dc8b578f215a969cd899336378966156154710873e68b3d9ac5881b0ff3f"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Run-Time Library Version Numbers
|
** CAPI3REF: Run-Time Library Version Numbers
|
||||||
@ -564,7 +564,7 @@ SQLITE_API int sqlite3_exec(
|
|||||||
#define SQLITE_OPEN_MAIN_JOURNAL 0x00000800 /* VFS only */
|
#define SQLITE_OPEN_MAIN_JOURNAL 0x00000800 /* VFS only */
|
||||||
#define SQLITE_OPEN_TEMP_JOURNAL 0x00001000 /* VFS only */
|
#define SQLITE_OPEN_TEMP_JOURNAL 0x00001000 /* VFS only */
|
||||||
#define SQLITE_OPEN_SUBJOURNAL 0x00002000 /* VFS only */
|
#define SQLITE_OPEN_SUBJOURNAL 0x00002000 /* VFS only */
|
||||||
#define SQLITE_OPEN_MASTER_JOURNAL 0x00004000 /* VFS only */
|
#define SQLITE_OPEN_SUPER_JOURNAL 0x00004000 /* VFS only */
|
||||||
#define SQLITE_OPEN_NOMUTEX 0x00008000 /* Ok for sqlite3_open_v2() */
|
#define SQLITE_OPEN_NOMUTEX 0x00008000 /* Ok for sqlite3_open_v2() */
|
||||||
#define SQLITE_OPEN_FULLMUTEX 0x00010000 /* Ok for sqlite3_open_v2() */
|
#define SQLITE_OPEN_FULLMUTEX 0x00010000 /* Ok for sqlite3_open_v2() */
|
||||||
#define SQLITE_OPEN_SHAREDCACHE 0x00020000 /* Ok for sqlite3_open_v2() */
|
#define SQLITE_OPEN_SHAREDCACHE 0x00020000 /* Ok for sqlite3_open_v2() */
|
||||||
@ -573,6 +573,9 @@ SQLITE_API int sqlite3_exec(
|
|||||||
#define SQLITE_OPEN_NOFOLLOW 0x01000000 /* Ok for sqlite3_open_v2() */
|
#define SQLITE_OPEN_NOFOLLOW 0x01000000 /* Ok for sqlite3_open_v2() */
|
||||||
|
|
||||||
/* Reserved: 0x00F00000 */
|
/* Reserved: 0x00F00000 */
|
||||||
|
/* Legacy compatibility: */
|
||||||
|
#define SQLITE_OPEN_MASTER_JOURNAL 0x00004000 /* VFS only */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Device Characteristics
|
** CAPI3REF: Device Characteristics
|
||||||
@ -870,7 +873,7 @@ struct sqlite3_io_methods {
|
|||||||
** of the xSync method. In most cases, the pointer argument passed with
|
** of the xSync method. In most cases, the pointer argument passed with
|
||||||
** this file-control is NULL. However, if the database file is being synced
|
** this file-control is NULL. However, if the database file is being synced
|
||||||
** as part of a multi-database commit, the argument points to a nul-terminated
|
** as part of a multi-database commit, the argument points to a nul-terminated
|
||||||
** string containing the transactions master-journal file name. VFSes that
|
** string containing the transactions super-journal file name. VFSes that
|
||||||
** do not need this signal should silently ignore this opcode. Applications
|
** do not need this signal should silently ignore this opcode. Applications
|
||||||
** should not call [sqlite3_file_control()] with this opcode as doing so may
|
** should not call [sqlite3_file_control()] with this opcode as doing so may
|
||||||
** disrupt the operation of the specialized VFSes that do require it.
|
** disrupt the operation of the specialized VFSes that do require it.
|
||||||
@ -1267,7 +1270,7 @@ typedef struct sqlite3_api_routines sqlite3_api_routines;
|
|||||||
** <li> [SQLITE_OPEN_TEMP_JOURNAL]
|
** <li> [SQLITE_OPEN_TEMP_JOURNAL]
|
||||||
** <li> [SQLITE_OPEN_TRANSIENT_DB]
|
** <li> [SQLITE_OPEN_TRANSIENT_DB]
|
||||||
** <li> [SQLITE_OPEN_SUBJOURNAL]
|
** <li> [SQLITE_OPEN_SUBJOURNAL]
|
||||||
** <li> [SQLITE_OPEN_MASTER_JOURNAL]
|
** <li> [SQLITE_OPEN_SUPER_JOURNAL]
|
||||||
** <li> [SQLITE_OPEN_WAL]
|
** <li> [SQLITE_OPEN_WAL]
|
||||||
** </ul>)^
|
** </ul>)^
|
||||||
**
|
**
|
||||||
@ -1645,7 +1648,7 @@ SQLITE_API int sqlite3_db_config(sqlite3*, int op, ...);
|
|||||||
** by xInit. The pAppData pointer is used as the only parameter to
|
** by xInit. The pAppData pointer is used as the only parameter to
|
||||||
** xInit and xShutdown.
|
** xInit and xShutdown.
|
||||||
**
|
**
|
||||||
** SQLite holds the [SQLITE_MUTEX_STATIC_MASTER] mutex when it invokes
|
** SQLite holds the [SQLITE_MUTEX_STATIC_MAIN] mutex when it invokes
|
||||||
** the xInit method, so the xInit method need not be threadsafe. The
|
** the xInit method, so the xInit method need not be threadsafe. The
|
||||||
** xShutdown method is only called from [sqlite3_shutdown()] so it does
|
** xShutdown method is only called from [sqlite3_shutdown()] so it does
|
||||||
** not need to be threadsafe either. For all other methods, SQLite
|
** not need to be threadsafe either. For all other methods, SQLite
|
||||||
@ -2283,8 +2286,7 @@ struct sqlite3_mem_methods {
|
|||||||
** [[SQLITE_DBCONFIG_TRUSTED_SCHEMA]]
|
** [[SQLITE_DBCONFIG_TRUSTED_SCHEMA]]
|
||||||
** <dt>SQLITE_DBCONFIG_TRUSTED_SCHEMA</td>
|
** <dt>SQLITE_DBCONFIG_TRUSTED_SCHEMA</td>
|
||||||
** <dd>The SQLITE_DBCONFIG_TRUSTED_SCHEMA option tells SQLite to
|
** <dd>The SQLITE_DBCONFIG_TRUSTED_SCHEMA option tells SQLite to
|
||||||
** assume that database schemas (the contents of the [sqlite_master] tables)
|
** assume that database schemas are untainted by malicious content.
|
||||||
** are untainted by malicious content.
|
|
||||||
** When the SQLITE_DBCONFIG_TRUSTED_SCHEMA option is disabled, SQLite
|
** When the SQLITE_DBCONFIG_TRUSTED_SCHEMA option is disabled, SQLite
|
||||||
** takes additional defensive steps to protect the application from harm
|
** takes additional defensive steps to protect the application from harm
|
||||||
** including:
|
** including:
|
||||||
@ -6274,7 +6276,7 @@ SQLITE_API void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*);
|
|||||||
** ^In the case of an update, this is the [rowid] after the update takes place.
|
** ^In the case of an update, this is the [rowid] after the update takes place.
|
||||||
**
|
**
|
||||||
** ^(The update hook is not invoked when internal system tables are
|
** ^(The update hook is not invoked when internal system tables are
|
||||||
** modified (i.e. sqlite_master and sqlite_sequence).)^
|
** modified (i.e. sqlite_sequence).)^
|
||||||
** ^The update hook is not invoked when [WITHOUT ROWID] tables are modified.
|
** ^The update hook is not invoked when [WITHOUT ROWID] tables are modified.
|
||||||
**
|
**
|
||||||
** ^In the current implementation, the update hook
|
** ^In the current implementation, the update hook
|
||||||
@ -7376,7 +7378,7 @@ SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs*);
|
|||||||
** <ul>
|
** <ul>
|
||||||
** <li> SQLITE_MUTEX_FAST
|
** <li> SQLITE_MUTEX_FAST
|
||||||
** <li> SQLITE_MUTEX_RECURSIVE
|
** <li> SQLITE_MUTEX_RECURSIVE
|
||||||
** <li> SQLITE_MUTEX_STATIC_MASTER
|
** <li> SQLITE_MUTEX_STATIC_MAIN
|
||||||
** <li> SQLITE_MUTEX_STATIC_MEM
|
** <li> SQLITE_MUTEX_STATIC_MEM
|
||||||
** <li> SQLITE_MUTEX_STATIC_OPEN
|
** <li> SQLITE_MUTEX_STATIC_OPEN
|
||||||
** <li> SQLITE_MUTEX_STATIC_PRNG
|
** <li> SQLITE_MUTEX_STATIC_PRNG
|
||||||
@ -7578,7 +7580,7 @@ SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
|
|||||||
*/
|
*/
|
||||||
#define SQLITE_MUTEX_FAST 0
|
#define SQLITE_MUTEX_FAST 0
|
||||||
#define SQLITE_MUTEX_RECURSIVE 1
|
#define SQLITE_MUTEX_RECURSIVE 1
|
||||||
#define SQLITE_MUTEX_STATIC_MASTER 2
|
#define SQLITE_MUTEX_STATIC_MAIN 2
|
||||||
#define SQLITE_MUTEX_STATIC_MEM 3 /* sqlite3_malloc() */
|
#define SQLITE_MUTEX_STATIC_MEM 3 /* sqlite3_malloc() */
|
||||||
#define SQLITE_MUTEX_STATIC_MEM2 4 /* NOT USED */
|
#define SQLITE_MUTEX_STATIC_MEM2 4 /* NOT USED */
|
||||||
#define SQLITE_MUTEX_STATIC_OPEN 4 /* sqlite3BtreeOpen() */
|
#define SQLITE_MUTEX_STATIC_OPEN 4 /* sqlite3BtreeOpen() */
|
||||||
@ -7593,6 +7595,10 @@ SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
|
|||||||
#define SQLITE_MUTEX_STATIC_VFS2 12 /* For use by extension VFS */
|
#define SQLITE_MUTEX_STATIC_VFS2 12 /* For use by extension VFS */
|
||||||
#define SQLITE_MUTEX_STATIC_VFS3 13 /* For use by application VFS */
|
#define SQLITE_MUTEX_STATIC_VFS3 13 /* For use by application VFS */
|
||||||
|
|
||||||
|
/* Legacy compatibility: */
|
||||||
|
#define SQLITE_MUTEX_STATIC_MASTER 2
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Retrieve the mutex for a database connection
|
** CAPI3REF: Retrieve the mutex for a database connection
|
||||||
** METHOD: sqlite3
|
** METHOD: sqlite3
|
||||||
@ -9388,7 +9394,7 @@ SQLITE_API int sqlite3_db_cacheflush(sqlite3*);
|
|||||||
**
|
**
|
||||||
** ^The preupdate hook only fires for changes to real database tables; the
|
** ^The preupdate hook only fires for changes to real database tables; the
|
||||||
** preupdate hook is not invoked for changes to [virtual tables] or to
|
** preupdate hook is not invoked for changes to [virtual tables] or to
|
||||||
** system tables like sqlite_master or sqlite_stat1.
|
** system tables like sqlite_sequence or sqlite_stat1.
|
||||||
**
|
**
|
||||||
** ^The second parameter to the preupdate callback is a pointer to
|
** ^The second parameter to the preupdate callback is a pointer to
|
||||||
** the [database connection] that registered the preupdate hook.
|
** the [database connection] that registered the preupdate hook.
|
||||||
|
@ -6,7 +6,7 @@ cd "$SCRIPT_DIR" || { echo "fatal error"; exit 1; }
|
|||||||
export SQLITE3_LIB_DIR=$SCRIPT_DIR/sqlite3
|
export SQLITE3_LIB_DIR=$SCRIPT_DIR/sqlite3
|
||||||
|
|
||||||
# Download and extract amalgamation
|
# Download and extract amalgamation
|
||||||
SQLITE=sqlite-amalgamation-3320300
|
SQLITE=sqlite-amalgamation-3330000
|
||||||
curl -O https://sqlite.org/2020/$SQLITE.zip
|
curl -O https://sqlite.org/2020/$SQLITE.zip
|
||||||
unzip -p "$SQLITE.zip" "$SQLITE/sqlite3.c" > "$SQLITE3_LIB_DIR/sqlite3.c"
|
unzip -p "$SQLITE.zip" "$SQLITE/sqlite3.c" > "$SQLITE3_LIB_DIR/sqlite3.c"
|
||||||
unzip -p "$SQLITE.zip" "$SQLITE/sqlite3.h" > "$SQLITE3_LIB_DIR/sqlite3.h"
|
unzip -p "$SQLITE.zip" "$SQLITE/sqlite3.h" > "$SQLITE3_LIB_DIR/sqlite3.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user