mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Merge pull request #979 from gwenn/3.36.0
Bump bundled sqlite3 version to 3.36.0
This commit is contained in:
commit
c8faf3e235
@ -1,9 +1,9 @@
|
|||||||
/* automatically generated by rust-bindgen 0.58.1 */
|
/* automatically generated by rust-bindgen 0.58.1 */
|
||||||
|
|
||||||
pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.35.5\0";
|
pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.36.0\0";
|
||||||
pub const SQLITE_VERSION_NUMBER: i32 = 3035005;
|
pub const SQLITE_VERSION_NUMBER: i32 = 3036000;
|
||||||
pub const SQLITE_SOURCE_ID: &'static [u8; 85usize] =
|
pub const SQLITE_SOURCE_ID: &'static [u8; 85usize] =
|
||||||
b"2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886\0";
|
b"2021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5\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;
|
||||||
@ -192,6 +192,8 @@ pub const SQLITE_FCNTL_SIZE_LIMIT: i32 = 36;
|
|||||||
pub const SQLITE_FCNTL_CKPT_DONE: i32 = 37;
|
pub const SQLITE_FCNTL_CKPT_DONE: i32 = 37;
|
||||||
pub const SQLITE_FCNTL_RESERVE_BYTES: i32 = 38;
|
pub const SQLITE_FCNTL_RESERVE_BYTES: i32 = 38;
|
||||||
pub const SQLITE_FCNTL_CKPT_START: i32 = 39;
|
pub const SQLITE_FCNTL_CKPT_START: i32 = 39;
|
||||||
|
pub const SQLITE_FCNTL_EXTERNAL_READER: i32 = 40;
|
||||||
|
pub const SQLITE_FCNTL_CKSM_FILE: i32 = 41;
|
||||||
pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2;
|
pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2;
|
||||||
pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3;
|
pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3;
|
||||||
pub const SQLITE_LAST_ERRNO: i32 = 4;
|
pub const SQLITE_LAST_ERRNO: i32 = 4;
|
||||||
@ -389,7 +391,8 @@ pub const SQLITE_TESTCTRL_PRNG_SEED: i32 = 28;
|
|||||||
pub const SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS: i32 = 29;
|
pub const SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS: i32 = 29;
|
||||||
pub const SQLITE_TESTCTRL_SEEK_COUNT: i32 = 30;
|
pub const SQLITE_TESTCTRL_SEEK_COUNT: i32 = 30;
|
||||||
pub const SQLITE_TESTCTRL_TRACEFLAGS: i32 = 31;
|
pub const SQLITE_TESTCTRL_TRACEFLAGS: i32 = 31;
|
||||||
pub const SQLITE_TESTCTRL_LAST: i32 = 31;
|
pub const SQLITE_TESTCTRL_TUNE: i32 = 32;
|
||||||
|
pub const SQLITE_TESTCTRL_LAST: i32 = 32;
|
||||||
pub const SQLITE_STATUS_MEMORY_USED: i32 = 0;
|
pub const SQLITE_STATUS_MEMORY_USED: i32 = 0;
|
||||||
pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1;
|
pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1;
|
||||||
pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2;
|
pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2;
|
||||||
|
6892
libsqlite3-sys/sqlite3/sqlite3.c
vendored
6892
libsqlite3-sys/sqlite3/sqlite3.c
vendored
File diff suppressed because it is too large
Load Diff
133
libsqlite3-sys/sqlite3/sqlite3.h
vendored
133
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.35.5"
|
#define SQLITE_VERSION "3.36.0"
|
||||||
#define SQLITE_VERSION_NUMBER 3035005
|
#define SQLITE_VERSION_NUMBER 3036000
|
||||||
#define SQLITE_SOURCE_ID "2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886"
|
#define SQLITE_SOURCE_ID "2021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Run-Time Library Version Numbers
|
** CAPI3REF: Run-Time Library Version Numbers
|
||||||
@ -1128,6 +1128,23 @@ struct sqlite3_io_methods {
|
|||||||
** file to the database file, but before the *-shm file is updated to
|
** file to the database file, but before the *-shm file is updated to
|
||||||
** record the fact that the pages have been checkpointed.
|
** record the fact that the pages have been checkpointed.
|
||||||
** </ul>
|
** </ul>
|
||||||
|
**
|
||||||
|
** <li>[[SQLITE_FCNTL_EXTERNAL_READER]]
|
||||||
|
** The EXPERIMENTAL [SQLITE_FCNTL_EXTERNAL_READER] opcode is used to detect
|
||||||
|
** whether or not there is a database client in another process with a wal-mode
|
||||||
|
** transaction open on the database or not. It is only available on unix.The
|
||||||
|
** (void*) argument passed with this file-control should be a pointer to a
|
||||||
|
** value of type (int). The integer value is set to 1 if the database is a wal
|
||||||
|
** mode database and there exists at least one client in another process that
|
||||||
|
** currently has an SQL transaction open on the database. It is set to 0 if
|
||||||
|
** the database is not a wal-mode db, or if there is no such connection in any
|
||||||
|
** other process. This opcode cannot be used to detect transactions opened
|
||||||
|
** by clients within the current process, only within other processes.
|
||||||
|
** </ul>
|
||||||
|
**
|
||||||
|
** <li>[[SQLITE_FCNTL_CKSM_FILE]]
|
||||||
|
** Used by the cksmvfs VFS module only.
|
||||||
|
** </ul>
|
||||||
*/
|
*/
|
||||||
#define SQLITE_FCNTL_LOCKSTATE 1
|
#define SQLITE_FCNTL_LOCKSTATE 1
|
||||||
#define SQLITE_FCNTL_GET_LOCKPROXYFILE 2
|
#define SQLITE_FCNTL_GET_LOCKPROXYFILE 2
|
||||||
@ -1167,6 +1184,8 @@ struct sqlite3_io_methods {
|
|||||||
#define SQLITE_FCNTL_CKPT_DONE 37
|
#define SQLITE_FCNTL_CKPT_DONE 37
|
||||||
#define SQLITE_FCNTL_RESERVE_BYTES 38
|
#define SQLITE_FCNTL_RESERVE_BYTES 38
|
||||||
#define SQLITE_FCNTL_CKPT_START 39
|
#define SQLITE_FCNTL_CKPT_START 39
|
||||||
|
#define SQLITE_FCNTL_EXTERNAL_READER 40
|
||||||
|
#define SQLITE_FCNTL_CKSM_FILE 41
|
||||||
|
|
||||||
/* deprecated names */
|
/* deprecated names */
|
||||||
#define SQLITE_GET_LOCKPROXYFILE SQLITE_FCNTL_GET_LOCKPROXYFILE
|
#define SQLITE_GET_LOCKPROXYFILE SQLITE_FCNTL_GET_LOCKPROXYFILE
|
||||||
@ -4179,6 +4198,15 @@ SQLITE_API const char *sqlite3_normalized_sql(sqlite3_stmt *pStmt);
|
|||||||
** [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and
|
** [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and
|
||||||
** [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so
|
** [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so
|
||||||
** sqlite3_stmt_readonly() returns false for those commands.
|
** sqlite3_stmt_readonly() returns false for those commands.
|
||||||
|
**
|
||||||
|
** ^This routine returns false if there is any possibility that the
|
||||||
|
** statement might change the database file. ^A false return does
|
||||||
|
** not guarantee that the statement will change the database file.
|
||||||
|
** ^For example, an UPDATE statement might have a WHERE clause that
|
||||||
|
** makes it a no-op, but the sqlite3_stmt_readonly() result would still
|
||||||
|
** be false. ^Similarly, a CREATE TABLE IF NOT EXISTS statement is a
|
||||||
|
** read-only no-op if the table already exists, but
|
||||||
|
** sqlite3_stmt_readonly() still returns false for such a statement.
|
||||||
*/
|
*/
|
||||||
SQLITE_API int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);
|
SQLITE_API int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);
|
||||||
|
|
||||||
@ -4348,18 +4376,22 @@ typedef struct sqlite3_context sqlite3_context;
|
|||||||
** contain embedded NULs. The result of expressions involving strings
|
** contain embedded NULs. The result of expressions involving strings
|
||||||
** with embedded NULs is undefined.
|
** with embedded NULs is undefined.
|
||||||
**
|
**
|
||||||
** ^The fifth argument to the BLOB and string binding interfaces
|
** ^The fifth argument to the BLOB and string binding interfaces controls
|
||||||
** is a destructor used to dispose of the BLOB or
|
** or indicates the lifetime of the object referenced by the third parameter.
|
||||||
** string after SQLite has finished with it. ^The destructor is called
|
** These three options exist:
|
||||||
** to dispose of the BLOB or string even if the call to the bind API fails,
|
** ^ (1) A destructor to dispose of the BLOB or string after SQLite has finished
|
||||||
** except the destructor is not called if the third parameter is a NULL
|
** with it may be passed. ^It is called to dispose of the BLOB or string even
|
||||||
** pointer or the fourth parameter is negative.
|
** if the call to the bind API fails, except the destructor is not called if
|
||||||
** ^If the fifth argument is
|
** the third parameter is a NULL pointer or the fourth parameter is negative.
|
||||||
** the special value [SQLITE_STATIC], then SQLite assumes that the
|
** ^ (2) The special constant, [SQLITE_STATIC], may be passsed to indicate that
|
||||||
** information is in static, unmanaged space and does not need to be freed.
|
** the application remains responsible for disposing of the object. ^In this
|
||||||
** ^If the fifth argument has the value [SQLITE_TRANSIENT], then
|
** case, the object and the provided pointer to it must remain valid until
|
||||||
** SQLite makes its own private copy of the data immediately, before
|
** either the prepared statement is finalized or the same SQL parameter is
|
||||||
** the sqlite3_bind_*() routine returns.
|
** bound to something else, whichever occurs sooner.
|
||||||
|
** ^ (3) The constant, [SQLITE_TRANSIENT], may be passed to indicate that the
|
||||||
|
** object is to be copied prior to the return from sqlite3_bind_*(). ^The
|
||||||
|
** object and pointer to it must remain valid until then. ^SQLite will then
|
||||||
|
** manage the lifetime of its private copy.
|
||||||
**
|
**
|
||||||
** ^The sixth argument to sqlite3_bind_text64() must be one of
|
** ^The sixth argument to sqlite3_bind_text64() must be one of
|
||||||
** [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE]
|
** [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE]
|
||||||
@ -5101,7 +5133,6 @@ SQLITE_API int sqlite3_reset(sqlite3_stmt *pStmt);
|
|||||||
** within VIEWs, TRIGGERs, CHECK constraints, generated column expressions,
|
** within VIEWs, TRIGGERs, CHECK constraints, generated column expressions,
|
||||||
** index expressions, or the WHERE clause of partial indexes.
|
** index expressions, or the WHERE clause of partial indexes.
|
||||||
**
|
**
|
||||||
** <span style="background-color:#ffff90;">
|
|
||||||
** For best security, the [SQLITE_DIRECTONLY] flag is recommended for
|
** For best security, the [SQLITE_DIRECTONLY] flag is recommended for
|
||||||
** all application-defined SQL functions that do not need to be
|
** all application-defined SQL functions that do not need to be
|
||||||
** used inside of triggers, view, CHECK constraints, or other elements of
|
** used inside of triggers, view, CHECK constraints, or other elements of
|
||||||
@ -5111,7 +5142,6 @@ SQLITE_API int sqlite3_reset(sqlite3_stmt *pStmt);
|
|||||||
** a database file to include invocations of the function with parameters
|
** a database file to include invocations of the function with parameters
|
||||||
** chosen by the attacker, which the application will then execute when
|
** chosen by the attacker, which the application will then execute when
|
||||||
** the database file is opened and read.
|
** the database file is opened and read.
|
||||||
** </span>
|
|
||||||
**
|
**
|
||||||
** ^(The fifth parameter is an arbitrary pointer. The implementation of the
|
** ^(The fifth parameter is an arbitrary pointer. The implementation of the
|
||||||
** function can gain access to this pointer using [sqlite3_user_data()].)^
|
** function can gain access to this pointer using [sqlite3_user_data()].)^
|
||||||
@ -7779,7 +7809,8 @@ SQLITE_API int sqlite3_test_control(int op, ...);
|
|||||||
#define SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS 29
|
#define SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS 29
|
||||||
#define SQLITE_TESTCTRL_SEEK_COUNT 30
|
#define SQLITE_TESTCTRL_SEEK_COUNT 30
|
||||||
#define SQLITE_TESTCTRL_TRACEFLAGS 31
|
#define SQLITE_TESTCTRL_TRACEFLAGS 31
|
||||||
#define SQLITE_TESTCTRL_LAST 31 /* Largest TESTCTRL */
|
#define SQLITE_TESTCTRL_TUNE 32
|
||||||
|
#define SQLITE_TESTCTRL_LAST 32 /* Largest TESTCTRL */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: SQL Keyword Checking
|
** CAPI3REF: SQL Keyword Checking
|
||||||
@ -9531,6 +9562,15 @@ SQLITE_API int sqlite3_db_cacheflush(sqlite3*);
|
|||||||
** triggers; or 2 for changes resulting from triggers called by top-level
|
** triggers; or 2 for changes resulting from triggers called by top-level
|
||||||
** triggers; and so forth.
|
** triggers; and so forth.
|
||||||
**
|
**
|
||||||
|
** When the [sqlite3_blob_write()] API is used to update a blob column,
|
||||||
|
** the pre-update hook is invoked with SQLITE_DELETE. This is because the
|
||||||
|
** in this case the new values are not available. In this case, when a
|
||||||
|
** callback made with op==SQLITE_DELETE is actuall a write using the
|
||||||
|
** sqlite3_blob_write() API, the [sqlite3_preupdate_blobwrite()] returns
|
||||||
|
** the index of the column being written. In other cases, where the
|
||||||
|
** pre-update hook is being invoked for some other reason, including a
|
||||||
|
** regular DELETE, sqlite3_preupdate_blobwrite() returns -1.
|
||||||
|
**
|
||||||
** See also: [sqlite3_update_hook()]
|
** See also: [sqlite3_update_hook()]
|
||||||
*/
|
*/
|
||||||
#if defined(SQLITE_ENABLE_PREUPDATE_HOOK)
|
#if defined(SQLITE_ENABLE_PREUPDATE_HOOK)
|
||||||
@ -9551,6 +9591,7 @@ SQLITE_API int sqlite3_preupdate_old(sqlite3 *, int, sqlite3_value **);
|
|||||||
SQLITE_API int sqlite3_preupdate_count(sqlite3 *);
|
SQLITE_API int sqlite3_preupdate_count(sqlite3 *);
|
||||||
SQLITE_API int sqlite3_preupdate_depth(sqlite3 *);
|
SQLITE_API int sqlite3_preupdate_depth(sqlite3 *);
|
||||||
SQLITE_API int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **);
|
SQLITE_API int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **);
|
||||||
|
SQLITE_API int sqlite3_preupdate_blobwrite(sqlite3 *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -9789,8 +9830,8 @@ SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_recover(sqlite3 *db, const c
|
|||||||
** SQLITE_SERIALIZE_NOCOPY bit is omitted from argument F if a memory
|
** SQLITE_SERIALIZE_NOCOPY bit is omitted from argument F if a memory
|
||||||
** allocation error occurs.
|
** allocation error occurs.
|
||||||
**
|
**
|
||||||
** This interface is only available if SQLite is compiled with the
|
** This interface is omitted if SQLite is compiled with the
|
||||||
** [SQLITE_ENABLE_DESERIALIZE] option.
|
** [SQLITE_OMIT_DESERIALIZE] option.
|
||||||
*/
|
*/
|
||||||
SQLITE_API unsigned char *sqlite3_serialize(
|
SQLITE_API unsigned char *sqlite3_serialize(
|
||||||
sqlite3 *db, /* The database connection */
|
sqlite3 *db, /* The database connection */
|
||||||
@ -9841,8 +9882,8 @@ SQLITE_API unsigned char *sqlite3_serialize(
|
|||||||
** SQLITE_DESERIALIZE_FREEONCLOSE bit is set in argument F, then
|
** SQLITE_DESERIALIZE_FREEONCLOSE bit is set in argument F, then
|
||||||
** [sqlite3_free()] is invoked on argument P prior to returning.
|
** [sqlite3_free()] is invoked on argument P prior to returning.
|
||||||
**
|
**
|
||||||
** This interface is only available if SQLite is compiled with the
|
** This interface is omitted if SQLite is compiled with the
|
||||||
** [SQLITE_ENABLE_DESERIALIZE] option.
|
** [SQLITE_OMIT_DESERIALIZE] option.
|
||||||
*/
|
*/
|
||||||
SQLITE_API int sqlite3_deserialize(
|
SQLITE_API int sqlite3_deserialize(
|
||||||
sqlite3 *db, /* The database connection */
|
sqlite3 *db, /* The database connection */
|
||||||
@ -10091,6 +10132,38 @@ SQLITE_API int sqlite3session_create(
|
|||||||
*/
|
*/
|
||||||
SQLITE_API void sqlite3session_delete(sqlite3_session *pSession);
|
SQLITE_API void sqlite3session_delete(sqlite3_session *pSession);
|
||||||
|
|
||||||
|
/*
|
||||||
|
** CAPIREF: Conigure a Session Object
|
||||||
|
** METHOD: sqlite3_session
|
||||||
|
**
|
||||||
|
** This method is used to configure a session object after it has been
|
||||||
|
** created. At present the only valid value for the second parameter is
|
||||||
|
** [SQLITE_SESSION_OBJCONFIG_SIZE].
|
||||||
|
**
|
||||||
|
** Arguments for sqlite3session_object_config()
|
||||||
|
**
|
||||||
|
** The following values may passed as the the 4th parameter to
|
||||||
|
** sqlite3session_object_config().
|
||||||
|
**
|
||||||
|
** <dt>SQLITE_SESSION_OBJCONFIG_SIZE <dd>
|
||||||
|
** This option is used to set, clear or query the flag that enables
|
||||||
|
** the [sqlite3session_changeset_size()] API. Because it imposes some
|
||||||
|
** computational overhead, this API is disabled by default. Argument
|
||||||
|
** pArg must point to a value of type (int). If the value is initially
|
||||||
|
** 0, then the sqlite3session_changeset_size() API is disabled. If it
|
||||||
|
** is greater than 0, then the same API is enabled. Or, if the initial
|
||||||
|
** value is less than zero, no change is made. In all cases the (int)
|
||||||
|
** variable is set to 1 if the sqlite3session_changeset_size() API is
|
||||||
|
** enabled following the current call, or 0 otherwise.
|
||||||
|
**
|
||||||
|
** It is an error (SQLITE_MISUSE) to attempt to modify this setting after
|
||||||
|
** the first table has been attached to the session object.
|
||||||
|
*/
|
||||||
|
SQLITE_API int sqlite3session_object_config(sqlite3_session*, int op, void *pArg);
|
||||||
|
|
||||||
|
/*
|
||||||
|
*/
|
||||||
|
#define SQLITE_SESSION_OBJCONFIG_SIZE 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Enable Or Disable A Session Object
|
** CAPI3REF: Enable Or Disable A Session Object
|
||||||
@ -10335,6 +10408,22 @@ SQLITE_API int sqlite3session_changeset(
|
|||||||
void **ppChangeset /* OUT: Buffer containing changeset */
|
void **ppChangeset /* OUT: Buffer containing changeset */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/*
|
||||||
|
** CAPI3REF: Return An Upper-limit For The Size Of The Changeset
|
||||||
|
** METHOD: sqlite3_session
|
||||||
|
**
|
||||||
|
** By default, this function always returns 0. For it to return
|
||||||
|
** a useful result, the sqlite3_session object must have been configured
|
||||||
|
** to enable this API using sqlite3session_object_config() with the
|
||||||
|
** SQLITE_SESSION_OBJCONFIG_SIZE verb.
|
||||||
|
**
|
||||||
|
** When enabled, this function returns an upper limit, in bytes, for the size
|
||||||
|
** of the changeset that might be produced if sqlite3session_changeset() were
|
||||||
|
** called. The final changeset size might be equal to or smaller than the
|
||||||
|
** size in bytes returned by this function.
|
||||||
|
*/
|
||||||
|
SQLITE_API sqlite3_int64 sqlite3session_changeset_size(sqlite3_session *pSession);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Load The Difference Between Tables Into A Session
|
** CAPI3REF: Load The Difference Between Tables Into A Session
|
||||||
** METHOD: sqlite3_session
|
** METHOD: sqlite3_session
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#![allow(non_snake_case, non_camel_case_types)]
|
#![allow(non_snake_case, non_camel_case_types)]
|
||||||
|
#![cfg_attr(test, allow(deref_nullptr))] // https://github.com/rust-lang/rust-bindgen/issues/2066
|
||||||
|
|
||||||
pub use self::error::*;
|
pub use self::error::*;
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ export SQLCIPHER_LIB_DIR="$SCRIPT_DIR/sqlcipher"
|
|||||||
export SQLCIPHER_INCLUDE_DIR="$SQLCIPHER_LIB_DIR"
|
export SQLCIPHER_INCLUDE_DIR="$SQLCIPHER_LIB_DIR"
|
||||||
|
|
||||||
# Download and extract amalgamation
|
# Download and extract amalgamation
|
||||||
SQLITE=sqlite-amalgamation-3350500
|
SQLITE=sqlite-amalgamation-3360000
|
||||||
curl -O https://sqlite.org/2021/$SQLITE.zip
|
curl -O https://sqlite.org/2021/$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"
|
||||||
|
@ -826,7 +826,7 @@ mod test {
|
|||||||
assert_eq!("foo", op.table_name());
|
assert_eq!("foo", op.table_name());
|
||||||
assert_eq!(1, op.number_of_columns());
|
assert_eq!(1, op.number_of_columns());
|
||||||
assert_eq!(Action::SQLITE_INSERT, op.code());
|
assert_eq!(Action::SQLITE_INSERT, op.code());
|
||||||
assert_eq!(false, op.indirect());
|
assert!(!op.indirect());
|
||||||
|
|
||||||
let pk = item.pk()?;
|
let pk = item.pk()?;
|
||||||
assert_eq!(&[1], pk);
|
assert_eq!(&[1], pk);
|
||||||
|
Loading…
Reference in New Issue
Block a user