summaryrefslogtreecommitdiffstats
path: root/index.html
blob: dd66be860e41ee57d145c8f80490cc8cacfbd5a0 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!doctype html>
<html>
	<head>
		<title>DDL Builder</title>
		<script src="libs/require.js" data-main="main"></script>
		<style>
		textarea {
			font-family: monospace;
			font-size:12pt;
			width: 100%;
			height: 300px;
		}
		label {
			font-weight: bold;
		}
		div {
			float: left;
			width: 50%;
		}
		</style>
	</head>
	<body>
		<h1>DDL Builder</h1>
		<fieldset>
			<legend>Convert Regularly-Formatted Text to Database Table Insert Scripts</legend>
			
			<div>
				<label for="input">Input Text</label>
				<textarea id="input"></textarea>
			</div>
			
			<div>
				<label for="output">Parse Result</label>
				<textarea id="output"></textarea>
			</div>
			<hr>
			<div>
			<label for="dbType">Database Type</label>
			<select id="dbType">
				<option>MySQL</option>
				<option>Oracle</option>
				<option>PostgreSQL</option>
				<option>SQLite</option>
				<option>SQL Server</option>
			</select>
			|
			<label for="terminator">Query Terminator</label>
			<select id="terminator">
				<option>;</option>
				<option>GO</option>
				<option>/</option>
			</select>
			
			|
			<input type="button" id="parseBtn" value="Parse!">
			</div>
			
		</fieldset>
		
		<p>Brought to you by <a href="http://sqlfiddle.com">SQL Fiddle</a>.</p>
	</body>
</html>