MCPcopy
hub / github.com/vrcx-team/VRCX / execute

Method execute

src/services/sqlite.js:51–71  ·  view source on GitHub ↗
(callback, sql, args = null)

Source from the content-addressed store, hash-verified

49 }
50
51 async execute(callback, sql, args = null) {
52 try {
53 if (LINUX) {
54 if (args) {
55 args = new Map(Object.entries(args));
56 }
57 var json = await SQLite.ExecuteJson(sql, args);
58 var items = JSON.parse(json);
59 items.forEach((item) => {
60 callback(item);
61 });
62 return;
63 }
64 var data = await SQLite.Execute(sql, args);
65 data.forEach((row) => {
66 callback(row);
67 });
68 } catch (e) {
69 this.handleSQLiteError(e);
70 }
71 }
72
73 async executeNonQuery(sql, args = null) {
74 try {

Callers 15

uploadImageLegacyFunction · 0.45
lookupAvatarsFunction · 0.45
lookupAvatarByFileIdFunction · 0.45
lookupAvatarsByAuthorFunction · 0.45
checkForVRCXUpdateFunction · 0.45
loadBranchVersionsFunction · 0.45
getVrcStatusFunction · 0.45
getVrcStatusSummaryFunction · 0.45
fetchAvailableModelsFunction · 0.45
lookupYouTubeVideoFunction · 0.45
translateTextFunction · 0.45
vrcStatus.test.jsFile · 0.45

Calls 2

handleSQLiteErrorMethod · 0.95
callbackFunction · 0.85

Tested by

no test coverage detected