diff --git a/libsqlite3-sys/bindgen-bindings/bindgen_3.7.7.rs b/libsqlite3-sys/bindgen-bindings/bindgen_3.7.7.rs index dd4884a..37bebe3 100644 --- a/libsqlite3-sys/bindgen-bindings/bindgen_3.7.7.rs +++ b/libsqlite3-sys/bindgen-bindings/bindgen_3.7.7.rs @@ -1,10 +1,10 @@ /* automatically generated by rust-bindgen */ pub const __GNUC_VA_LIST: i32 = 1; -pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.14.0\x00"; -pub const SQLITE_VERSION_NUMBER: i32 = 3014000; +pub const SQLITE_VERSION: &'static [u8; 6usize] = b"3.7.7\x00"; +pub const SQLITE_VERSION_NUMBER: i32 = 3007007; pub const SQLITE_SOURCE_ID: &'static [u8; 61usize] = - b"2016-07-26 15:17:14 91e811f51e611a37372875e96a4c51bbed2dfdea\x00"; + b"2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2\x00"; pub const SQLITE_OK: i32 = 0; pub const SQLITE_ERROR: i32 = 1; pub const SQLITE_INTERNAL: i32 = 2; @@ -32,8 +32,6 @@ pub const SQLITE_AUTH: i32 = 23; pub const SQLITE_FORMAT: i32 = 24; pub const SQLITE_RANGE: i32 = 25; pub const SQLITE_NOTADB: i32 = 26; -pub const SQLITE_NOTICE: i32 = 27; -pub const SQLITE_WARNING: i32 = 28; pub const SQLITE_ROW: i32 = 100; pub const SQLITE_DONE: i32 = 101; pub const SQLITE_IOERR_READ: i32 = 266; @@ -58,40 +56,12 @@ pub const SQLITE_IOERR_SHMSIZE: i32 = 4874; pub const SQLITE_IOERR_SHMLOCK: i32 = 5130; pub const SQLITE_IOERR_SHMMAP: i32 = 5386; pub const SQLITE_IOERR_SEEK: i32 = 5642; -pub const SQLITE_IOERR_DELETE_NOENT: i32 = 5898; -pub const SQLITE_IOERR_MMAP: i32 = 6154; -pub const SQLITE_IOERR_GETTEMPPATH: i32 = 6410; -pub const SQLITE_IOERR_CONVPATH: i32 = 6666; -pub const SQLITE_IOERR_VNODE: i32 = 6922; -pub const SQLITE_IOERR_AUTH: i32 = 7178; pub const SQLITE_LOCKED_SHAREDCACHE: i32 = 262; pub const SQLITE_BUSY_RECOVERY: i32 = 261; -pub const SQLITE_BUSY_SNAPSHOT: i32 = 517; pub const SQLITE_CANTOPEN_NOTEMPDIR: i32 = 270; -pub const SQLITE_CANTOPEN_ISDIR: i32 = 526; -pub const SQLITE_CANTOPEN_FULLPATH: i32 = 782; -pub const SQLITE_CANTOPEN_CONVPATH: i32 = 1038; pub const SQLITE_CORRUPT_VTAB: i32 = 267; pub const SQLITE_READONLY_RECOVERY: i32 = 264; pub const SQLITE_READONLY_CANTLOCK: i32 = 520; -pub const SQLITE_READONLY_ROLLBACK: i32 = 776; -pub const SQLITE_READONLY_DBMOVED: i32 = 1032; -pub const SQLITE_ABORT_ROLLBACK: i32 = 516; -pub const SQLITE_CONSTRAINT_CHECK: i32 = 275; -pub const SQLITE_CONSTRAINT_COMMITHOOK: i32 = 531; -pub const SQLITE_CONSTRAINT_FOREIGNKEY: i32 = 787; -pub const SQLITE_CONSTRAINT_FUNCTION: i32 = 1043; -pub const SQLITE_CONSTRAINT_NOTNULL: i32 = 1299; -pub const SQLITE_CONSTRAINT_PRIMARYKEY: i32 = 1555; -pub const SQLITE_CONSTRAINT_TRIGGER: i32 = 1811; -pub const SQLITE_CONSTRAINT_UNIQUE: i32 = 2067; -pub const SQLITE_CONSTRAINT_VTAB: i32 = 2323; -pub const SQLITE_CONSTRAINT_ROWID: i32 = 2579; -pub const SQLITE_NOTICE_RECOVER_WAL: i32 = 283; -pub const SQLITE_NOTICE_RECOVER_ROLLBACK: i32 = 539; -pub const SQLITE_WARNING_AUTOINDEX: i32 = 284; -pub const SQLITE_AUTH_USER: i32 = 279; -pub const SQLITE_OK_LOAD_PERMANENTLY: i32 = 256; pub const SQLITE_OPEN_READONLY: i32 = 1; pub const SQLITE_OPEN_READWRITE: i32 = 2; pub const SQLITE_OPEN_CREATE: i32 = 4; @@ -99,7 +69,6 @@ pub const SQLITE_OPEN_DELETEONCLOSE: i32 = 8; pub const SQLITE_OPEN_EXCLUSIVE: i32 = 16; pub const SQLITE_OPEN_AUTOPROXY: i32 = 32; pub const SQLITE_OPEN_URI: i32 = 64; -pub const SQLITE_OPEN_MEMORY: i32 = 128; pub const SQLITE_OPEN_MAIN_DB: i32 = 256; pub const SQLITE_OPEN_TEMP_DB: i32 = 512; pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024; @@ -112,13 +81,6 @@ pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536; pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072; pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144; pub const SQLITE_OPEN_WAL: i32 = 524288; -pub const SQLITE_OPEN_FILEPROTECTION_COMPLETE: i32 = 1048576; -pub const SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN: i32 = 2097152; -pub const SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION: i32 - = - 3145728; -pub const SQLITE_OPEN_FILEPROTECTION_NONE: i32 = 4194304; -pub const SQLITE_OPEN_FILEPROTECTION_MASK: i32 = 7340032; pub const SQLITE_IOCAP_ATOMIC: i32 = 1; pub const SQLITE_IOCAP_ATOMIC512: i32 = 2; pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4; @@ -131,8 +93,6 @@ pub const SQLITE_IOCAP_ATOMIC64K: i32 = 256; pub const SQLITE_IOCAP_SAFE_APPEND: i32 = 512; pub const SQLITE_IOCAP_SEQUENTIAL: i32 = 1024; pub const SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN: i32 = 2048; -pub const SQLITE_IOCAP_POWERSAFE_OVERWRITE: i32 = 4096; -pub const SQLITE_IOCAP_IMMUTABLE: i32 = 8192; pub const SQLITE_LOCK_NONE: i32 = 0; pub const SQLITE_LOCK_SHARED: i32 = 1; pub const SQLITE_LOCK_RESERVED: i32 = 2; @@ -142,35 +102,13 @@ pub const SQLITE_SYNC_NORMAL: i32 = 2; pub const SQLITE_SYNC_FULL: i32 = 3; pub const SQLITE_SYNC_DATAONLY: i32 = 16; pub const SQLITE_FCNTL_LOCKSTATE: i32 = 1; -pub const SQLITE_FCNTL_GET_LOCKPROXYFILE: i32 = 2; -pub const SQLITE_FCNTL_SET_LOCKPROXYFILE: i32 = 3; -pub const SQLITE_FCNTL_LAST_ERRNO: i32 = 4; +pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2; +pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3; +pub const SQLITE_LAST_ERRNO: i32 = 4; pub const SQLITE_FCNTL_SIZE_HINT: i32 = 5; pub const SQLITE_FCNTL_CHUNK_SIZE: i32 = 6; pub const SQLITE_FCNTL_FILE_POINTER: i32 = 7; pub const SQLITE_FCNTL_SYNC_OMITTED: i32 = 8; -pub const SQLITE_FCNTL_WIN32_AV_RETRY: i32 = 9; -pub const SQLITE_FCNTL_PERSIST_WAL: i32 = 10; -pub const SQLITE_FCNTL_OVERWRITE: i32 = 11; -pub const SQLITE_FCNTL_VFSNAME: i32 = 12; -pub const SQLITE_FCNTL_POWERSAFE_OVERWRITE: i32 = 13; -pub const SQLITE_FCNTL_PRAGMA: i32 = 14; -pub const SQLITE_FCNTL_BUSYHANDLER: i32 = 15; -pub const SQLITE_FCNTL_TEMPFILENAME: i32 = 16; -pub const SQLITE_FCNTL_MMAP_SIZE: i32 = 18; -pub const SQLITE_FCNTL_TRACE: i32 = 19; -pub const SQLITE_FCNTL_HAS_MOVED: i32 = 20; -pub const SQLITE_FCNTL_SYNC: i32 = 21; -pub const SQLITE_FCNTL_COMMIT_PHASETWO: i32 = 22; -pub const SQLITE_FCNTL_WIN32_SET_HANDLE: i32 = 23; -pub const SQLITE_FCNTL_WAL_BLOCK: i32 = 24; -pub const SQLITE_FCNTL_ZIPVFS: i32 = 25; -pub const SQLITE_FCNTL_RBU: i32 = 26; -pub const SQLITE_FCNTL_VFS_POINTER: i32 = 27; -pub const SQLITE_FCNTL_JOURNAL_POINTER: i32 = 28; -pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2; -pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3; -pub const SQLITE_LAST_ERRNO: i32 = 4; pub const SQLITE_ACCESS_EXISTS: i32 = 0; pub const SQLITE_ACCESS_READWRITE: i32 = 1; pub const SQLITE_ACCESS_READ: i32 = 2; @@ -195,20 +133,9 @@ pub const SQLITE_CONFIG_PCACHE: i32 = 14; pub const SQLITE_CONFIG_GETPCACHE: i32 = 15; pub const SQLITE_CONFIG_LOG: i32 = 16; pub const SQLITE_CONFIG_URI: i32 = 17; -pub const SQLITE_CONFIG_PCACHE2: i32 = 18; -pub const SQLITE_CONFIG_GETPCACHE2: i32 = 19; -pub const SQLITE_CONFIG_COVERING_INDEX_SCAN: i32 = 20; -pub const SQLITE_CONFIG_SQLLOG: i32 = 21; -pub const SQLITE_CONFIG_MMAP_SIZE: i32 = 22; -pub const SQLITE_CONFIG_WIN32_HEAPSIZE: i32 = 23; -pub const SQLITE_CONFIG_PCACHE_HDRSZ: i32 = 24; -pub const SQLITE_CONFIG_PMASZ: i32 = 25; -pub const SQLITE_CONFIG_STMTJRNL_SPILL: i32 = 26; pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001; pub const SQLITE_DBCONFIG_ENABLE_FKEY: i32 = 1002; pub const SQLITE_DBCONFIG_ENABLE_TRIGGER: i32 = 1003; -pub const SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER: i32 = 1004; -pub const SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION: i32 = 1005; pub const SQLITE_DENY: i32 = 1; pub const SQLITE_IGNORE: i32 = 2; pub const SQLITE_CREATE_INDEX: i32 = 1; @@ -244,11 +171,6 @@ pub const SQLITE_DROP_VTABLE: i32 = 30; pub const SQLITE_FUNCTION: i32 = 31; pub const SQLITE_SAVEPOINT: i32 = 32; pub const SQLITE_COPY: i32 = 0; -pub const SQLITE_RECURSIVE: i32 = 33; -pub const SQLITE_TRACE_STMT: i32 = 1; -pub const SQLITE_TRACE_PROFILE: i32 = 2; -pub const SQLITE_TRACE_ROW: i32 = 4; -pub const SQLITE_TRACE_CLOSE: i32 = 8; pub const SQLITE_LIMIT_LENGTH: i32 = 0; pub const SQLITE_LIMIT_SQL_LENGTH: i32 = 1; pub const SQLITE_LIMIT_COLUMN: i32 = 2; @@ -260,7 +182,6 @@ pub const SQLITE_LIMIT_ATTACHED: i32 = 7; pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH: i32 = 8; pub const SQLITE_LIMIT_VARIABLE_NUMBER: i32 = 9; pub const SQLITE_LIMIT_TRIGGER_DEPTH: i32 = 10; -pub const SQLITE_LIMIT_WORKER_THREADS: i32 = 11; pub const SQLITE_INTEGER: i32 = 1; pub const SQLITE_FLOAT: i32 = 2; pub const SQLITE_BLOB: i32 = 4; @@ -273,17 +194,12 @@ pub const SQLITE_UTF16BE: i32 = 3; pub const SQLITE_UTF16: i32 = 4; pub const SQLITE_ANY: i32 = 5; pub const SQLITE_UTF16_ALIGNED: i32 = 8; -pub const SQLITE_DETERMINISTIC: i32 = 2048; -pub const SQLITE_INDEX_SCAN_UNIQUE: i32 = 1; pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2; pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4; pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8; pub const SQLITE_INDEX_CONSTRAINT_LT: i32 = 16; pub const SQLITE_INDEX_CONSTRAINT_GE: i32 = 32; pub const SQLITE_INDEX_CONSTRAINT_MATCH: i32 = 64; -pub const SQLITE_INDEX_CONSTRAINT_LIKE: i32 = 65; -pub const SQLITE_INDEX_CONSTRAINT_GLOB: i32 = 66; -pub const SQLITE_INDEX_CONSTRAINT_REGEXP: i32 = 67; pub const SQLITE_MUTEX_FAST: i32 = 0; pub const SQLITE_MUTEX_RECURSIVE: i32 = 1; pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2; @@ -294,12 +210,6 @@ pub const SQLITE_MUTEX_STATIC_PRNG: i32 = 5; pub const SQLITE_MUTEX_STATIC_LRU: i32 = 6; pub const SQLITE_MUTEX_STATIC_LRU2: i32 = 7; pub const SQLITE_MUTEX_STATIC_PMEM: i32 = 7; -pub const SQLITE_MUTEX_STATIC_APP1: i32 = 8; -pub const SQLITE_MUTEX_STATIC_APP2: i32 = 9; -pub const SQLITE_MUTEX_STATIC_APP3: i32 = 10; -pub const SQLITE_MUTEX_STATIC_VFS1: i32 = 11; -pub const SQLITE_MUTEX_STATIC_VFS2: i32 = 12; -pub const SQLITE_MUTEX_STATIC_VFS3: i32 = 13; pub const SQLITE_TESTCTRL_FIRST: i32 = 5; pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5; pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6; @@ -313,16 +223,10 @@ pub const SQLITE_TESTCTRL_ALWAYS: i32 = 13; pub const SQLITE_TESTCTRL_RESERVE: i32 = 14; pub const SQLITE_TESTCTRL_OPTIMIZATIONS: i32 = 15; pub const SQLITE_TESTCTRL_ISKEYWORD: i32 = 16; -pub const SQLITE_TESTCTRL_SCRATCHMALLOC: i32 = 17; -pub const SQLITE_TESTCTRL_LOCALTIME_FAULT: i32 = 18; -pub const SQLITE_TESTCTRL_EXPLAIN_STMT: i32 = 19; -pub const SQLITE_TESTCTRL_NEVER_CORRUPT: i32 = 20; -pub const SQLITE_TESTCTRL_VDBE_COVERAGE: i32 = 21; -pub const SQLITE_TESTCTRL_BYTEORDER: i32 = 22; -pub const SQLITE_TESTCTRL_ISINIT: i32 = 23; -pub const SQLITE_TESTCTRL_SORTER_MMAP: i32 = 24; -pub const SQLITE_TESTCTRL_IMPOSTER: i32 = 25; -pub const SQLITE_TESTCTRL_LAST: i32 = 25; +pub const SQLITE_TESTCTRL_PGHDRSZ: i32 = 17; +pub const SQLITE_TESTCTRL_SCRATCHMALLOC: i32 = 18; +pub const SQLITE_TESTCTRL_LOCALTIME_FAULT: i32 = 19; +pub const SQLITE_TESTCTRL_LAST: i32 = 19; pub const SQLITE_STATUS_MEMORY_USED: i32 = 0; pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1; pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2; @@ -340,38 +244,17 @@ pub const SQLITE_DBSTATUS_STMT_USED: i32 = 3; pub const SQLITE_DBSTATUS_LOOKASIDE_HIT: i32 = 4; pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE: i32 = 5; pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL: i32 = 6; -pub const SQLITE_DBSTATUS_CACHE_HIT: i32 = 7; -pub const SQLITE_DBSTATUS_CACHE_MISS: i32 = 8; -pub const SQLITE_DBSTATUS_CACHE_WRITE: i32 = 9; -pub const SQLITE_DBSTATUS_DEFERRED_FKS: i32 = 10; -pub const SQLITE_DBSTATUS_CACHE_USED_SHARED: i32 = 11; -pub const SQLITE_DBSTATUS_MAX: i32 = 11; +pub const SQLITE_DBSTATUS_MAX: i32 = 6; pub const SQLITE_STMTSTATUS_FULLSCAN_STEP: i32 = 1; pub const SQLITE_STMTSTATUS_SORT: i32 = 2; pub const SQLITE_STMTSTATUS_AUTOINDEX: i32 = 3; -pub const SQLITE_STMTSTATUS_VM_STEP: i32 = 4; pub const SQLITE_CHECKPOINT_PASSIVE: i32 = 0; pub const SQLITE_CHECKPOINT_FULL: i32 = 1; pub const SQLITE_CHECKPOINT_RESTART: i32 = 2; -pub const SQLITE_CHECKPOINT_TRUNCATE: i32 = 3; pub const SQLITE_VTAB_CONSTRAINT_SUPPORT: i32 = 1; pub const SQLITE_ROLLBACK: i32 = 1; pub const SQLITE_FAIL: i32 = 3; pub const SQLITE_REPLACE: i32 = 5; -pub const SQLITE_SCANSTAT_NLOOP: i32 = 0; -pub const SQLITE_SCANSTAT_NVISIT: i32 = 1; -pub const SQLITE_SCANSTAT_EST: i32 = 2; -pub const SQLITE_SCANSTAT_NAME: i32 = 3; -pub const SQLITE_SCANSTAT_EXPLAIN: i32 = 4; -pub const SQLITE_SCANSTAT_SELECTID: i32 = 5; -pub const NOT_WITHIN: i32 = 0; -pub const PARTLY_WITHIN: i32 = 1; -pub const FULLY_WITHIN: i32 = 2; -pub const FTS5_TOKENIZE_QUERY: i32 = 1; -pub const FTS5_TOKENIZE_PREFIX: i32 = 2; -pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4; -pub const FTS5_TOKENIZE_AUX: i32 = 8; -pub const FTS5_TOKEN_COLOCATED: i32 = 1; pub type va_list = __builtin_va_list; pub type __gnuc_va_list = __builtin_va_list; extern "C" { @@ -408,9 +291,6 @@ pub type sqlite3_uint64 = sqlite_uint64; extern "C" { pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_close_v2(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} pub type sqlite3_callback = ::std::option::Option ::std::os::raw::c_int>, - pub xFetch: ::std::option::Option ::std::os::raw::c_int>, - pub xUnfetch: ::std::option::Option ::std::os::raw::c_int>, } #[test] fn bindgen_test_layout_sqlite3_file_sqlite3_io_methods() { assert_eq!(::std::mem::size_of::() , - 152usize); + 136usize); assert_eq!(::std::mem::align_of::() , 8usize); } @@ -840,26 +704,14 @@ extern "C" { pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void; } -extern "C" { - pub fn sqlite3_malloc64(arg1: sqlite3_uint64) - -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn sqlite3_realloc(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void; } -extern "C" { - pub fn sqlite3_realloc64(arg1: *mut ::std::os::raw::c_void, - arg2: sqlite3_uint64) - -> *mut ::std::os::raw::c_void; -} extern "C" { pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void); } -extern "C" { - pub fn sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64; -} extern "C" { pub fn sqlite3_memory_used() -> sqlite3_int64; } @@ -913,22 +765,6 @@ extern "C" { arg2: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void; } -extern "C" { - pub fn sqlite3_trace_v2(arg1: *mut sqlite3, uMask: ::std::os::raw::c_uint, - xCallback: - ::std::option::Option - ::std::os::raw::c_int>, - pCtx: *mut ::std::os::raw::c_void) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_progress_handler(arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, @@ -959,17 +795,6 @@ extern "C" { zParam: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char; } -extern "C" { - pub fn sqlite3_uri_boolean(zFile: *const ::std::os::raw::c_char, - zParam: *const ::std::os::raw::c_char, - bDefault: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_uri_int64(arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: sqlite3_int64) -> sqlite3_int64; -} extern "C" { pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; } @@ -985,10 +810,6 @@ extern "C" { pub fn sqlite3_errmsg16(arg1: *mut sqlite3) -> *const ::std::os::raw::c_void; } -extern "C" { - pub fn sqlite3_errstr(arg1: ::std::os::raw::c_int) - -> *const ::std::os::raw::c_char; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sqlite3_stmt([u8; 0]); @@ -1033,18 +854,10 @@ extern "C" { pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char; } -extern "C" { - pub fn sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) - -> *mut ::std::os::raw::c_char; -} extern "C" { pub fn sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) - -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct Mem([u8; 0]); @@ -1062,16 +875,6 @@ extern "C" { *mut ::std::os::raw::c_void)>) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_bind_blob64(arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_void, - arg4: sqlite3_uint64, - arg5: - ::std::option::Option) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_bind_double(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: f64) @@ -1097,8 +900,8 @@ extern "C" { pub fn sqlite3_bind_text(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - arg5: + n: ::std::os::raw::c_int, + arg4: ::std::option::Option) -> ::std::os::raw::c_int; @@ -1113,17 +916,6 @@ extern "C" { *mut ::std::os::raw::c_void)>) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_bind_text64(arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: sqlite3_uint64, - arg5: - ::std::option::Option, - encoding: ::std::os::raw::c_uchar) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_bind_value(arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, @@ -1136,12 +928,6 @@ extern "C" { n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_bind_zeroblob64(arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: sqlite3_uint64) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; @@ -1432,17 +1218,6 @@ extern "C" { pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_value_subtype(arg1: *mut sqlite3_value) - -> ::std::os::raw::c_uint; -} -extern "C" { - pub fn sqlite3_value_dup(arg1: *const sqlite3_value) - -> *mut sqlite3_value; -} -extern "C" { - pub fn sqlite3_value_free(arg1: *mut sqlite3_value); -} extern "C" { pub fn sqlite3_aggregate_context(arg1: *mut sqlite3_context, nBytes: ::std::os::raw::c_int) @@ -1480,14 +1255,6 @@ extern "C" { ::std::option::Option); } -extern "C" { - pub fn sqlite3_result_blob64(arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_void, - arg3: sqlite3_uint64, - arg4: - ::std::option::Option); -} extern "C" { pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64); } @@ -1530,15 +1297,6 @@ extern "C" { ::std::option::Option); } -extern "C" { - pub fn sqlite3_result_text64(arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_char, - arg3: sqlite3_uint64, - arg4: - ::std::option::Option, - encoding: ::std::os::raw::c_uchar); -} extern "C" { pub fn sqlite3_result_text16(arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, @@ -1571,15 +1329,6 @@ extern "C" { pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int); } -extern "C" { - pub fn sqlite3_result_zeroblob64(arg1: *mut sqlite3_context, - n: sqlite3_uint64) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_result_subtype(arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_uint); -} extern "C" { pub fn sqlite3_create_collation(arg1: *mut sqlite3, zName: *const ::std::os::raw::c_char, @@ -1679,10 +1428,6 @@ extern "C" { #[link_name = "sqlite3_temp_directory"] pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char; } -extern "C" { - #[link_name = "sqlite3_data_directory"] - pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char; -} extern "C" { pub fn sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int; @@ -1690,16 +1435,6 @@ extern "C" { extern "C" { pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3; } -extern "C" { - pub fn sqlite3_db_filename(db: *mut sqlite3, - zDbName: *const ::std::os::raw::c_char) - -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_db_readonly(db: *mut sqlite3, - zDbName: *const ::std::os::raw::c_char) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt; @@ -1746,10 +1481,6 @@ extern "C" { pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_db_release_memory(arg1: *mut sqlite3) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; } @@ -1791,11 +1522,6 @@ extern "C" { ::std::option::Option) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_cancel_auto_extension(xEntryPoint: - ::std::option::Option) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_reset_auto_extension(); } @@ -1827,9 +1553,6 @@ pub struct sqlite3_index_info { pub needToFreeIdxStr: ::std::os::raw::c_int, pub orderByConsumed: ::std::os::raw::c_int, pub estimatedCost: f64, - pub estimatedRows: sqlite3_int64, - pub idxFlags: ::std::os::raw::c_int, - pub colUsed: sqlite3_uint64, } #[repr(C)] #[derive(Debug, Copy)] @@ -1883,7 +1606,7 @@ impl Clone for sqlite3_index_info_sqlite3_index_constraint_usage { } #[test] fn bindgen_test_layout_sqlite3_index_info() { - assert_eq!(::std::mem::size_of::() , 96usize); + assert_eq!(::std::mem::size_of::() , 72usize); assert_eq!(::std::mem::align_of::() , 8usize); } impl Clone for sqlite3_index_info { @@ -2206,13 +1929,6 @@ extern "C" { resetFlag: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_status64(op: ::std::os::raw::c_int, - pCurrent: *mut sqlite3_int64, - pHighwater: *mut sqlite3_int64, - resetFlag: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_db_status(arg1: *mut sqlite3, op: ::std::os::raw::c_int, pCur: *mut ::std::os::raw::c_int, @@ -2231,82 +1947,6 @@ extern "C" { pub struct sqlite3_pcache([u8; 0]); #[repr(C)] #[derive(Debug, Copy)] -pub struct sqlite3_pcache_page { - pub pBuf: *mut ::std::os::raw::c_void, - pub pExtra: *mut ::std::os::raw::c_void, -} -#[test] -fn bindgen_test_layout_sqlite3_pcache_page() { - assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for sqlite3_pcache_page { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct sqlite3_pcache_methods2 { - pub iVersion: ::std::os::raw::c_int, - pub pArg: *mut ::std::os::raw::c_void, - pub xInit: ::std::option::Option ::std::os::raw::c_int>, - pub xShutdown: ::std::option::Option, - pub xCreate: ::std::option::Option *mut sqlite3_pcache>, - pub xCachesize: ::std::option::Option, - pub xPagecount: ::std::option::Option ::std::os::raw::c_int>, - pub xFetch: ::std::option::Option *mut sqlite3_pcache_page>, - pub xUnpin: ::std::option::Option, - pub xRekey: ::std::option::Option, - pub xTruncate: ::std::option::Option, - pub xDestroy: ::std::option::Option, - pub xShrink: ::std::option::Option, -} -#[test] -fn bindgen_test_layout_sqlite3_pcache_methods2() { - assert_eq!(::std::mem::size_of::() , 104usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for sqlite3_pcache_methods2 { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] pub struct sqlite3_pcache_methods { pub pArg: *mut ::std::os::raw::c_void, pub xInit: ::std::option::Option ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_stricmp(arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_strnicmp(arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_strglob(zGlob: *const ::std::os::raw::c_char, - zStr: *const ::std::os::raw::c_char) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_strlike(zGlob: *const ::std::os::raw::c_char, - zStr: *const ::std::os::raw::c_char, - cEsc: ::std::os::raw::c_uint) - -> ::std::os::raw::c_int; -} extern "C" { pub fn sqlite3_log(iErrCode: ::std::os::raw::c_int, zFormat: *const ::std::os::raw::c_char, ...); @@ -2468,28 +2092,12 @@ extern "C" { pub fn sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_stmt_scanstatus(pStmt: *mut sqlite3_stmt, - idx: ::std::os::raw::c_int, - iScanStatusOp: ::std::os::raw::c_int, - pOut: *mut ::std::os::raw::c_void) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt); -} -extern "C" { - pub fn sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} #[repr(C)] #[derive(Debug, Copy)] pub struct sqlite3_rtree_geometry { pub pContext: *mut ::std::os::raw::c_void, pub nParam: ::std::os::raw::c_int, - pub aParam: *mut sqlite3_rtree_dbl, + pub aParam: *mut f64, pub pUser: *mut ::std::os::raw::c_void, pub xDelUser: ::std::option::Option, @@ -2502,36 +2110,6 @@ fn bindgen_test_layout_sqlite3_rtree_geometry() { impl Clone for sqlite3_rtree_geometry { fn clone(&self) -> Self { *self } } -#[repr(C)] -#[derive(Debug, Copy)] -pub struct sqlite3_rtree_query_info { - pub pContext: *mut ::std::os::raw::c_void, - pub nParam: ::std::os::raw::c_int, - pub aParam: *mut sqlite3_rtree_dbl, - pub pUser: *mut ::std::os::raw::c_void, - pub xDelUser: ::std::option::Option, - pub aCoord: *mut sqlite3_rtree_dbl, - pub anQueue: *mut ::std::os::raw::c_uint, - pub nCoord: ::std::os::raw::c_int, - pub iLevel: ::std::os::raw::c_int, - pub mxLevel: ::std::os::raw::c_int, - pub iRowid: sqlite3_int64, - pub rParentScore: sqlite3_rtree_dbl, - pub eParentWithin: ::std::os::raw::c_int, - pub eWithin: ::std::os::raw::c_int, - pub rScore: sqlite3_rtree_dbl, - pub apSqlParam: *mut *mut sqlite3_value, -} -#[test] -fn bindgen_test_layout_sqlite3_rtree_query_info() { - assert_eq!(::std::mem::size_of::() , 112usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for sqlite3_rtree_query_info { - fn clone(&self) -> Self { *self } -} -pub type sqlite3_rtree_dbl = f64; extern "C" { pub fn sqlite3_rtree_geometry_callback(db: *mut sqlite3, zGeom: @@ -2539,11 +2117,11 @@ extern "C" { xGeom: ::std::option::Option ::std::os::raw::c_int>, @@ -2551,306 +2129,6 @@ extern "C" { *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; } -extern "C" { - pub fn sqlite3_rtree_query_callback(db: *mut sqlite3, - zQueryFunc: - *const ::std::os::raw::c_char, - xQueryFunc: - ::std::option::Option - ::std::os::raw::c_int>, - pContext: *mut ::std::os::raw::c_void, - xDestructor: - ::std::option::Option) - -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct Fts5ExtensionApi { - pub iVersion: ::std::os::raw::c_int, - pub xUserData: ::std::option::Option *mut ::std::os::raw::c_void>, - pub xColumnCount: ::std::option::Option ::std::os::raw::c_int>, - pub xRowCount: ::std::option::Option ::std::os::raw::c_int>, - pub xColumnTotalSize: ::std::option::Option ::std::os::raw::c_int>, - pub xTokenize: ::std::option::Option - ::std::os::raw::c_int>) - -> ::std::os::raw::c_int>, - pub xPhraseCount: ::std::option::Option ::std::os::raw::c_int>, - pub xPhraseSize: ::std::option::Option ::std::os::raw::c_int>, - pub xInstCount: ::std::option::Option ::std::os::raw::c_int>, - pub xInst: ::std::option::Option ::std::os::raw::c_int>, - pub xRowid: ::std::option::Option ::std::os::raw::c_longlong>, - pub xColumnText: ::std::option::Option ::std::os::raw::c_int>, - pub xColumnSize: ::std::option::Option ::std::os::raw::c_int>, - pub xQueryPhrase: ::std::option::Option - ::std::os::raw::c_int>) - -> ::std::os::raw::c_int>, - pub xSetAuxdata: ::std::option::Option) - -> ::std::os::raw::c_int>, - pub xGetAuxdata: ::std::option::Option - *mut ::std::os::raw::c_void>, - pub xPhraseFirst: ::std::option::Option ::std::os::raw::c_int>, - pub xPhraseNext: ::std::option::Option, - pub xPhraseFirstColumn: ::std::option::Option - ::std::os::raw::c_int>, - pub xPhraseNextColumn: ::std::option::Option, -} -#[test] -fn bindgen_test_layout_Fts5ExtensionApi() { - assert_eq!(::std::mem::size_of::() , 160usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for Fts5ExtensionApi { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Fts5Context([u8; 0]); -#[repr(C)] -#[derive(Debug, Copy)] -pub struct Fts5PhraseIter { - pub a: *const ::std::os::raw::c_uchar, - pub b: *const ::std::os::raw::c_uchar, -} -#[test] -fn bindgen_test_layout_Fts5PhraseIter() { - assert_eq!(::std::mem::size_of::() , 16usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for Fts5PhraseIter { - fn clone(&self) -> Self { *self } -} -pub type fts5_extension_function = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Fts5Tokenizer([u8; 0]); -#[repr(C)] -#[derive(Debug, Copy)] -pub struct fts5_tokenizer { - pub xCreate: ::std::option::Option ::std::os::raw::c_int>, - pub xDelete: ::std::option::Option, - pub xTokenize: ::std::option::Option - ::std::os::raw::c_int>) - -> ::std::os::raw::c_int>, -} -#[test] -fn bindgen_test_layout_fts5_tokenizer() { - assert_eq!(::std::mem::size_of::() , 24usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for fts5_tokenizer { - fn clone(&self) -> Self { *self } -} -#[repr(C)] -#[derive(Debug, Copy)] -pub struct fts5_api { - pub iVersion: ::std::os::raw::c_int, - pub xCreateTokenizer: ::std::option::Option) - -> ::std::os::raw::c_int>, - pub xFindTokenizer: ::std::option::Option ::std::os::raw::c_int>, - pub xCreateFunction: ::std::option::Option) - -> ::std::os::raw::c_int>, -} -#[test] -fn bindgen_test_layout_fts5_api() { - assert_eq!(::std::mem::size_of::() , 32usize); - assert_eq!(::std::mem::align_of::() , 8usize); -} -impl Clone for fts5_api { - fn clone(&self) -> Self { *self } -} #[repr(C)] #[derive(Debug, Copy)] pub struct __va_list_tag { @@ -2863,3 +2141,5 @@ impl Clone for __va_list_tag { fn clone(&self) -> Self { *self } } pub type __builtin_va_list = [__va_list_tag; 1usize]; + +pub const SQLITE_DETERMINISTIC: i32 = 2048;