@peerbit/indexer-sqlite3 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/peerbit/sqlite3-bundler-friendly.mjs +47 -36
- package/dist/peerbit/sqlite3-node.mjs +47 -36
- package/dist/peerbit/sqlite3.js +47 -36
- package/dist/peerbit/sqlite3.min.js +44 -36
- package/dist/peerbit/sqlite3.mjs +47 -36
- package/dist/peerbit/sqlite3.wasm +0 -0
- package/dist/peerbit/sqlite3.worker.min.js +44 -36
- package/package.json +2 -2
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
/*
|
|
27
27
|
** This code was built from sqlite3 version...
|
|
28
28
|
**
|
|
29
|
-
** SQLITE_VERSION "3.
|
|
30
|
-
** SQLITE_VERSION_NUMBER
|
|
31
|
-
** SQLITE_SOURCE_ID "2025-
|
|
29
|
+
** SQLITE_VERSION "3.49.1"
|
|
30
|
+
** SQLITE_VERSION_NUMBER 3049001
|
|
31
|
+
** SQLITE_SOURCE_ID "2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70"
|
|
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
|
-
|
|
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,6 +8282,7 @@ var sqlite3InitModule = (() => {
|
|
|
8276
8282
|
'*',
|
|
8277
8283
|
],
|
|
8278
8284
|
],
|
|
8285
|
+
|
|
8279
8286
|
[
|
|
8280
8287
|
'sqlite3_set_auxdata',
|
|
8281
8288
|
undefined,
|
|
@@ -8283,11 +8290,13 @@ var sqlite3InitModule = (() => {
|
|
|
8283
8290
|
'sqlite3_context*',
|
|
8284
8291
|
'int',
|
|
8285
8292
|
'*',
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
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.
|
|
10160
|
-
libVersionNumber:
|
|
10168
|
+
libVersion: '3.49.1',
|
|
10169
|
+
libVersionNumber: 3049001,
|
|
10161
10170
|
sourceId:
|
|
10162
|
-
'2025-
|
|
10163
|
-
downloadVersion:
|
|
10171
|
+
'2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70',
|
|
10172
|
+
downloadVersion: 3490100,
|
|
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
|
-
|
|
13947
|
+
const rv = f();
|
|
13948
|
+
return rv;
|
|
13938
13949
|
})
|
|
13939
13950
|
.catch((e) => {
|
|
13940
13951
|
console.error('Exception loading sqlite3 module:', e);
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
/*
|
|
27
27
|
** This code was built from sqlite3 version...
|
|
28
28
|
**
|
|
29
|
-
** SQLITE_VERSION "3.
|
|
30
|
-
** SQLITE_VERSION_NUMBER
|
|
31
|
-
** SQLITE_SOURCE_ID "2025-
|
|
29
|
+
** SQLITE_VERSION "3.49.1"
|
|
30
|
+
** SQLITE_VERSION_NUMBER 3049001
|
|
31
|
+
** SQLITE_SOURCE_ID "2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70"
|
|
32
32
|
**
|
|
33
33
|
** Using the Emscripten SDK version 3.1.70.
|
|
34
34
|
*/
|
|
@@ -5147,8 +5147,7 @@ var sqlite3InitModule = (() => {
|
|
|
5147
5147
|
|
|
5148
5148
|
run();
|
|
5149
5149
|
|
|
5150
|
-
|
|
5151
|
-
Module.postRun.push(function (Module) {
|
|
5150
|
+
Module.runSQLite3PostLoadInit = function (EmscriptenModule) {
|
|
5152
5151
|
'use strict';
|
|
5153
5152
|
|
|
5154
5153
|
'use strict';
|
|
@@ -5961,26 +5960,6 @@ var sqlite3InitModule = (() => {
|
|
|
5961
5960
|
}
|
|
5962
5961
|
|
|
5963
5962
|
capi.sqlite3_db_config = function (pDb, op, ...args) {
|
|
5964
|
-
if (!this.s) {
|
|
5965
|
-
this.s = wasm.xWrap('sqlite3__wasm_db_config_s', 'int', [
|
|
5966
|
-
'sqlite3*',
|
|
5967
|
-
'int',
|
|
5968
|
-
'string:static',
|
|
5969
|
-
]);
|
|
5970
|
-
this.pii = wasm.xWrap('sqlite3__wasm_db_config_pii', 'int', [
|
|
5971
|
-
'sqlite3*',
|
|
5972
|
-
'int',
|
|
5973
|
-
'*',
|
|
5974
|
-
'int',
|
|
5975
|
-
'int',
|
|
5976
|
-
]);
|
|
5977
|
-
this.ip = wasm.xWrap('sqlite3__wasm_db_config_ip', 'int', [
|
|
5978
|
-
'sqlite3*',
|
|
5979
|
-
'int',
|
|
5980
|
-
'int',
|
|
5981
|
-
'*',
|
|
5982
|
-
]);
|
|
5983
|
-
}
|
|
5984
5963
|
switch (op) {
|
|
5985
5964
|
case capi.SQLITE_DBCONFIG_ENABLE_FKEY:
|
|
5986
5965
|
case capi.SQLITE_DBCONFIG_ENABLE_TRIGGER:
|
|
@@ -6000,10 +5979,37 @@ var sqlite3InitModule = (() => {
|
|
|
6000
5979
|
case capi.SQLITE_DBCONFIG_TRUSTED_SCHEMA:
|
|
6001
5980
|
case capi.SQLITE_DBCONFIG_STMT_SCANSTATUS:
|
|
6002
5981
|
case capi.SQLITE_DBCONFIG_REVERSE_SCANORDER:
|
|
5982
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE:
|
|
5983
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE:
|
|
5984
|
+
case capi.SQLITE_DBCONFIG_ENABLE_COMMENTS:
|
|
5985
|
+
if (!this.ip) {
|
|
5986
|
+
this.ip = wasm.xWrap('sqlite3__wasm_db_config_ip', 'int', [
|
|
5987
|
+
'sqlite3*',
|
|
5988
|
+
'int',
|
|
5989
|
+
'int',
|
|
5990
|
+
'*',
|
|
5991
|
+
]);
|
|
5992
|
+
}
|
|
6003
5993
|
return this.ip(pDb, op, args[0], args[1] || 0);
|
|
6004
5994
|
case capi.SQLITE_DBCONFIG_LOOKASIDE:
|
|
5995
|
+
if (!this.pii) {
|
|
5996
|
+
this.pii = wasm.xWrap('sqlite3__wasm_db_config_pii', 'int', [
|
|
5997
|
+
'sqlite3*',
|
|
5998
|
+
'int',
|
|
5999
|
+
'*',
|
|
6000
|
+
'int',
|
|
6001
|
+
'int',
|
|
6002
|
+
]);
|
|
6003
|
+
}
|
|
6005
6004
|
return this.pii(pDb, op, args[0], args[1], args[2]);
|
|
6006
6005
|
case capi.SQLITE_DBCONFIG_MAINDBNAME:
|
|
6006
|
+
if (!this.s) {
|
|
6007
|
+
this.s = wasm.xWrap('sqlite3__wasm_db_config_s', 'int', [
|
|
6008
|
+
'sqlite3*',
|
|
6009
|
+
'int',
|
|
6010
|
+
'string:static',
|
|
6011
|
+
]);
|
|
6012
|
+
}
|
|
6007
6013
|
return this.s(pDb, op, args[0]);
|
|
6008
6014
|
default:
|
|
6009
6015
|
return capi.SQLITE_MISUSE;
|
|
@@ -8296,6 +8302,7 @@ var sqlite3InitModule = (() => {
|
|
|
8296
8302
|
'*',
|
|
8297
8303
|
],
|
|
8298
8304
|
],
|
|
8305
|
+
|
|
8299
8306
|
[
|
|
8300
8307
|
'sqlite3_set_auxdata',
|
|
8301
8308
|
undefined,
|
|
@@ -8303,11 +8310,13 @@ var sqlite3InitModule = (() => {
|
|
|
8303
8310
|
'sqlite3_context*',
|
|
8304
8311
|
'int',
|
|
8305
8312
|
'*',
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8313
|
+
true
|
|
8314
|
+
? '*'
|
|
8315
|
+
: new wasm.xWrap.FuncPtrAdapter({
|
|
8316
|
+
name: 'xDestroyAuxData',
|
|
8317
|
+
signature: 'v(p)',
|
|
8318
|
+
contextKey: (argv, argIndex) => argv[0],
|
|
8319
|
+
}),
|
|
8311
8320
|
],
|
|
8312
8321
|
],
|
|
8313
8322
|
['sqlite3_shutdown', undefined],
|
|
@@ -10176,11 +10185,11 @@ var sqlite3InitModule = (() => {
|
|
|
10176
10185
|
|
|
10177
10186
|
globalThis.sqlite3ApiBootstrap.initializers.push(function (sqlite3) {
|
|
10178
10187
|
sqlite3.version = {
|
|
10179
|
-
libVersion: '3.
|
|
10180
|
-
libVersionNumber:
|
|
10188
|
+
libVersion: '3.49.1',
|
|
10189
|
+
libVersionNumber: 3049001,
|
|
10181
10190
|
sourceId:
|
|
10182
|
-
'2025-
|
|
10183
|
-
downloadVersion:
|
|
10191
|
+
'2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70',
|
|
10192
|
+
downloadVersion: 3490100,
|
|
10184
10193
|
};
|
|
10185
10194
|
});
|
|
10186
10195
|
|
|
@@ -11943,7 +11952,7 @@ var sqlite3InitModule = (() => {
|
|
|
11943
11952
|
'It must be called manually.',
|
|
11944
11953
|
);
|
|
11945
11954
|
}
|
|
11946
|
-
}
|
|
11955
|
+
};
|
|
11947
11956
|
|
|
11948
11957
|
moduleRtn = readyPromise;
|
|
11949
11958
|
|
|
@@ -11988,13 +11997,15 @@ const toExportForESM = (function () {
|
|
|
11988
11997
|
globalThis.sqlite3InitModule = function ff(...args) {
|
|
11989
11998
|
return originalInit(...args)
|
|
11990
11999
|
.then((EmscriptenModule) => {
|
|
12000
|
+
EmscriptenModule.runSQLite3PostLoadInit(EmscriptenModule);
|
|
11991
12001
|
const s = EmscriptenModule.sqlite3;
|
|
11992
12002
|
s.scriptInfo = initModuleState;
|
|
11993
12003
|
|
|
11994
12004
|
if (ff.__isUnderTest) s.__isUnderTest = true;
|
|
11995
12005
|
const f = s.asyncPostInit;
|
|
11996
12006
|
delete s.asyncPostInit;
|
|
11997
|
-
|
|
12007
|
+
const rv = f();
|
|
12008
|
+
return rv;
|
|
11998
12009
|
})
|
|
11999
12010
|
.catch((e) => {
|
|
12000
12011
|
console.error('Exception loading sqlite3 module:', e);
|
package/dist/peerbit/sqlite3.js
CHANGED
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
/*
|
|
27
27
|
** This code was built from sqlite3 version...
|
|
28
28
|
**
|
|
29
|
-
** SQLITE_VERSION "3.
|
|
30
|
-
** SQLITE_VERSION_NUMBER
|
|
31
|
-
** SQLITE_SOURCE_ID "2025-
|
|
29
|
+
** SQLITE_VERSION "3.49.1"
|
|
30
|
+
** SQLITE_VERSION_NUMBER 3049001
|
|
31
|
+
** SQLITE_SOURCE_ID "2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70"
|
|
32
32
|
**
|
|
33
33
|
** Using the Emscripten SDK version 3.1.70.
|
|
34
34
|
*/
|
|
@@ -5153,8 +5153,7 @@ var sqlite3InitModule = (() => {
|
|
|
5153
5153
|
|
|
5154
5154
|
run();
|
|
5155
5155
|
|
|
5156
|
-
|
|
5157
|
-
Module.postRun.push(function (Module) {
|
|
5156
|
+
Module.runSQLite3PostLoadInit = function (EmscriptenModule) {
|
|
5158
5157
|
'use strict';
|
|
5159
5158
|
|
|
5160
5159
|
'use strict';
|
|
@@ -5967,26 +5966,6 @@ var sqlite3InitModule = (() => {
|
|
|
5967
5966
|
}
|
|
5968
5967
|
|
|
5969
5968
|
capi.sqlite3_db_config = function (pDb, op, ...args) {
|
|
5970
|
-
if (!this.s) {
|
|
5971
|
-
this.s = wasm.xWrap('sqlite3__wasm_db_config_s', 'int', [
|
|
5972
|
-
'sqlite3*',
|
|
5973
|
-
'int',
|
|
5974
|
-
'string:static',
|
|
5975
|
-
]);
|
|
5976
|
-
this.pii = wasm.xWrap('sqlite3__wasm_db_config_pii', 'int', [
|
|
5977
|
-
'sqlite3*',
|
|
5978
|
-
'int',
|
|
5979
|
-
'*',
|
|
5980
|
-
'int',
|
|
5981
|
-
'int',
|
|
5982
|
-
]);
|
|
5983
|
-
this.ip = wasm.xWrap('sqlite3__wasm_db_config_ip', 'int', [
|
|
5984
|
-
'sqlite3*',
|
|
5985
|
-
'int',
|
|
5986
|
-
'int',
|
|
5987
|
-
'*',
|
|
5988
|
-
]);
|
|
5989
|
-
}
|
|
5990
5969
|
switch (op) {
|
|
5991
5970
|
case capi.SQLITE_DBCONFIG_ENABLE_FKEY:
|
|
5992
5971
|
case capi.SQLITE_DBCONFIG_ENABLE_TRIGGER:
|
|
@@ -6006,10 +5985,37 @@ var sqlite3InitModule = (() => {
|
|
|
6006
5985
|
case capi.SQLITE_DBCONFIG_TRUSTED_SCHEMA:
|
|
6007
5986
|
case capi.SQLITE_DBCONFIG_STMT_SCANSTATUS:
|
|
6008
5987
|
case capi.SQLITE_DBCONFIG_REVERSE_SCANORDER:
|
|
5988
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE:
|
|
5989
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE:
|
|
5990
|
+
case capi.SQLITE_DBCONFIG_ENABLE_COMMENTS:
|
|
5991
|
+
if (!this.ip) {
|
|
5992
|
+
this.ip = wasm.xWrap('sqlite3__wasm_db_config_ip', 'int', [
|
|
5993
|
+
'sqlite3*',
|
|
5994
|
+
'int',
|
|
5995
|
+
'int',
|
|
5996
|
+
'*',
|
|
5997
|
+
]);
|
|
5998
|
+
}
|
|
6009
5999
|
return this.ip(pDb, op, args[0], args[1] || 0);
|
|
6010
6000
|
case capi.SQLITE_DBCONFIG_LOOKASIDE:
|
|
6001
|
+
if (!this.pii) {
|
|
6002
|
+
this.pii = wasm.xWrap('sqlite3__wasm_db_config_pii', 'int', [
|
|
6003
|
+
'sqlite3*',
|
|
6004
|
+
'int',
|
|
6005
|
+
'*',
|
|
6006
|
+
'int',
|
|
6007
|
+
'int',
|
|
6008
|
+
]);
|
|
6009
|
+
}
|
|
6011
6010
|
return this.pii(pDb, op, args[0], args[1], args[2]);
|
|
6012
6011
|
case capi.SQLITE_DBCONFIG_MAINDBNAME:
|
|
6012
|
+
if (!this.s) {
|
|
6013
|
+
this.s = wasm.xWrap('sqlite3__wasm_db_config_s', 'int', [
|
|
6014
|
+
'sqlite3*',
|
|
6015
|
+
'int',
|
|
6016
|
+
'string:static',
|
|
6017
|
+
]);
|
|
6018
|
+
}
|
|
6013
6019
|
return this.s(pDb, op, args[0]);
|
|
6014
6020
|
default:
|
|
6015
6021
|
return capi.SQLITE_MISUSE;
|
|
@@ -8302,6 +8308,7 @@ var sqlite3InitModule = (() => {
|
|
|
8302
8308
|
'*',
|
|
8303
8309
|
],
|
|
8304
8310
|
],
|
|
8311
|
+
|
|
8305
8312
|
[
|
|
8306
8313
|
'sqlite3_set_auxdata',
|
|
8307
8314
|
undefined,
|
|
@@ -8309,11 +8316,13 @@ var sqlite3InitModule = (() => {
|
|
|
8309
8316
|
'sqlite3_context*',
|
|
8310
8317
|
'int',
|
|
8311
8318
|
'*',
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8319
|
+
true
|
|
8320
|
+
? '*'
|
|
8321
|
+
: new wasm.xWrap.FuncPtrAdapter({
|
|
8322
|
+
name: 'xDestroyAuxData',
|
|
8323
|
+
signature: 'v(p)',
|
|
8324
|
+
contextKey: (argv, argIndex) => argv[0],
|
|
8325
|
+
}),
|
|
8317
8326
|
],
|
|
8318
8327
|
],
|
|
8319
8328
|
['sqlite3_shutdown', undefined],
|
|
@@ -10182,11 +10191,11 @@ var sqlite3InitModule = (() => {
|
|
|
10182
10191
|
|
|
10183
10192
|
globalThis.sqlite3ApiBootstrap.initializers.push(function (sqlite3) {
|
|
10184
10193
|
sqlite3.version = {
|
|
10185
|
-
libVersion: '3.
|
|
10186
|
-
libVersionNumber:
|
|
10194
|
+
libVersion: '3.49.1',
|
|
10195
|
+
libVersionNumber: 3049001,
|
|
10187
10196
|
sourceId:
|
|
10188
|
-
'2025-
|
|
10189
|
-
downloadVersion:
|
|
10197
|
+
'2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70',
|
|
10198
|
+
downloadVersion: 3490100,
|
|
10190
10199
|
};
|
|
10191
10200
|
});
|
|
10192
10201
|
|
|
@@ -13907,7 +13916,7 @@ var sqlite3InitModule = (() => {
|
|
|
13907
13916
|
'It must be called manually.',
|
|
13908
13917
|
);
|
|
13909
13918
|
}
|
|
13910
|
-
}
|
|
13919
|
+
};
|
|
13911
13920
|
|
|
13912
13921
|
moduleRtn = readyPromise;
|
|
13913
13922
|
|
|
@@ -13956,13 +13965,15 @@ else if (typeof define === 'function' && define['amd'])
|
|
|
13956
13965
|
globalThis.sqlite3InitModule = function ff(...args) {
|
|
13957
13966
|
return originalInit(...args)
|
|
13958
13967
|
.then((EmscriptenModule) => {
|
|
13968
|
+
EmscriptenModule.runSQLite3PostLoadInit(EmscriptenModule);
|
|
13959
13969
|
const s = EmscriptenModule.sqlite3;
|
|
13960
13970
|
s.scriptInfo = initModuleState;
|
|
13961
13971
|
|
|
13962
13972
|
if (ff.__isUnderTest) s.__isUnderTest = true;
|
|
13963
13973
|
const f = s.asyncPostInit;
|
|
13964
13974
|
delete s.asyncPostInit;
|
|
13965
|
-
|
|
13975
|
+
const rv = f();
|
|
13976
|
+
return rv;
|
|
13966
13977
|
})
|
|
13967
13978
|
.catch((e) => {
|
|
13968
13979
|
console.error('Exception loading sqlite3 module:', e);
|
|
@@ -13737,8 +13737,7 @@ var sqlite3InitModule = (() => {
|
|
|
13737
13737
|
}
|
|
13738
13738
|
}
|
|
13739
13739
|
run();
|
|
13740
|
-
|
|
13741
|
-
Module.postRun.push(function(Module2) {
|
|
13740
|
+
Module.runSQLite3PostLoadInit = function(EmscriptenModule) {
|
|
13742
13741
|
"use strict";
|
|
13743
13742
|
"use strict";
|
|
13744
13743
|
globalThis.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(apiConfig = globalThis.sqlite3ApiConfig || sqlite3ApiBootstrap.defaultConfig) {
|
|
@@ -13755,8 +13754,8 @@ var sqlite3InitModule = (() => {
|
|
|
13755
13754
|
exports: void 0,
|
|
13756
13755
|
memory: void 0,
|
|
13757
13756
|
bigIntEnabled: (() => {
|
|
13758
|
-
if ("undefined" !== typeof
|
|
13759
|
-
if (!!
|
|
13757
|
+
if ("undefined" !== typeof Module) {
|
|
13758
|
+
if (!!Module.HEAPU64) return true;
|
|
13760
13759
|
}
|
|
13761
13760
|
return !!globalThis.BigInt64Array;
|
|
13762
13761
|
})(),
|
|
@@ -14342,26 +14341,6 @@ var sqlite3InitModule = (() => {
|
|
|
14342
14341
|
};
|
|
14343
14342
|
}
|
|
14344
14343
|
capi.sqlite3_db_config = function(pDb2, op, ...args) {
|
|
14345
|
-
if (!this.s) {
|
|
14346
|
-
this.s = wasm.xWrap("sqlite3__wasm_db_config_s", "int", [
|
|
14347
|
-
"sqlite3*",
|
|
14348
|
-
"int",
|
|
14349
|
-
"string:static"
|
|
14350
|
-
]);
|
|
14351
|
-
this.pii = wasm.xWrap("sqlite3__wasm_db_config_pii", "int", [
|
|
14352
|
-
"sqlite3*",
|
|
14353
|
-
"int",
|
|
14354
|
-
"*",
|
|
14355
|
-
"int",
|
|
14356
|
-
"int"
|
|
14357
|
-
]);
|
|
14358
|
-
this.ip = wasm.xWrap("sqlite3__wasm_db_config_ip", "int", [
|
|
14359
|
-
"sqlite3*",
|
|
14360
|
-
"int",
|
|
14361
|
-
"int",
|
|
14362
|
-
"*"
|
|
14363
|
-
]);
|
|
14364
|
-
}
|
|
14365
14344
|
switch (op) {
|
|
14366
14345
|
case capi.SQLITE_DBCONFIG_ENABLE_FKEY:
|
|
14367
14346
|
case capi.SQLITE_DBCONFIG_ENABLE_TRIGGER:
|
|
@@ -14381,10 +14360,37 @@ var sqlite3InitModule = (() => {
|
|
|
14381
14360
|
case capi.SQLITE_DBCONFIG_TRUSTED_SCHEMA:
|
|
14382
14361
|
case capi.SQLITE_DBCONFIG_STMT_SCANSTATUS:
|
|
14383
14362
|
case capi.SQLITE_DBCONFIG_REVERSE_SCANORDER:
|
|
14363
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE:
|
|
14364
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE:
|
|
14365
|
+
case capi.SQLITE_DBCONFIG_ENABLE_COMMENTS:
|
|
14366
|
+
if (!this.ip) {
|
|
14367
|
+
this.ip = wasm.xWrap("sqlite3__wasm_db_config_ip", "int", [
|
|
14368
|
+
"sqlite3*",
|
|
14369
|
+
"int",
|
|
14370
|
+
"int",
|
|
14371
|
+
"*"
|
|
14372
|
+
]);
|
|
14373
|
+
}
|
|
14384
14374
|
return this.ip(pDb2, op, args[0], args[1] || 0);
|
|
14385
14375
|
case capi.SQLITE_DBCONFIG_LOOKASIDE:
|
|
14376
|
+
if (!this.pii) {
|
|
14377
|
+
this.pii = wasm.xWrap("sqlite3__wasm_db_config_pii", "int", [
|
|
14378
|
+
"sqlite3*",
|
|
14379
|
+
"int",
|
|
14380
|
+
"*",
|
|
14381
|
+
"int",
|
|
14382
|
+
"int"
|
|
14383
|
+
]);
|
|
14384
|
+
}
|
|
14386
14385
|
return this.pii(pDb2, op, args[0], args[1], args[2]);
|
|
14387
14386
|
case capi.SQLITE_DBCONFIG_MAINDBNAME:
|
|
14387
|
+
if (!this.s) {
|
|
14388
|
+
this.s = wasm.xWrap("sqlite3__wasm_db_config_s", "int", [
|
|
14389
|
+
"sqlite3*",
|
|
14390
|
+
"int",
|
|
14391
|
+
"string:static"
|
|
14392
|
+
]);
|
|
14393
|
+
}
|
|
14388
14394
|
return this.s(pDb2, op, args[0]);
|
|
14389
14395
|
default:
|
|
14390
14396
|
return capi.SQLITE_MISUSE;
|
|
@@ -16269,9 +16275,9 @@ var sqlite3InitModule = (() => {
|
|
|
16269
16275
|
"sqlite3_context*",
|
|
16270
16276
|
"int",
|
|
16271
16277
|
"*",
|
|
16272
|
-
new wasm.xWrap.FuncPtrAdapter({
|
|
16278
|
+
true ? "*" : new wasm.xWrap.FuncPtrAdapter({
|
|
16273
16279
|
name: "xDestroyAuxData",
|
|
16274
|
-
signature: "v(
|
|
16280
|
+
signature: "v(p)",
|
|
16275
16281
|
contextKey: (argv, argIndex) => argv[0]
|
|
16276
16282
|
})
|
|
16277
16283
|
]
|
|
@@ -17915,10 +17921,10 @@ var sqlite3InitModule = (() => {
|
|
|
17915
17921
|
});
|
|
17916
17922
|
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite32) {
|
|
17917
17923
|
sqlite32.version = {
|
|
17918
|
-
libVersion: "3.
|
|
17919
|
-
libVersionNumber:
|
|
17920
|
-
sourceId: "2025-
|
|
17921
|
-
downloadVersion:
|
|
17924
|
+
libVersion: "3.49.1",
|
|
17925
|
+
libVersionNumber: 3049001,
|
|
17926
|
+
sourceId: "2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70",
|
|
17927
|
+
downloadVersion: 3490100
|
|
17922
17928
|
};
|
|
17923
17929
|
});
|
|
17924
17930
|
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite32) {
|
|
@@ -21114,12 +21120,12 @@ var sqlite3InitModule = (() => {
|
|
|
21114
21120
|
};
|
|
21115
21121
|
});
|
|
21116
21122
|
"use strict";
|
|
21117
|
-
if ("undefined" !== typeof
|
|
21123
|
+
if ("undefined" !== typeof Module) {
|
|
21118
21124
|
const SABC = Object.assign(
|
|
21119
21125
|
/* @__PURE__ */ Object.create(null),
|
|
21120
21126
|
{
|
|
21121
|
-
exports: "undefined" === typeof wasmExports ?
|
|
21122
|
-
memory:
|
|
21127
|
+
exports: "undefined" === typeof wasmExports ? Module["asm"] : wasmExports,
|
|
21128
|
+
memory: Module.wasmMemory
|
|
21123
21129
|
},
|
|
21124
21130
|
globalThis.sqlite3ApiConfig || {}
|
|
21125
21131
|
);
|
|
@@ -21134,7 +21140,7 @@ var sqlite3InitModule = (() => {
|
|
|
21134
21140
|
delete globalThis.sqlite3ApiBootstrap;
|
|
21135
21141
|
delete globalThis.sqlite3ApiConfig;
|
|
21136
21142
|
}
|
|
21137
|
-
|
|
21143
|
+
Module.sqlite3 = sqlite32;
|
|
21138
21144
|
} else {
|
|
21139
21145
|
console.warn(
|
|
21140
21146
|
"This is not running in an Emscripten module context, so",
|
|
@@ -21143,7 +21149,7 @@ var sqlite3InitModule = (() => {
|
|
|
21143
21149
|
"It must be called manually."
|
|
21144
21150
|
);
|
|
21145
21151
|
}
|
|
21146
|
-
}
|
|
21152
|
+
};
|
|
21147
21153
|
moduleRtn = readyPromise;
|
|
21148
21154
|
return moduleRtn;
|
|
21149
21155
|
};
|
|
@@ -21177,12 +21183,14 @@ var toExportForESM = function() {
|
|
|
21177
21183
|
}
|
|
21178
21184
|
globalThis.sqlite3InitModule = function ff(...args) {
|
|
21179
21185
|
return originalInit(...args).then((EmscriptenModule) => {
|
|
21186
|
+
EmscriptenModule.runSQLite3PostLoadInit(EmscriptenModule);
|
|
21180
21187
|
const s = EmscriptenModule.sqlite3;
|
|
21181
21188
|
s.scriptInfo = initModuleState;
|
|
21182
21189
|
if (ff.__isUnderTest) s.__isUnderTest = true;
|
|
21183
21190
|
const f = s.asyncPostInit;
|
|
21184
21191
|
delete s.asyncPostInit;
|
|
21185
|
-
|
|
21192
|
+
const rv = f();
|
|
21193
|
+
return rv;
|
|
21186
21194
|
}).catch((e) => {
|
|
21187
21195
|
console.error("Exception loading sqlite3 module:", e);
|
|
21188
21196
|
throw e;
|
package/dist/peerbit/sqlite3.mjs
CHANGED
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
/*
|
|
27
27
|
** This code was built from sqlite3 version...
|
|
28
28
|
**
|
|
29
|
-
** SQLITE_VERSION "3.
|
|
30
|
-
** SQLITE_VERSION_NUMBER
|
|
31
|
-
** SQLITE_SOURCE_ID "2025-
|
|
29
|
+
** SQLITE_VERSION "3.49.1"
|
|
30
|
+
** SQLITE_VERSION_NUMBER 3049001
|
|
31
|
+
** SQLITE_SOURCE_ID "2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70"
|
|
32
32
|
**
|
|
33
33
|
** Using the Emscripten SDK version 3.1.70.
|
|
34
34
|
*/
|
|
@@ -5131,8 +5131,7 @@ var sqlite3InitModule = (() => {
|
|
|
5131
5131
|
|
|
5132
5132
|
run();
|
|
5133
5133
|
|
|
5134
|
-
|
|
5135
|
-
Module.postRun.push(function (Module) {
|
|
5134
|
+
Module.runSQLite3PostLoadInit = function (EmscriptenModule) {
|
|
5136
5135
|
'use strict';
|
|
5137
5136
|
|
|
5138
5137
|
'use strict';
|
|
@@ -5945,26 +5944,6 @@ var sqlite3InitModule = (() => {
|
|
|
5945
5944
|
}
|
|
5946
5945
|
|
|
5947
5946
|
capi.sqlite3_db_config = function (pDb, op, ...args) {
|
|
5948
|
-
if (!this.s) {
|
|
5949
|
-
this.s = wasm.xWrap('sqlite3__wasm_db_config_s', 'int', [
|
|
5950
|
-
'sqlite3*',
|
|
5951
|
-
'int',
|
|
5952
|
-
'string:static',
|
|
5953
|
-
]);
|
|
5954
|
-
this.pii = wasm.xWrap('sqlite3__wasm_db_config_pii', 'int', [
|
|
5955
|
-
'sqlite3*',
|
|
5956
|
-
'int',
|
|
5957
|
-
'*',
|
|
5958
|
-
'int',
|
|
5959
|
-
'int',
|
|
5960
|
-
]);
|
|
5961
|
-
this.ip = wasm.xWrap('sqlite3__wasm_db_config_ip', 'int', [
|
|
5962
|
-
'sqlite3*',
|
|
5963
|
-
'int',
|
|
5964
|
-
'int',
|
|
5965
|
-
'*',
|
|
5966
|
-
]);
|
|
5967
|
-
}
|
|
5968
5947
|
switch (op) {
|
|
5969
5948
|
case capi.SQLITE_DBCONFIG_ENABLE_FKEY:
|
|
5970
5949
|
case capi.SQLITE_DBCONFIG_ENABLE_TRIGGER:
|
|
@@ -5984,10 +5963,37 @@ var sqlite3InitModule = (() => {
|
|
|
5984
5963
|
case capi.SQLITE_DBCONFIG_TRUSTED_SCHEMA:
|
|
5985
5964
|
case capi.SQLITE_DBCONFIG_STMT_SCANSTATUS:
|
|
5986
5965
|
case capi.SQLITE_DBCONFIG_REVERSE_SCANORDER:
|
|
5966
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE:
|
|
5967
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE:
|
|
5968
|
+
case capi.SQLITE_DBCONFIG_ENABLE_COMMENTS:
|
|
5969
|
+
if (!this.ip) {
|
|
5970
|
+
this.ip = wasm.xWrap('sqlite3__wasm_db_config_ip', 'int', [
|
|
5971
|
+
'sqlite3*',
|
|
5972
|
+
'int',
|
|
5973
|
+
'int',
|
|
5974
|
+
'*',
|
|
5975
|
+
]);
|
|
5976
|
+
}
|
|
5987
5977
|
return this.ip(pDb, op, args[0], args[1] || 0);
|
|
5988
5978
|
case capi.SQLITE_DBCONFIG_LOOKASIDE:
|
|
5979
|
+
if (!this.pii) {
|
|
5980
|
+
this.pii = wasm.xWrap('sqlite3__wasm_db_config_pii', 'int', [
|
|
5981
|
+
'sqlite3*',
|
|
5982
|
+
'int',
|
|
5983
|
+
'*',
|
|
5984
|
+
'int',
|
|
5985
|
+
'int',
|
|
5986
|
+
]);
|
|
5987
|
+
}
|
|
5989
5988
|
return this.pii(pDb, op, args[0], args[1], args[2]);
|
|
5990
5989
|
case capi.SQLITE_DBCONFIG_MAINDBNAME:
|
|
5990
|
+
if (!this.s) {
|
|
5991
|
+
this.s = wasm.xWrap('sqlite3__wasm_db_config_s', 'int', [
|
|
5992
|
+
'sqlite3*',
|
|
5993
|
+
'int',
|
|
5994
|
+
'string:static',
|
|
5995
|
+
]);
|
|
5996
|
+
}
|
|
5991
5997
|
return this.s(pDb, op, args[0]);
|
|
5992
5998
|
default:
|
|
5993
5999
|
return capi.SQLITE_MISUSE;
|
|
@@ -8280,6 +8286,7 @@ var sqlite3InitModule = (() => {
|
|
|
8280
8286
|
'*',
|
|
8281
8287
|
],
|
|
8282
8288
|
],
|
|
8289
|
+
|
|
8283
8290
|
[
|
|
8284
8291
|
'sqlite3_set_auxdata',
|
|
8285
8292
|
undefined,
|
|
@@ -8287,11 +8294,13 @@ var sqlite3InitModule = (() => {
|
|
|
8287
8294
|
'sqlite3_context*',
|
|
8288
8295
|
'int',
|
|
8289
8296
|
'*',
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8297
|
+
true
|
|
8298
|
+
? '*'
|
|
8299
|
+
: new wasm.xWrap.FuncPtrAdapter({
|
|
8300
|
+
name: 'xDestroyAuxData',
|
|
8301
|
+
signature: 'v(p)',
|
|
8302
|
+
contextKey: (argv, argIndex) => argv[0],
|
|
8303
|
+
}),
|
|
8295
8304
|
],
|
|
8296
8305
|
],
|
|
8297
8306
|
['sqlite3_shutdown', undefined],
|
|
@@ -10160,11 +10169,11 @@ var sqlite3InitModule = (() => {
|
|
|
10160
10169
|
|
|
10161
10170
|
globalThis.sqlite3ApiBootstrap.initializers.push(function (sqlite3) {
|
|
10162
10171
|
sqlite3.version = {
|
|
10163
|
-
libVersion: '3.
|
|
10164
|
-
libVersionNumber:
|
|
10172
|
+
libVersion: '3.49.1',
|
|
10173
|
+
libVersionNumber: 3049001,
|
|
10165
10174
|
sourceId:
|
|
10166
|
-
'2025-
|
|
10167
|
-
downloadVersion:
|
|
10175
|
+
'2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70',
|
|
10176
|
+
downloadVersion: 3490100,
|
|
10168
10177
|
};
|
|
10169
10178
|
});
|
|
10170
10179
|
|
|
@@ -13885,7 +13894,7 @@ var sqlite3InitModule = (() => {
|
|
|
13885
13894
|
'It must be called manually.',
|
|
13886
13895
|
);
|
|
13887
13896
|
}
|
|
13888
|
-
}
|
|
13897
|
+
};
|
|
13889
13898
|
|
|
13890
13899
|
moduleRtn = readyPromise;
|
|
13891
13900
|
|
|
@@ -13930,13 +13939,15 @@ const toExportForESM = (function () {
|
|
|
13930
13939
|
globalThis.sqlite3InitModule = function ff(...args) {
|
|
13931
13940
|
return originalInit(...args)
|
|
13932
13941
|
.then((EmscriptenModule) => {
|
|
13942
|
+
EmscriptenModule.runSQLite3PostLoadInit(EmscriptenModule);
|
|
13933
13943
|
const s = EmscriptenModule.sqlite3;
|
|
13934
13944
|
s.scriptInfo = initModuleState;
|
|
13935
13945
|
|
|
13936
13946
|
if (ff.__isUnderTest) s.__isUnderTest = true;
|
|
13937
13947
|
const f = s.asyncPostInit;
|
|
13938
13948
|
delete s.asyncPostInit;
|
|
13939
|
-
|
|
13949
|
+
const rv = f();
|
|
13950
|
+
return rv;
|
|
13940
13951
|
})
|
|
13941
13952
|
.catch((e) => {
|
|
13942
13953
|
console.error('Exception loading sqlite3 module:', e);
|
|
Binary file
|
|
@@ -9588,8 +9588,7 @@ var sqlite3InitModule = (() => {
|
|
|
9588
9588
|
}
|
|
9589
9589
|
}
|
|
9590
9590
|
run();
|
|
9591
|
-
|
|
9592
|
-
Module.postRun.push(function(Module2) {
|
|
9591
|
+
Module.runSQLite3PostLoadInit = function(EmscriptenModule) {
|
|
9593
9592
|
"use strict";
|
|
9594
9593
|
"use strict";
|
|
9595
9594
|
globalThis.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(apiConfig = globalThis.sqlite3ApiConfig || sqlite3ApiBootstrap.defaultConfig) {
|
|
@@ -9606,8 +9605,8 @@ var sqlite3InitModule = (() => {
|
|
|
9606
9605
|
exports: void 0,
|
|
9607
9606
|
memory: void 0,
|
|
9608
9607
|
bigIntEnabled: (() => {
|
|
9609
|
-
if ("undefined" !== typeof
|
|
9610
|
-
if (!!
|
|
9608
|
+
if ("undefined" !== typeof Module) {
|
|
9609
|
+
if (!!Module.HEAPU64) return true;
|
|
9611
9610
|
}
|
|
9612
9611
|
return !!globalThis.BigInt64Array;
|
|
9613
9612
|
})(),
|
|
@@ -10193,26 +10192,6 @@ var sqlite3InitModule = (() => {
|
|
|
10193
10192
|
};
|
|
10194
10193
|
}
|
|
10195
10194
|
capi.sqlite3_db_config = function(pDb2, op, ...args) {
|
|
10196
|
-
if (!this.s) {
|
|
10197
|
-
this.s = wasm.xWrap("sqlite3__wasm_db_config_s", "int", [
|
|
10198
|
-
"sqlite3*",
|
|
10199
|
-
"int",
|
|
10200
|
-
"string:static"
|
|
10201
|
-
]);
|
|
10202
|
-
this.pii = wasm.xWrap("sqlite3__wasm_db_config_pii", "int", [
|
|
10203
|
-
"sqlite3*",
|
|
10204
|
-
"int",
|
|
10205
|
-
"*",
|
|
10206
|
-
"int",
|
|
10207
|
-
"int"
|
|
10208
|
-
]);
|
|
10209
|
-
this.ip = wasm.xWrap("sqlite3__wasm_db_config_ip", "int", [
|
|
10210
|
-
"sqlite3*",
|
|
10211
|
-
"int",
|
|
10212
|
-
"int",
|
|
10213
|
-
"*"
|
|
10214
|
-
]);
|
|
10215
|
-
}
|
|
10216
10195
|
switch (op) {
|
|
10217
10196
|
case capi.SQLITE_DBCONFIG_ENABLE_FKEY:
|
|
10218
10197
|
case capi.SQLITE_DBCONFIG_ENABLE_TRIGGER:
|
|
@@ -10232,10 +10211,37 @@ var sqlite3InitModule = (() => {
|
|
|
10232
10211
|
case capi.SQLITE_DBCONFIG_TRUSTED_SCHEMA:
|
|
10233
10212
|
case capi.SQLITE_DBCONFIG_STMT_SCANSTATUS:
|
|
10234
10213
|
case capi.SQLITE_DBCONFIG_REVERSE_SCANORDER:
|
|
10214
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE:
|
|
10215
|
+
case capi.SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE:
|
|
10216
|
+
case capi.SQLITE_DBCONFIG_ENABLE_COMMENTS:
|
|
10217
|
+
if (!this.ip) {
|
|
10218
|
+
this.ip = wasm.xWrap("sqlite3__wasm_db_config_ip", "int", [
|
|
10219
|
+
"sqlite3*",
|
|
10220
|
+
"int",
|
|
10221
|
+
"int",
|
|
10222
|
+
"*"
|
|
10223
|
+
]);
|
|
10224
|
+
}
|
|
10235
10225
|
return this.ip(pDb2, op, args[0], args[1] || 0);
|
|
10236
10226
|
case capi.SQLITE_DBCONFIG_LOOKASIDE:
|
|
10227
|
+
if (!this.pii) {
|
|
10228
|
+
this.pii = wasm.xWrap("sqlite3__wasm_db_config_pii", "int", [
|
|
10229
|
+
"sqlite3*",
|
|
10230
|
+
"int",
|
|
10231
|
+
"*",
|
|
10232
|
+
"int",
|
|
10233
|
+
"int"
|
|
10234
|
+
]);
|
|
10235
|
+
}
|
|
10237
10236
|
return this.pii(pDb2, op, args[0], args[1], args[2]);
|
|
10238
10237
|
case capi.SQLITE_DBCONFIG_MAINDBNAME:
|
|
10238
|
+
if (!this.s) {
|
|
10239
|
+
this.s = wasm.xWrap("sqlite3__wasm_db_config_s", "int", [
|
|
10240
|
+
"sqlite3*",
|
|
10241
|
+
"int",
|
|
10242
|
+
"string:static"
|
|
10243
|
+
]);
|
|
10244
|
+
}
|
|
10239
10245
|
return this.s(pDb2, op, args[0]);
|
|
10240
10246
|
default:
|
|
10241
10247
|
return capi.SQLITE_MISUSE;
|
|
@@ -12120,9 +12126,9 @@ var sqlite3InitModule = (() => {
|
|
|
12120
12126
|
"sqlite3_context*",
|
|
12121
12127
|
"int",
|
|
12122
12128
|
"*",
|
|
12123
|
-
new wasm.xWrap.FuncPtrAdapter({
|
|
12129
|
+
true ? "*" : new wasm.xWrap.FuncPtrAdapter({
|
|
12124
12130
|
name: "xDestroyAuxData",
|
|
12125
|
-
signature: "v(
|
|
12131
|
+
signature: "v(p)",
|
|
12126
12132
|
contextKey: (argv, argIndex) => argv[0]
|
|
12127
12133
|
})
|
|
12128
12134
|
]
|
|
@@ -13766,10 +13772,10 @@ var sqlite3InitModule = (() => {
|
|
|
13766
13772
|
});
|
|
13767
13773
|
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite32) {
|
|
13768
13774
|
sqlite32.version = {
|
|
13769
|
-
libVersion: "3.
|
|
13770
|
-
libVersionNumber:
|
|
13771
|
-
sourceId: "2025-
|
|
13772
|
-
downloadVersion:
|
|
13775
|
+
libVersion: "3.49.1",
|
|
13776
|
+
libVersionNumber: 3049001,
|
|
13777
|
+
sourceId: "2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70",
|
|
13778
|
+
downloadVersion: 3490100
|
|
13773
13779
|
};
|
|
13774
13780
|
});
|
|
13775
13781
|
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite32) {
|
|
@@ -16965,12 +16971,12 @@ var sqlite3InitModule = (() => {
|
|
|
16965
16971
|
};
|
|
16966
16972
|
});
|
|
16967
16973
|
"use strict";
|
|
16968
|
-
if ("undefined" !== typeof
|
|
16974
|
+
if ("undefined" !== typeof Module) {
|
|
16969
16975
|
const SABC = Object.assign(
|
|
16970
16976
|
/* @__PURE__ */ Object.create(null),
|
|
16971
16977
|
{
|
|
16972
|
-
exports: "undefined" === typeof wasmExports ?
|
|
16973
|
-
memory:
|
|
16978
|
+
exports: "undefined" === typeof wasmExports ? Module["asm"] : wasmExports,
|
|
16979
|
+
memory: Module.wasmMemory
|
|
16974
16980
|
},
|
|
16975
16981
|
globalThis.sqlite3ApiConfig || {}
|
|
16976
16982
|
);
|
|
@@ -16985,7 +16991,7 @@ var sqlite3InitModule = (() => {
|
|
|
16985
16991
|
delete globalThis.sqlite3ApiBootstrap;
|
|
16986
16992
|
delete globalThis.sqlite3ApiConfig;
|
|
16987
16993
|
}
|
|
16988
|
-
|
|
16994
|
+
Module.sqlite3 = sqlite32;
|
|
16989
16995
|
} else {
|
|
16990
16996
|
console.warn(
|
|
16991
16997
|
"This is not running in an Emscripten module context, so",
|
|
@@ -16994,7 +17000,7 @@ var sqlite3InitModule = (() => {
|
|
|
16994
17000
|
"It must be called manually."
|
|
16995
17001
|
);
|
|
16996
17002
|
}
|
|
16997
|
-
}
|
|
17003
|
+
};
|
|
16998
17004
|
moduleRtn = readyPromise;
|
|
16999
17005
|
return moduleRtn;
|
|
17000
17006
|
};
|
|
@@ -17028,12 +17034,14 @@ var toExportForESM = function() {
|
|
|
17028
17034
|
}
|
|
17029
17035
|
globalThis.sqlite3InitModule = function ff(...args) {
|
|
17030
17036
|
return originalInit(...args).then((EmscriptenModule) => {
|
|
17037
|
+
EmscriptenModule.runSQLite3PostLoadInit(EmscriptenModule);
|
|
17031
17038
|
const s = EmscriptenModule.sqlite3;
|
|
17032
17039
|
s.scriptInfo = initModuleState;
|
|
17033
17040
|
if (ff.__isUnderTest) s.__isUnderTest = true;
|
|
17034
17041
|
const f = s.asyncPostInit;
|
|
17035
17042
|
delete s.asyncPostInit;
|
|
17036
|
-
|
|
17043
|
+
const rv = f();
|
|
17044
|
+
return rv;
|
|
17037
17045
|
}).catch((e) => {
|
|
17038
17046
|
console.error("Exception loading sqlite3 module:", e);
|
|
17039
17047
|
throw e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerbit/indexer-sqlite3",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"description": "SQLite index for document store",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"better-sqlite3": "^11.8.1",
|
|
73
73
|
"@peerbit/indexer-interface": "^2.0.6",
|
|
74
|
-
"@sqlite.org/sqlite-wasm": "^3.
|
|
74
|
+
"@sqlite.org/sqlite-wasm": "^3.49.1-build2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/better-sqlite3": "^7.6.12",
|