26
26
/*
27
27
** This code was built from sqlite3 version...
28
28
**
29
- ** SQLITE_VERSION "3.48 .0"
30
- ** SQLITE_VERSION_NUMBER 3048000
31
- ** SQLITE_SOURCE_ID "2025-01-14 11:05:00 d2fe6b05f38d9d7cd78c5d252e99ac59f1aea071d669830c1ffe4e8966e84010 "
29
+ ** SQLITE_VERSION "3.49 .0"
30
+ ** SQLITE_VERSION_NUMBER 3049000
31
+ ** SQLITE_SOURCE_ID "2025-02-06 11:55:18 4a7dd425dc2a0e5082a9049c9b4a9d4f199a71583d014c24b4cfe276c5a77cde "
32
32
**
33
33
** Using the Emscripten SDK version 3.1.70.
34
34
*/
@@ -5127,8 +5127,7 @@ var sqlite3InitModule = (() => {
5127
5127
5128
5128
run ( ) ;
5129
5129
5130
- if ( ! Module . postRun ) Module . postRun = [ ] ;
5131
- Module . postRun . push ( function ( Module ) {
5130
+ Module . runSQLite3PostLoadInit = function ( EmscriptenModule ) {
5132
5131
'use strict' ;
5133
5132
5134
5133
'use strict' ;
@@ -5941,26 +5940,6 @@ var sqlite3InitModule = (() => {
5941
5940
}
5942
5941
5943
5942
capi . sqlite3_db_config = function ( pDb , op , ...args ) {
5944
- if ( ! this . s ) {
5945
- this . s = wasm . xWrap ( 'sqlite3__wasm_db_config_s' , 'int' , [
5946
- 'sqlite3*' ,
5947
- 'int' ,
5948
- 'string:static' ,
5949
- ] ) ;
5950
- this . pii = wasm . xWrap ( 'sqlite3__wasm_db_config_pii' , 'int' , [
5951
- 'sqlite3*' ,
5952
- 'int' ,
5953
- '*' ,
5954
- 'int' ,
5955
- 'int' ,
5956
- ] ) ;
5957
- this . ip = wasm . xWrap ( 'sqlite3__wasm_db_config_ip' , 'int' , [
5958
- 'sqlite3*' ,
5959
- 'int' ,
5960
- 'int' ,
5961
- '*' ,
5962
- ] ) ;
5963
- }
5964
5943
switch ( op ) {
5965
5944
case capi . SQLITE_DBCONFIG_ENABLE_FKEY :
5966
5945
case capi . SQLITE_DBCONFIG_ENABLE_TRIGGER :
@@ -5980,10 +5959,37 @@ var sqlite3InitModule = (() => {
5980
5959
case capi . SQLITE_DBCONFIG_TRUSTED_SCHEMA :
5981
5960
case capi . SQLITE_DBCONFIG_STMT_SCANSTATUS :
5982
5961
case capi . SQLITE_DBCONFIG_REVERSE_SCANORDER :
5962
+ case capi . SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE :
5963
+ case capi . SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE :
5964
+ case capi . SQLITE_DBCONFIG_ENABLE_COMMENTS :
5965
+ if ( ! this . ip ) {
5966
+ this . ip = wasm . xWrap ( 'sqlite3__wasm_db_config_ip' , 'int' , [
5967
+ 'sqlite3*' ,
5968
+ 'int' ,
5969
+ 'int' ,
5970
+ '*' ,
5971
+ ] ) ;
5972
+ }
5983
5973
return this . ip ( pDb , op , args [ 0 ] , args [ 1 ] || 0 ) ;
5984
5974
case capi . SQLITE_DBCONFIG_LOOKASIDE :
5975
+ if ( ! this . pii ) {
5976
+ this . pii = wasm . xWrap ( 'sqlite3__wasm_db_config_pii' , 'int' , [
5977
+ 'sqlite3*' ,
5978
+ 'int' ,
5979
+ '*' ,
5980
+ 'int' ,
5981
+ 'int' ,
5982
+ ] ) ;
5983
+ }
5985
5984
return this . pii ( pDb , op , args [ 0 ] , args [ 1 ] , args [ 2 ] ) ;
5986
5985
case capi . SQLITE_DBCONFIG_MAINDBNAME :
5986
+ if ( ! this . s ) {
5987
+ this . s = wasm . xWrap ( 'sqlite3__wasm_db_config_s' , 'int' , [
5988
+ 'sqlite3*' ,
5989
+ 'int' ,
5990
+ 'string:static' ,
5991
+ ] ) ;
5992
+ }
5987
5993
return this . s ( pDb , op , args [ 0 ] ) ;
5988
5994
default :
5989
5995
return capi . SQLITE_MISUSE ;
@@ -8276,18 +8282,21 @@ var sqlite3InitModule = (() => {
8276
8282
'*' ,
8277
8283
] ,
8278
8284
] ,
8285
+
8279
8286
[
8280
8287
'sqlite3_set_auxdata' ,
8281
8288
undefined ,
8282
8289
[
8283
8290
'sqlite3_context*' ,
8284
8291
'int' ,
8285
8292
'*' ,
8286
- new wasm . xWrap . FuncPtrAdapter ( {
8287
- name : 'xDestroyAuxData' ,
8288
- signature : 'v(*)' ,
8289
- contextKey : ( argv , argIndex ) => argv [ 0 ] ,
8290
- } ) ,
8293
+ true
8294
+ ? '*'
8295
+ : new wasm . xWrap . FuncPtrAdapter ( {
8296
+ name : 'xDestroyAuxData' ,
8297
+ signature : 'v(p)' ,
8298
+ contextKey : ( argv , argIndex ) => argv [ 0 ] ,
8299
+ } ) ,
8291
8300
] ,
8292
8301
] ,
8293
8302
[ 'sqlite3_shutdown' , undefined ] ,
@@ -10156,11 +10165,11 @@ var sqlite3InitModule = (() => {
10156
10165
10157
10166
globalThis . sqlite3ApiBootstrap . initializers . push ( function ( sqlite3 ) {
10158
10167
sqlite3 . version = {
10159
- libVersion : '3.48 .0' ,
10160
- libVersionNumber : 3048000 ,
10168
+ libVersion : '3.49 .0' ,
10169
+ libVersionNumber : 3049000 ,
10161
10170
sourceId :
10162
- '2025-01-14 11:05:00 d2fe6b05f38d9d7cd78c5d252e99ac59f1aea071d669830c1ffe4e8966e84010 ' ,
10163
- downloadVersion : 3480000 ,
10171
+ '2025-02-06 11:55:18 4a7dd425dc2a0e5082a9049c9b4a9d4f199a71583d014c24b4cfe276c5a77cde ' ,
10172
+ downloadVersion : 3490000 ,
10164
10173
} ;
10165
10174
} ) ;
10166
10175
@@ -13883,7 +13892,7 @@ var sqlite3InitModule = (() => {
13883
13892
'It must be called manually.' ,
13884
13893
) ;
13885
13894
}
13886
- } ) ;
13895
+ } ;
13887
13896
13888
13897
moduleRtn = readyPromise ;
13889
13898
@@ -13928,13 +13937,15 @@ const toExportForESM = (function () {
13928
13937
globalThis . sqlite3InitModule = function ff ( ...args ) {
13929
13938
return originalInit ( ...args )
13930
13939
. then ( ( EmscriptenModule ) => {
13940
+ EmscriptenModule . runSQLite3PostLoadInit ( EmscriptenModule ) ;
13931
13941
const s = EmscriptenModule . sqlite3 ;
13932
13942
s . scriptInfo = initModuleState ;
13933
13943
13934
13944
if ( ff . __isUnderTest ) s . __isUnderTest = true ;
13935
13945
const f = s . asyncPostInit ;
13936
13946
delete s . asyncPostInit ;
13937
- return f ( ) ;
13947
+ const rv = f ( ) ;
13948
+ return rv ;
13938
13949
} )
13939
13950
. catch ( ( e ) => {
13940
13951
console . error ( 'Exception loading sqlite3 module:' , e ) ;
0 commit comments