5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
6 <link rel=
"shortcut icon" href=
"data:image/x-icon;," type=
"image/x-icon">
7 <link rel=
"stylesheet" href=
"common/emscripten.css"/>
8 <link rel=
"stylesheet" href=
"common/testing.css"/>
9 <title>sqlite3-api batch SQL runner
</title>
12 <header id='titlebar'
><span>sqlite3-api batch SQL runner
</span></header>
13 <!-- emscripten bits -->
14 <figure id=
"module-spinner">
15 <div class=
"spinner"></div>
16 <div class='center'
><strong>Initializing app...
</strong></div>
18 On a slow internet connection this may take a moment. If this
19 message displays for
"a long time", intialization may have
20 failed and the JavaScript console may contain clues as to why.
23 <div class=
"emscripten" id=
"module-status">Downloading...
</div>
24 <div class=
"emscripten">
25 <progress value=
"0" max=
"100" id=
"module-progress" hidden='
1'
></progress>
26 </div><!-- /emscripten bits -->
28 This page is for batch-running extracts from the output
29 of
<tt>speedtest1 --script
</tt>, as well as other standalone SQL
32 <p id='warn-list' class='warning'
>ACHTUNG: this file requires a generated input list
33 file. Run
"make batch" from this directory to generate it.
35 <p id='warn-opfs' class='warning hidden'
>WARNING: if the WASMFS/OPFS layer crashes, this page may
36 become completely unresponsive and need to be closed and reloaded to recover.
38 <p id='warn-websql' class='warning hidden'
>WARNING: WebSQL's limited API requires that
39 this app split up SQL batches into separate statements for execution. That will
40 only work so long as semicolon characters are
<em>only
</em> used to terminate
41 SQL statements, and not used within string literals or the like.
44 <fieldset id='toolbar'
>
46 <select class='disable-during-eval' id='sql-select'
>
47 <option disabled selected
>Populated via script code
</option>
49 <button class='disable-during-eval' id='sql-run'
>Run selected SQL
</button>
50 <button class='disable-during-eval' id='sql-run-next'
>Run next...
</button>
51 <button class='disable-during-eval' id='sql-run-remaining'
>Run all remaining...
</button>
52 <button class='disable-during-eval' id='export-metrics' disabled
>Export metrics (WIP)
<br>(broken by refactoring)
</button>
53 <button class='disable-during-eval' id='db-reset'
>Reset db
</button>
54 <button id='output-clear'
>Clear output
</button>
55 <span class='input-wrapper flex-col'
>
56 <label for='select-impl'
>Storage impl:
</label>
57 <select id='select-impl'
>
58 <option value='virtualfs'
>Virtual filesystem
</option>
59 <option value='memdb'
>:memory:
</option>
60 <option value='wasmfs-opfs'
>WASMFS OPFS
</option>
61 <option value='websql'
>WebSQL
</option>
67 <span class='input-wrapper'
>
68 <input type='checkbox' class='disable-during-eval' id='cb-reverse-log-order' checked
></input>
69 <label for='cb-reverse-log-order'
>Reverse log order (newest first)
</label>
71 <div id='test-output'
></div>
72 <script src=
"jswasm/sqlite3.js"></script>
73 <script src=
"common/SqliteTestUtil.js"></script>
74 <script src=
"batch-runner.js"></script>
78 flex-direction: column;