mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 02:21:37 +08:00
Regenerate bindgen_bundled_version_ext.rs for version 3.43.2
This commit is contained in:
parent
74c867d708
commit
d8c7ad3202
@ -1,9 +1,9 @@
|
||||
/* automatically generated by rust-bindgen 0.66.1 */
|
||||
/* automatically generated by rust-bindgen 0.68.1 */
|
||||
|
||||
pub const SQLITE_VERSION: &[u8; 7] = b"3.42.0\0";
|
||||
pub const SQLITE_VERSION_NUMBER: i32 = 3042000;
|
||||
pub const SQLITE_VERSION: &[u8; 7] = b"3.43.2\0";
|
||||
pub const SQLITE_VERSION_NUMBER: i32 = 3043002;
|
||||
pub const SQLITE_SOURCE_ID: &[u8; 85] =
|
||||
b"2023-05-16 12:36:15 831d0fb2836b71c9bc51067c49fee4b8f18047814f2ff22d817d25195cf350b0\0";
|
||||
b"2023-10-10 12:14:04 4310099cce5a487035fa535dd3002c59ac7f1d1bec68d7cf317fd3e769484790\0";
|
||||
pub const SQLITE_OK: i32 = 0;
|
||||
pub const SQLITE_ERROR: i32 = 1;
|
||||
pub const SQLITE_INTERNAL: i32 = 2;
|
||||
@ -71,6 +71,7 @@ pub const SQLITE_IOERR_COMMIT_ATOMIC: i32 = 7690;
|
||||
pub const SQLITE_IOERR_ROLLBACK_ATOMIC: i32 = 7946;
|
||||
pub const SQLITE_IOERR_DATA: i32 = 8202;
|
||||
pub const SQLITE_IOERR_CORRUPTFS: i32 = 8458;
|
||||
pub const SQLITE_IOERR_IN_PAGE: i32 = 8714;
|
||||
pub const SQLITE_LOCKED_SHAREDCACHE: i32 = 262;
|
||||
pub const SQLITE_LOCKED_VTAB: i32 = 518;
|
||||
pub const SQLITE_BUSY_RECOVERY: i32 = 261;
|
||||
@ -401,7 +402,8 @@ pub const SQLITE_TESTCTRL_SEEK_COUNT: i32 = 30;
|
||||
pub const SQLITE_TESTCTRL_TRACEFLAGS: i32 = 31;
|
||||
pub const SQLITE_TESTCTRL_TUNE: i32 = 32;
|
||||
pub const SQLITE_TESTCTRL_LOGEST: i32 = 33;
|
||||
pub const SQLITE_TESTCTRL_LAST: i32 = 33;
|
||||
pub const SQLITE_TESTCTRL_USELONGDOUBLE: i32 = 34;
|
||||
pub const SQLITE_TESTCTRL_LAST: i32 = 34;
|
||||
pub const SQLITE_STATUS_MEMORY_USED: i32 = 0;
|
||||
pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1;
|
||||
pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2;
|
||||
@ -1346,7 +1348,7 @@ pub struct fts5_api {
|
||||
unsafe extern "C" fn(
|
||||
pApi: *mut fts5_api,
|
||||
zName: *const ::std::os::raw::c_char,
|
||||
pContext: *mut ::std::os::raw::c_void,
|
||||
pUserData: *mut ::std::os::raw::c_void,
|
||||
pTokenizer: *mut fts5_tokenizer,
|
||||
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
|
||||
) -> ::std::os::raw::c_int,
|
||||
@ -1355,7 +1357,7 @@ pub struct fts5_api {
|
||||
unsafe extern "C" fn(
|
||||
pApi: *mut fts5_api,
|
||||
zName: *const ::std::os::raw::c_char,
|
||||
ppContext: *mut *mut ::std::os::raw::c_void,
|
||||
ppUserData: *mut *mut ::std::os::raw::c_void,
|
||||
pTokenizer: *mut fts5_tokenizer,
|
||||
) -> ::std::os::raw::c_int,
|
||||
>,
|
||||
@ -1363,7 +1365,7 @@ pub struct fts5_api {
|
||||
unsafe extern "C" fn(
|
||||
pApi: *mut fts5_api,
|
||||
zName: *const ::std::os::raw::c_char,
|
||||
pContext: *mut ::std::os::raw::c_void,
|
||||
pUserData: *mut ::std::os::raw::c_void,
|
||||
xFunction: fts5_extension_function,
|
||||
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
|
||||
) -> ::std::os::raw::c_int,
|
||||
@ -2864,6 +2866,12 @@ pub struct sqlite3_api_routines {
|
||||
>,
|
||||
pub is_interrupted:
|
||||
::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3) -> ::std::os::raw::c_int>,
|
||||
pub stmt_explain: ::std::option::Option<
|
||||
unsafe extern "C" fn(
|
||||
arg1: *mut sqlite3_stmt,
|
||||
arg2: ::std::os::raw::c_int,
|
||||
) -> ::std::os::raw::c_int,
|
||||
>,
|
||||
}
|
||||
pub type sqlite3_loadext_entry = ::std::option::Option<
|
||||
unsafe extern "C" fn(
|
||||
@ -7399,6 +7407,24 @@ pub unsafe fn sqlite3_is_interrupted(arg1: *mut sqlite3) -> ::std::os::raw::c_in
|
||||
(fun)(arg1)
|
||||
}
|
||||
|
||||
static __SQLITE3_STMT_EXPLAIN: ::atomic::Atomic<
|
||||
Option<
|
||||
unsafe extern "C" fn(
|
||||
arg1: *mut sqlite3_stmt,
|
||||
arg2: ::std::os::raw::c_int,
|
||||
) -> ::std::os::raw::c_int,
|
||||
>,
|
||||
> = ::atomic::Atomic::new(None);
|
||||
pub unsafe fn sqlite3_stmt_explain(
|
||||
arg1: *mut sqlite3_stmt,
|
||||
arg2: ::std::os::raw::c_int,
|
||||
) -> ::std::os::raw::c_int {
|
||||
let fun = __SQLITE3_STMT_EXPLAIN
|
||||
.load(::atomic::Ordering::Acquire)
|
||||
.expect("SQLite API not initialized or SQLite feature omitted");
|
||||
(fun)(arg1, arg2)
|
||||
}
|
||||
|
||||
/// Like SQLITE_EXTENSION_INIT2 macro
|
||||
pub unsafe fn rusqlite_extension_init2(
|
||||
p_api: *mut sqlite3_api_routines,
|
||||
@ -7730,6 +7756,7 @@ pub unsafe fn rusqlite_extension_init2(
|
||||
__SQLITE3_DB_NAME.store((*p_api).db_name, ::atomic::Ordering::Release);
|
||||
__SQLITE3_VALUE_ENCODING.store((*p_api).value_encoding, ::atomic::Ordering::Release);
|
||||
__SQLITE3_IS_INTERRUPTED.store((*p_api).is_interrupted, ::atomic::Ordering::Release);
|
||||
__SQLITE3_STMT_EXPLAIN.store((*p_api).stmt_explain, ::atomic::Ordering::Release);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user