@@ -23,10 +23,11 @@ extern "C" {
2323 ) -> :: std:: os:: raw:: c_int ;
2424}
2525
26- pub const SQLITE_VERSION : & [ u8 ; 7 ] = b"3.44.0\0 " ;
27- pub const SQLITE_VERSION_NUMBER : i32 = 3044000 ;
26+ pub const __GNUC_VA_LIST: i32 = 1 ;
27+ pub const SQLITE_VERSION : & [ u8 ; 7 ] = b"3.45.1\0 " ;
28+ pub const SQLITE_VERSION_NUMBER : i32 = 3045001 ;
2829pub const SQLITE_SOURCE_ID : & [ u8 ; 85 ] =
29- b"2023-11-01 11:23:50 17129ba1ff7f0daf37100ee82d507aef7827cf38de1866e2633096ae6ad8alt1 \0 " ;
30+ b"2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257ccalt1 \0 " ;
3031pub const LIBSQL_VERSION : & [ u8 ; 6 ] = b"0.2.3\0 " ;
3132pub const SQLITE_OK : i32 = 0 ;
3233pub const SQLITE_ERROR : i32 = 1 ;
@@ -355,6 +356,7 @@ pub const SQLITE_DETERMINISTIC: i32 = 2048;
355356pub const SQLITE_DIRECTONLY : i32 = 524288 ;
356357pub const SQLITE_SUBTYPE : i32 = 1048576 ;
357358pub const SQLITE_INNOCUOUS : i32 = 2097152 ;
359+ pub const SQLITE_RESULT_SUBTYPE : i32 = 16777216 ;
358360pub const SQLITE_WIN32_DATA_DIRECTORY_TYPE : i32 = 1 ;
359361pub const SQLITE_WIN32_TEMP_DIRECTORY_TYPE : i32 = 2 ;
360362pub const SQLITE_TXN_NONE : i32 = 0 ;
@@ -407,6 +409,7 @@ pub const SQLITE_TESTCTRL_PENDING_BYTE: i32 = 11;
407409pub const SQLITE_TESTCTRL_ASSERT : i32 = 12 ;
408410pub const SQLITE_TESTCTRL_ALWAYS : i32 = 13 ;
409411pub const SQLITE_TESTCTRL_RESERVE : i32 = 14 ;
412+ pub const SQLITE_TESTCTRL_JSON_SELFCHECK : i32 = 14 ;
410413pub const SQLITE_TESTCTRL_OPTIMIZATIONS : i32 = 15 ;
411414pub const SQLITE_TESTCTRL_ISKEYWORD : i32 = 16 ;
412415pub const SQLITE_TESTCTRL_SCRATCHMALLOC : i32 = 17 ;
@@ -516,8 +519,8 @@ pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4;
516519pub const FTS5_TOKENIZE_AUX : i32 = 8 ;
517520pub const FTS5_TOKEN_COLOCATED : i32 = 1 ;
518521pub const WAL_SAVEPOINT_NDATA : i32 = 4 ;
519- pub type __gnuc_va_list = __builtin_va_list ;
520522pub type va_list = __builtin_va_list ;
523+ pub type __gnuc_va_list = __builtin_va_list ;
521524extern "C" {
522525 pub static sqlite3_version: [ :: std:: os:: raw:: c_char ; 0usize ] ;
523526}
@@ -2278,11 +2281,7 @@ pub struct sqlite3_module {
22782281 pzErr : * mut * mut :: std:: os:: raw:: c_char ,
22792282 ) -> :: std:: os:: raw:: c_int ,
22802283 > ,
2281- }
2282- #[ repr( C ) ]
2283- #[ derive( Debug , Copy , Clone ) ]
2284- pub struct libsql_module {
2285- pub iVersion : :: std:: os:: raw:: c_int ,
2284+ pub reserved : [ :: std:: option:: Option < unsafe extern "C" fn ( ) > ; 5usize ] ,
22862285 pub xPreparedSql : :: std:: option:: Option <
22872286 unsafe extern "C" fn (
22882287 arg1 : * mut sqlite3_vtab_cursor ,
@@ -2344,16 +2343,6 @@ extern "C" {
23442343 xDestroy : :: std:: option:: Option < unsafe extern "C" fn ( arg1 : * mut :: std:: os:: raw:: c_void ) > ,
23452344 ) -> :: std:: os:: raw:: c_int ;
23462345}
2347- extern "C" {
2348- pub fn libsql_create_module (
2349- db : * mut sqlite3 ,
2350- zName : * const :: std:: os:: raw:: c_char ,
2351- p : * const sqlite3_module ,
2352- pLibsql : * const libsql_module ,
2353- pClientData : * mut :: std:: os:: raw:: c_void ,
2354- xDestroy : :: std:: option:: Option < unsafe extern "C" fn ( arg1 : * mut :: std:: os:: raw:: c_void ) > ,
2355- ) -> :: std:: os:: raw:: c_int ;
2356- }
23572346extern "C" {
23582347 pub fn sqlite3_drop_modules (
23592348 db : * mut sqlite3 ,
@@ -2364,7 +2353,6 @@ extern "C" {
23642353#[ derive( Debug , Copy , Clone ) ]
23652354pub struct sqlite3_vtab {
23662355 pub pModule : * const sqlite3_module ,
2367- pub pLibsqlModule : * const libsql_module ,
23682356 pub nRef : :: std:: os:: raw:: c_int ,
23692357 pub zErrMsg : * mut :: std:: os:: raw:: c_char ,
23702358}
@@ -2892,6 +2880,37 @@ extern "C" {
28922880 arg : * mut :: std:: os:: raw:: c_void ,
28932881 ) -> * mut :: std:: os:: raw:: c_void ;
28942882}
2883+ extern "C" {
2884+ pub fn libsql_wal_disable_checkpoint ( db : * mut sqlite3 ) -> :: std:: os:: raw:: c_int ;
2885+ }
2886+ extern "C" {
2887+ pub fn libsql_wal_frame_count (
2888+ arg1 : * mut sqlite3 ,
2889+ arg2 : * mut :: std:: os:: raw:: c_uint ,
2890+ ) -> :: std:: os:: raw:: c_int ;
2891+ }
2892+ extern "C" {
2893+ pub fn libsql_wal_get_frame (
2894+ arg1 : * mut sqlite3 ,
2895+ arg2 : :: std:: os:: raw:: c_uint ,
2896+ arg3 : * mut :: std:: os:: raw:: c_void ,
2897+ arg4 : :: std:: os:: raw:: c_uint ,
2898+ ) -> :: std:: os:: raw:: c_int ;
2899+ }
2900+ extern "C" {
2901+ pub fn libsql_wal_insert_begin ( arg1 : * mut sqlite3 ) -> :: std:: os:: raw:: c_int ;
2902+ }
2903+ extern "C" {
2904+ pub fn libsql_wal_insert_end ( arg1 : * mut sqlite3 ) -> :: std:: os:: raw:: c_int ;
2905+ }
2906+ extern "C" {
2907+ pub fn libsql_wal_insert_frame (
2908+ arg1 : * mut sqlite3 ,
2909+ arg2 : :: std:: os:: raw:: c_uint ,
2910+ arg3 : * mut :: std:: os:: raw:: c_void ,
2911+ arg4 : :: std:: os:: raw:: c_uint ,
2912+ ) -> :: std:: os:: raw:: c_int ;
2913+ }
28952914extern "C" {
28962915 pub fn sqlite3_system_errno ( arg1 : * mut sqlite3 ) -> :: std:: os:: raw:: c_int ;
28972916}
@@ -3659,6 +3678,24 @@ pub struct Fts5ExtensionApi {
36593678 piCol : * mut :: std:: os:: raw:: c_int ,
36603679 ) ,
36613680 > ,
3681+ pub xQueryToken : :: std:: option:: Option <
3682+ unsafe extern "C" fn (
3683+ arg1 : * mut Fts5Context ,
3684+ iPhrase : :: std:: os:: raw:: c_int ,
3685+ iToken : :: std:: os:: raw:: c_int ,
3686+ ppToken : * mut * const :: std:: os:: raw:: c_char ,
3687+ pnToken : * mut :: std:: os:: raw:: c_int ,
3688+ ) -> :: std:: os:: raw:: c_int ,
3689+ > ,
3690+ pub xInstToken : :: std:: option:: Option <
3691+ unsafe extern "C" fn (
3692+ arg1 : * mut Fts5Context ,
3693+ iIdx : :: std:: os:: raw:: c_int ,
3694+ iToken : :: std:: os:: raw:: c_int ,
3695+ arg2 : * mut * const :: std:: os:: raw:: c_char ,
3696+ arg3 : * mut :: std:: os:: raw:: c_int ,
3697+ ) -> :: std:: os:: raw:: c_int ,
3698+ > ,
36623699}
36633700#[ repr( C ) ]
36643701#[ derive( Debug , Copy , Clone ) ]
@@ -3795,6 +3832,14 @@ pub struct libsql_wal_methods {
37953832 arg3 : * mut :: std:: os:: raw:: c_uchar ,
37963833 ) -> :: std:: os:: raw:: c_int ,
37973834 > ,
3835+ pub xReadFrameRaw : :: std:: option:: Option <
3836+ unsafe extern "C" fn (
3837+ pWal : * mut wal_impl ,
3838+ arg1 : :: std:: os:: raw:: c_uint ,
3839+ arg2 : :: std:: os:: raw:: c_int ,
3840+ arg3 : * mut :: std:: os:: raw:: c_uchar ,
3841+ ) -> :: std:: os:: raw:: c_int ,
3842+ > ,
37983843 pub xDbsize :
37993844 :: std:: option:: Option < unsafe extern "C" fn ( pWal : * mut wal_impl ) -> :: std:: os:: raw:: c_uint > ,
38003845 pub xBeginWriteTransaction :
@@ -3822,6 +3867,13 @@ pub struct libsql_wal_methods {
38223867 aWalData : * mut :: std:: os:: raw:: c_uint ,
38233868 ) -> :: std:: os:: raw:: c_int ,
38243869 > ,
3870+ pub xFrameCount : :: std:: option:: Option <
3871+ unsafe extern "C" fn (
3872+ pWal : * mut wal_impl ,
3873+ arg1 : :: std:: os:: raw:: c_int ,
3874+ arg2 : * mut :: std:: os:: raw:: c_uint ,
3875+ ) -> :: std:: os:: raw:: c_int ,
3876+ > ,
38253877 pub xFrames : :: std:: option:: Option <
38263878 unsafe extern "C" fn (
38273879 pWal : * mut wal_impl ,
0 commit comments