diff options
author | stephan <stephan@noemail.net> | 2022-08-29 12:39:34 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-08-29 12:39:34 +0000 |
commit | 2cae138fbae5404fc8fc5319ba52abdb0d723c0c (patch) | |
tree | b206bf98e518d0400819c81693539a16734c1486 /ext/wasm/batch-runner.html | |
parent | f2e624ea918d6509165a07205d08acd7ffe77927 (diff) | |
download | sqlite-2cae138fbae5404fc8fc5319ba52abdb0d723c0c.tar.gz sqlite-2cae138fbae5404fc8fc5319ba52abdb0d723c0c.zip |
Add batch-runner.js for running batch SQL scripts with timing info.
FossilOrigin-Name: 11f3ed61150c5940da6c157e5063e70c3aa0628dfd0023c47bb65b00af74ab1f
Diffstat (limited to 'ext/wasm/batch-runner.html')
-rw-r--r-- | ext/wasm/batch-runner.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/ext/wasm/batch-runner.html b/ext/wasm/batch-runner.html new file mode 100644 index 000000000..f5031f8fe --- /dev/null +++ b/ext/wasm/batch-runner.html @@ -0,0 +1,59 @@ +<!doctype html> +<html lang="en-us"> + <head> + <meta charset="utf-8"> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> + <link rel="stylesheet" href="common/emscripten.css"/> + <link rel="stylesheet" href="common/testing.css"/> + <title>sqlite3-api batch SQL runner</title> + </head> + <body> + <header id='titlebar'><span>sqlite3-api batch SQL runner</span></header> + <!-- emscripten bits --> + <figure id="module-spinner"> + <div class="spinner"></div> + <div class='center'><strong>Initializing app...</strong></div> + <div class='center'> + On a slow internet connection this may take a moment. If this + message displays for "a long time", intialization may have + failed and the JavaScript console may contain clues as to why. + </div> + </figure> + <div class="emscripten" id="module-status">Downloading...</div> + <div class="emscripten"> + <progress value="0" max="100" id="module-progress" hidden='1'></progress> + </div><!-- /emscripten bits --> + <p class='warning'>ACHTUNG: this file requires a generated input list + file. Run "make batch" from this directory to generate it. + </p> + <p class='warning'>WARNING: if the WASMFS/OPFS layer crashes, this page may + become completely unresponsive and need to be closed and + reloaded to recover. + </p> + <hr> + <div> + <select id='sql-select'> + <option disabled selected>Populated via script code</option> + </select> + <button id='sql-run'>Run selected SQL</button> + <button id='output-clear'>Clear output</button> + </div> + <hr> + <div id='test-output'></div> + + <script src="sqlite3.js"></script> + <script src="common/SqliteTestUtil.js"></script> + <script src="batch-runner.js"></script> + <style> + .warning { color: firebrick; } + #test-output { + border: 1px inset; + padding: 0.25em; + max-height: 20em; + overflow: auto; + white-space: break-spaces; + } + </style> + </body> +</html> |