@@ -23,10 +23,11 @@ extern "C" {
23
23
) -> :: std:: os:: raw:: c_int ;
24
24
}
25
25
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 ;
28
29
pub 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 " ;
30
31
pub const LIBSQL_VERSION : & [ u8 ; 6 ] = b"0.2.3\0 " ;
31
32
pub const SQLITE_OK : i32 = 0 ;
32
33
pub const SQLITE_ERROR : i32 = 1 ;
@@ -355,6 +356,7 @@ pub const SQLITE_DETERMINISTIC: i32 = 2048;
355
356
pub const SQLITE_DIRECTONLY : i32 = 524288 ;
356
357
pub const SQLITE_SUBTYPE : i32 = 1048576 ;
357
358
pub const SQLITE_INNOCUOUS : i32 = 2097152 ;
359
+ pub const SQLITE_RESULT_SUBTYPE : i32 = 16777216 ;
358
360
pub const SQLITE_WIN32_DATA_DIRECTORY_TYPE : i32 = 1 ;
359
361
pub const SQLITE_WIN32_TEMP_DIRECTORY_TYPE : i32 = 2 ;
360
362
pub const SQLITE_TXN_NONE : i32 = 0 ;
@@ -407,6 +409,7 @@ pub const SQLITE_TESTCTRL_PENDING_BYTE: i32 = 11;
407
409
pub const SQLITE_TESTCTRL_ASSERT : i32 = 12 ;
408
410
pub const SQLITE_TESTCTRL_ALWAYS : i32 = 13 ;
409
411
pub const SQLITE_TESTCTRL_RESERVE : i32 = 14 ;
412
+ pub const SQLITE_TESTCTRL_JSON_SELFCHECK : i32 = 14 ;
410
413
pub const SQLITE_TESTCTRL_OPTIMIZATIONS : i32 = 15 ;
411
414
pub const SQLITE_TESTCTRL_ISKEYWORD : i32 = 16 ;
412
415
pub const SQLITE_TESTCTRL_SCRATCHMALLOC : i32 = 17 ;
@@ -516,8 +519,8 @@ pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4;
516
519
pub const FTS5_TOKENIZE_AUX : i32 = 8 ;
517
520
pub const FTS5_TOKEN_COLOCATED : i32 = 1 ;
518
521
pub const WAL_SAVEPOINT_NDATA : i32 = 4 ;
519
- pub type __gnuc_va_list = __builtin_va_list ;
520
522
pub type va_list = __builtin_va_list ;
523
+ pub type __gnuc_va_list = __builtin_va_list ;
521
524
extern "C" {
522
525
pub static sqlite3_version: [ :: std:: os:: raw:: c_char ; 0usize ] ;
523
526
}
@@ -2278,11 +2281,7 @@ pub struct sqlite3_module {
2278
2281
pzErr : * mut * mut :: std:: os:: raw:: c_char ,
2279
2282
) -> :: std:: os:: raw:: c_int ,
2280
2283
> ,
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 ] ,
2286
2285
pub xPreparedSql : :: std:: option:: Option <
2287
2286
unsafe extern "C" fn (
2288
2287
arg1 : * mut sqlite3_vtab_cursor ,
@@ -2344,16 +2343,6 @@ extern "C" {
2344
2343
xDestroy : :: std:: option:: Option < unsafe extern "C" fn ( arg1 : * mut :: std:: os:: raw:: c_void ) > ,
2345
2344
) -> :: std:: os:: raw:: c_int ;
2346
2345
}
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
- }
2357
2346
extern "C" {
2358
2347
pub fn sqlite3_drop_modules (
2359
2348
db : * mut sqlite3 ,
@@ -2364,7 +2353,6 @@ extern "C" {
2364
2353
#[ derive( Debug , Copy , Clone ) ]
2365
2354
pub struct sqlite3_vtab {
2366
2355
pub pModule : * const sqlite3_module ,
2367
- pub pLibsqlModule : * const libsql_module ,
2368
2356
pub nRef : :: std:: os:: raw:: c_int ,
2369
2357
pub zErrMsg : * mut :: std:: os:: raw:: c_char ,
2370
2358
}
@@ -2892,6 +2880,37 @@ extern "C" {
2892
2880
arg : * mut :: std:: os:: raw:: c_void ,
2893
2881
) -> * mut :: std:: os:: raw:: c_void ;
2894
2882
}
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
+ }
2895
2914
extern "C" {
2896
2915
pub fn sqlite3_system_errno ( arg1 : * mut sqlite3 ) -> :: std:: os:: raw:: c_int ;
2897
2916
}
@@ -3659,6 +3678,24 @@ pub struct Fts5ExtensionApi {
3659
3678
piCol : * mut :: std:: os:: raw:: c_int ,
3660
3679
) ,
3661
3680
> ,
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
+ > ,
3662
3699
}
3663
3700
#[ repr( C ) ]
3664
3701
#[ derive( Debug , Copy , Clone ) ]
@@ -3795,6 +3832,14 @@ pub struct libsql_wal_methods {
3795
3832
arg3 : * mut :: std:: os:: raw:: c_uchar ,
3796
3833
) -> :: std:: os:: raw:: c_int ,
3797
3834
> ,
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
+ > ,
3798
3843
pub xDbsize :
3799
3844
:: std:: option:: Option < unsafe extern "C" fn ( pWal : * mut wal_impl ) -> :: std:: os:: raw:: c_uint > ,
3800
3845
pub xBeginWriteTransaction :
@@ -3822,6 +3867,13 @@ pub struct libsql_wal_methods {
3822
3867
aWalData : * mut :: std:: os:: raw:: c_uint ,
3823
3868
) -> :: std:: os:: raw:: c_int ,
3824
3869
> ,
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
+ > ,
3825
3877
pub xFrames : :: std:: option:: Option <
3826
3878
unsafe extern "C" fn (
3827
3879
pWal : * mut wal_impl ,
0 commit comments