mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Restructuring of the wasm build to support an experimental 'minimal' build mode which elides all non-core APIs.
FossilOrigin-Name: ee2191f7302210100fa0b29ace8156531ad995bf61aa2642e526e0901d0c6862
This commit is contained in:
@ -2761,7 +2761,7 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
|
||||
})/* commit/rollback/update hooks */
|
||||
.t({
|
||||
name: "sqlite3_preupdate_hook()",
|
||||
predicate: ()=>wasm.bigIntEnabled || "Pre-update hook requires int64",
|
||||
predicate: ()=>capi.sqlite3_preupdate_hook || "Missing pre-update hook API",
|
||||
test: function(sqlite3){
|
||||
const db = new sqlite3.oo1.DB(':memory:', 1 ? 'c' : 'ct');
|
||||
const countHook = Object.create(null);
|
||||
@ -2832,7 +2832,7 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
|
||||
T.g('Session API')
|
||||
.t({
|
||||
name: 'Session API sanity checks',
|
||||
predicate: ()=>!!capi.sqlite3changegroup_add,
|
||||
predicate: ()=>!!capi.sqlite3changegroup_add || "Missing session API",
|
||||
test: function(sqlite3){
|
||||
//warn("The session API tests could use some expansion.");
|
||||
const db1 = new sqlite3.oo1.DB(), db2 = new sqlite3.oo1.DB();
|
||||
@ -3299,6 +3299,17 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
|
||||
T.g('Bug Reports')
|
||||
.t({
|
||||
name: 'Delete via bound parameter in subquery',
|
||||
predicate: function(sqlite3){
|
||||
const d = new sqlite3.oo1.DB();
|
||||
try{
|
||||
d.exec("create virtual table f using fts5(x)");
|
||||
return true;
|
||||
}catch(e){
|
||||
return "FTS5 is not available";
|
||||
}finally{
|
||||
d.close();
|
||||
}
|
||||
},
|
||||
test: function(sqlite3){
|
||||
// Testing https://sqlite.org/forum/forumpost/40ce55bdf5
|
||||
// with the exception that that post uses "external content"
|
||||
|
Reference in New Issue
Block a user