From 0a13bbb941af186ceaee1089007140e8b33db2a1 Mon Sep 17 00:00:00 2001 From: LucaCappelletti94 Date: Sat, 31 Oct 2026 13:35:43 +0100 Subject: [PATCH] Update sqlite3mc-src to 206.1.0 --- Cargo.toml | 2 +- src/bindings/sqlite3mc_bindgen.rs | 68 +++++++++++++++++++------------ 2 files changed, 42 insertions(+), 28 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 80490c4..f3cab6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ sqlcipher = ["dep:sqlcipher-src"] [build-dependencies] cc = "1" bindgen = { version = "0.73", default-features = false, features = ["runtime", "prettyplease"], optional = true } -sqlite3mc-src = { version = "=205.1.0", optional = true } +sqlite3mc-src = { version = "=206.1.0", optional = true } sqlcipher-src = { version = "=420.0.0", optional = true } [dev-dependencies] diff --git a/src/bindings/sqlite3mc_bindgen.rs b/src/bindings/sqlite3mc_bindgen.rs index 558d5db..54064c3 100644 --- a/src/bindings/sqlite3mc_bindgen.rs +++ b/src/bindings/sqlite3mc_bindgen.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ extern "C" { pub fn sqlite3_auto_extension( @@ -40,16 +40,16 @@ pub unsafe fn sqlite3_enable_load_extension( } pub const SQLITE3MC_VERSION_MAJOR: i32 = 2; -pub const SQLITE3MC_VERSION_MINOR: i32 = 5; +pub const SQLITE3MC_VERSION_MINOR: i32 = 6; pub const SQLITE3MC_VERSION_RELEASE: i32 = 1; pub const SQLITE3MC_VERSION_SUBRELEASE: i32 = 0; -pub const SQLITE3MC_VERSION_STRING: &::core::ffi::CStr = c"SQLite3 Multiple Ciphers 2.5.1"; -pub const SQLITE_VERSION: &::core::ffi::CStr = c"3.53.4"; -pub const SQLITE_VERSION_NUMBER: i32 = 3053004; -pub const SQLITE_SOURCE_ID: &::core::ffi::CStr = c"2026-07-24 19:02:57 bf7c7f30031888f4e796e429ab3978879485813aaca6f641c7b33e4e09459bcc"; -pub const SQLITE_SCM_BRANCH: &::core::ffi::CStr = c"branch-3.53"; -pub const SQLITE_SCM_TAGS: &::core::ffi::CStr = c"release version-3.53.4"; -pub const SQLITE_SCM_DATETIME: &::core::ffi::CStr = c"2026-07-24T19:02:57.525Z"; +pub const SQLITE3MC_VERSION_STRING: &::core::ffi::CStr = c"SQLite3 Multiple Ciphers 2.6.1"; +pub const SQLITE_VERSION: &::core::ffi::CStr = c"3.54.0"; +pub const SQLITE_VERSION_NUMBER: i32 = 3054000; +pub const SQLITE_SOURCE_ID: &::core::ffi::CStr = c"2026-10-09 15:46:58 be8d059e9a49089ab2dce5ed26dd87aaf598fdc5fbe0b107c0dd758464bcd5e3"; +pub const SQLITE_SCM_BRANCH: &::core::ffi::CStr = c"trunk"; +pub const SQLITE_SCM_TAGS: &::core::ffi::CStr = c"release major-release version-3.54.0"; +pub const SQLITE_SCM_DATETIME: &::core::ffi::CStr = c"2026-10-09T15:46:58.543Z"; pub const SQLITE_OK: i32 = 0; pub const SQLITE_ERROR: i32 = 1; pub const SQLITE_INTERNAL: i32 = 2; @@ -354,7 +354,6 @@ pub const SQLITE_CREATE_VTABLE: i32 = 29; 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: ::core::ffi::c_uint = 1; pub const SQLITE_TRACE_PROFILE: ::core::ffi::c_uint = 2; @@ -373,6 +372,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_LIMIT_PARSER_DEPTH: i32 = 12; +pub const SQLITE_LIMIT_SCHEMA: i32 = 13; +pub const SQLITE_LIMIT_TRIGGER_STEPS: i32 = 14; pub const SQLITE_PREPARE_PERSISTENT: ::core::ffi::c_uint = 1; pub const SQLITE_PREPARE_NORMALIZE: ::core::ffi::c_uint = 2; pub const SQLITE_PREPARE_NO_VTAB: ::core::ffi::c_uint = 4; @@ -476,6 +477,9 @@ pub const SQLITE_TESTCTRL_LOGEST: i32 = 33; pub const SQLITE_TESTCTRL_USELONGDOUBLE: i32 = 34; pub const SQLITE_TESTCTRL_ATOF: i32 = 34; pub const SQLITE_TESTCTRL_LAST: i32 = 34; +pub const SQLITE_COPY: i32 = 0; +pub const SQLITE_XFER: i32 = 1; +pub const SQLITE_FINISH: i32 = 2; pub const SQLITE_STATUS_MEMORY_USED: i32 = 0; pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1; pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2; @@ -606,7 +610,7 @@ extern "C" { pub fn sqlite3_threadsafe() -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3 { _unused: [u8; 0], } @@ -761,12 +765,12 @@ pub struct sqlite3_io_methods { >, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_mutex { _unused: [u8; 0], } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_api_routines { _unused: [u8; 0], } @@ -978,6 +982,9 @@ extern "C" { extern "C" { pub fn sqlite3_complete(sql: *const ::core::ffi::c_char) -> ::core::ffi::c_int; } +extern "C" { + pub fn sqlite3_incomplete(sql: *const ::core::ffi::c_char) -> sqlite3_int64; +} extern "C" { pub fn sqlite3_busy_handler( arg1: *mut sqlite3, @@ -1197,7 +1204,7 @@ extern "C" { ) -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_stmt { _unused: [u8; 0], } @@ -1249,12 +1256,12 @@ extern "C" { pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_value { _unused: [u8; 0], } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_context { _unused: [u8; 0], } @@ -2121,7 +2128,7 @@ extern "C" { ) -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_blob { _unused: [u8; 0], } @@ -2255,7 +2262,7 @@ extern "C" { ) -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_str { _unused: [u8; 0], } @@ -2268,6 +2275,13 @@ extern "C" { extern "C" { pub fn sqlite3_str_free(arg1: *mut sqlite3_str); } +extern "C" { + pub fn sqlite3_result_str( + arg1: *mut sqlite3_context, + arg2: *mut sqlite3_str, + arg3: ::core::ffi::c_int, + ); +} extern "C" { pub fn sqlite3_str_appendf( arg1: *mut sqlite3_str, @@ -2352,7 +2366,7 @@ extern "C" { ) -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_pcache { _unused: [u8; 0], } @@ -2468,7 +2482,7 @@ pub struct sqlite3_pcache_methods { >, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_backup { _unused: [u8; 0], } @@ -2831,12 +2845,12 @@ pub struct sqlite3_rtree_query_info { pub apSqlParam: *mut *mut sqlite3_value, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_session { _unused: [u8; 0], } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_changeset_iter { _unused: [u8; 0], } @@ -3007,7 +3021,7 @@ extern "C" { ) -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_changegroup { _unused: [u8; 0], } @@ -3116,7 +3130,7 @@ extern "C" { ) -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct sqlite3_rebaser { _unused: [u8; 0], } @@ -3448,7 +3462,7 @@ extern "C" { ) -> ::core::ffi::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct Fts5Context { _unused: [u8; 0], } @@ -3659,7 +3673,7 @@ pub struct Fts5ExtensionApi { >, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct Fts5Tokenizer { _unused: [u8; 0], } @@ -3873,7 +3887,7 @@ pub struct _CipherParams { } pub type CipherParams = _CipherParams; #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct BtShared { _unused: [u8; 0], }