MCPcopy Create free account
hub / github.com/sql-js/sql.js / execute

Function execute

GUI/deoptimize.gui.js:30–45  ·  view source on GitHub ↗
(commands)

Source from the content-addressed store, hash-verified

28
29// Run a command in the database
30function execute(commands) {
31 tic();
32 worker.onmessage = function(event) {
33 var results = event.data.results;
34 toc("Executing SQL");
35
36 tic();
37 outputElm.innerHTML = "";
38 for (var i=0; i<results.length; i++) {
39 outputElm.appendChild(tableCreate(results[i].columns, results[i].values));
40 }
41 toc("Displaying results");
42 }
43 worker.postMessage({action:'exec', sql:commands});
44 outputElm.textContent = "Fetching results...";
45}
46
47// Create an HTML table
48var tableCreate = function () {

Callers 1

execEditorContentsFunction · 0.70

Calls 2

ticFunction · 0.70
tocFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…