@@ -15,30 +15,30 @@ for another example including the output you will receive.
1515
1616The API is as follows:
1717
18- SQL.open() creates a new database, returning a database object
18+ * SQL.open() creates a new database, returning a database object
1919
20- SQL.open(data) creates a new database with given data, which should be
20+ * SQL.open(data) creates a new database with given data, which should be
2121 a typed array of 8-bit values (typically generated from
2222 calling exportData, see below)
2323
2424Database objects (created from SQL.open) have the following methods:
2525
26- .exec(command) runs a command in the database, returning JSON output
26+ * .exec(command) runs a command in the database, returning JSON output
2727
28- .close() closes the database (this frees the memory it uses)
28+ * .close() closes the database (this frees the memory it uses)
2929
30- .exportData() serializes the data to a typed array of 8-bit values,
30+ * .exportData() serializes the data to a typed array of 8-bit values,
3131 which you can save using any method you like (localStorage,
3232 indexedDB, send to a remote server, etc.), and later re-use
3333 by calling SQL.open with that data.
3434
3535Note that the output rows from .exec(..) look like
3636
37- [ { "column": "a", "value": "1" }, { "column": "b", "value": "13153" }]
37+ [{ "column": "a", "value": "1" }, { "column": "b", "value": "13153" }]
3838
3939whereas in theory they could look like
4040
41- { a: "1", b: "13153" }
41+ { a: "1", b: "13153" }
4242
4343The reason for the more verbose format is that it preserves the order of
4444columns. It also prevents problems with column names stepping on special
0 commit comments