Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (39 loc) · 1.52 KB
/
Copy pathindex.html
File metadata and controls
46 lines (39 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DuckDB-Wasm File Upload</title>
<link rel="stylesheet" href="styles.css">
<script type="module" src="scripts.js" defer></script>
</head>
<body>
<div class="container">
<div class="left-column">
<h1>Vanilla🍦Duck🦆</h1>
<input type="file" id="fileInput" accept=".csv,.parquet,.json"/>
<div id="createTableDiv">
<input type="text" id="tableNameInput" placeholder="Enter table name"/>
<button type="button" id="uploadBtn" onclick="uploadTable()">Create Table</button>
</div>
<div id="tablesDiv" style="display:none">
<table id="tablesTable"></table>
</div>
</div>
<div class="right-column">
<div id="queryEntryDiv" style="display:none">
<h2>SQL Query</h2>
<textarea id="queryInput" rows="10" placeholder="Write SQL query here"></textarea>
<button type="button" id="queryBtn" onclick="runQuery()">Run Query</button>
</div>
<div id="queryResultsDiv" style="display:none">
<h4>Query:</h4>
<div id="lastQueryDiv"></div>
<h4>Result:</h4>
<div id="resultErrorDiv"></div>
<table id="resultTable"></table>
</div>
</div>
</div>
</body>
</html>