We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f35ee20 commit fbdcc7fCopy full SHA for fbdcc7f
demo.html
@@ -5,13 +5,16 @@
5
</title>
6
<script src="sql.js"></script>
7
<script>
8
+ // Connect to the HTML element we 'print' to
9
function print(text) {
10
var element = document.getElementById('output');
11
element.innerHTML = text.replace(/\n/g, '<br>');
12
}
13
14
+ // Open a database
15
var db = SQL.open();
16
17
+ // Run a command in the database
18
function execute(commands) {
19
try {
20
var data = db.exec(commands.replace(/\n/g, '; '));
0 commit comments