xref: /sqlite-3.40.0/ext/wasm/batch-runner.html (revision 2cae138f)
1*2cae138fSstephan<!doctype html>
2*2cae138fSstephan<html lang="en-us">
3*2cae138fSstephan  <head>
4*2cae138fSstephan    <meta charset="utf-8">
5*2cae138fSstephan    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6*2cae138fSstephan    <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
7*2cae138fSstephan    <link rel="stylesheet" href="common/emscripten.css"/>
8*2cae138fSstephan    <link rel="stylesheet" href="common/testing.css"/>
9*2cae138fSstephan    <title>sqlite3-api batch SQL runner</title>
10*2cae138fSstephan  </head>
11*2cae138fSstephan  <body>
12*2cae138fSstephan    <header id='titlebar'><span>sqlite3-api batch SQL runner</span></header>
13*2cae138fSstephan    <!-- emscripten bits -->
14*2cae138fSstephan    <figure id="module-spinner">
15*2cae138fSstephan      <div class="spinner"></div>
16*2cae138fSstephan      <div class='center'><strong>Initializing app...</strong></div>
17*2cae138fSstephan      <div class='center'>
18*2cae138fSstephan        On a slow internet connection this may take a moment.  If this
19*2cae138fSstephan        message displays for "a long time", intialization may have
20*2cae138fSstephan        failed and the JavaScript console may contain clues as to why.
21*2cae138fSstephan      </div>
22*2cae138fSstephan    </figure>
23*2cae138fSstephan    <div class="emscripten" id="module-status">Downloading...</div>
24*2cae138fSstephan    <div class="emscripten">
25*2cae138fSstephan      <progress value="0" max="100" id="module-progress" hidden='1'></progress>
26*2cae138fSstephan    </div><!-- /emscripten bits -->
27*2cae138fSstephan    <p class='warning'>ACHTUNG: this file requires a generated input list
28*2cae138fSstephan      file. Run "make batch" from this directory to generate it.
29*2cae138fSstephan    </p>
30*2cae138fSstephan    <p class='warning'>WARNING: if the WASMFS/OPFS layer crashes, this page may
31*2cae138fSstephan      become completely unresponsive and need to be closed and
32*2cae138fSstephan      reloaded to recover.
33*2cae138fSstephan    </p>
34*2cae138fSstephan    <hr>
35*2cae138fSstephan    <div>
36*2cae138fSstephan      <select id='sql-select'>
37*2cae138fSstephan        <option disabled selected>Populated via script code</option>
38*2cae138fSstephan      </select>
39*2cae138fSstephan      <button id='sql-run'>Run selected SQL</button>
40*2cae138fSstephan      <button id='output-clear'>Clear output</button>
41*2cae138fSstephan    </div>
42*2cae138fSstephan    <hr>
43*2cae138fSstephan    <div id='test-output'></div>
44*2cae138fSstephan
45*2cae138fSstephan    <script src="sqlite3.js"></script>
46*2cae138fSstephan    <script src="common/SqliteTestUtil.js"></script>
47*2cae138fSstephan    <script src="batch-runner.js"></script>
48*2cae138fSstephan    <style>
49*2cae138fSstephan      .warning { color: firebrick; }
50*2cae138fSstephan      #test-output {
51*2cae138fSstephan          border: 1px inset;
52*2cae138fSstephan          padding: 0.25em;
53*2cae138fSstephan          max-height: 20em;
54*2cae138fSstephan          overflow: auto;
55*2cae138fSstephan          white-space: break-spaces;
56*2cae138fSstephan      }
57*2cae138fSstephan    </style>
58*2cae138fSstephan  </body>
59*2cae138fSstephan</html>
60