2022-08-29 15:39:34 +03:00
|
|
|
<!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 -->
|
2022-08-29 21:58:38 +03:00
|
|
|
<p>
|
2022-09-05 16:24:08 +03:00
|
|
|
This page is for batch-running extracts from the output
|
|
|
|
of <tt>speedtest1 --script</tt>, as well as other standalone SQL
|
|
|
|
scripts.
|
2022-08-29 21:58:38 +03:00
|
|
|
</p>
|
|
|
|
<p id='warn-list' class='warning'>ACHTUNG: this file requires a generated input list
|
2022-08-29 15:39:34 +03:00
|
|
|
file. Run "make batch" from this directory to generate it.
|
|
|
|
</p>
|
2022-09-28 16:01:49 +03:00
|
|
|
<p id='warn-opfs' class='warning hidden'>WARNING: if the WASMFS/OPFS layer crashes, this page may
|
|
|
|
become completely unresponsive and need to be closed and reloaded to recover.
|
|
|
|
</p>
|
|
|
|
<p id='warn-websql' class='warning hidden'>WARNING: WebSQL's limited API requires that
|
|
|
|
this app split up SQL batches into separate statements for execution. That will
|
|
|
|
only work so long as semicolon characters are <em>only</em> used to terminate
|
|
|
|
SQL statements, and not used within string literals or the like.
|
2022-08-29 15:39:34 +03:00
|
|
|
</p>
|
|
|
|
<hr>
|
2022-09-28 20:52:52 +03:00
|
|
|
<fieldset id='toolbar'>
|
|
|
|
<div>
|
|
|
|
<select class='disable-during-eval' id='sql-select'>
|
|
|
|
<option disabled selected>Populated via script code</option>
|
2022-09-28 16:01:49 +03:00
|
|
|
</select>
|
2022-09-28 20:52:52 +03:00
|
|
|
<button class='disable-during-eval' id='sql-run'>Run selected SQL</button>
|
|
|
|
<button class='disable-during-eval' id='sql-run-next'>Run next...</button>
|
|
|
|
<button class='disable-during-eval' id='sql-run-remaining'>Run all remaining...</button>
|
|
|
|
<button class='disable-during-eval' id='export-metrics' disabled>Export metrics (WIP)<br>(broken by refactoring)</button>
|
|
|
|
<button class='disable-during-eval' id='db-reset'>Reset db</button>
|
|
|
|
<button id='output-clear'>Clear output</button>
|
|
|
|
<span class='input-wrapper flex-col'>
|
|
|
|
<label for='select-impl'>Storage impl:</label>
|
|
|
|
<select id='select-impl'>
|
|
|
|
<option value='virtualfs'>Virtual filesystem</option>
|
|
|
|
<option value='memdb'>:memory:</option>
|
|
|
|
<option value='wasmfs-opfs'>WASMFS OPFS</option>
|
|
|
|
<option value='websql'>WebSQL</option>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</fieldset>
|
2022-08-29 15:39:34 +03:00
|
|
|
</div>
|
|
|
|
<hr>
|
2022-09-28 16:01:49 +03:00
|
|
|
<span class='input-wrapper'>
|
|
|
|
<input type='checkbox' class='disable-during-eval' id='cb-reverse-log-order' checked></input>
|
|
|
|
<label for='cb-reverse-log-order'>Reverse log order (newest first)</label>
|
|
|
|
</span>
|
2022-08-29 15:39:34 +03:00
|
|
|
<div id='test-output'></div>
|
2022-10-19 07:44:58 +03:00
|
|
|
<script src="jswasm/sqlite3.js"></script>
|
2022-08-29 15:39:34 +03:00
|
|
|
<script src="common/SqliteTestUtil.js"></script>
|
|
|
|
<script src="batch-runner.js"></script>
|
2022-09-28 16:01:49 +03:00
|
|
|
<style>
|
|
|
|
.flex-col {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2022-09-28 20:52:52 +03:00
|
|
|
#toolbar > div {
|
2022-09-28 16:01:49 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
2022-09-28 20:52:52 +03:00
|
|
|
#toolbar > div > * {
|
2022-09-28 16:01:49 +03:00
|
|
|
margin: 0.25em;
|
|
|
|
}
|
|
|
|
</style>
|
2022-08-29 15:39:34 +03:00
|
|
|
</body>
|
|
|
|
</html>
|