Skip to content

Commit 0054313

Browse files
committed
readme formatting
1 parent 8c923f5 commit 0054313

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@ for another example including the output you will receive.
1515

1616
The 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

2424
Database 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

3535
Note 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

3939
whereas in theory they could look like
4040

41-
{ a: "1", b: "13153" }
41+
{ a: "1", b: "13153" }
4242

4343
The reason for the more verbose format is that it preserves the order of
4444
columns. It also prevents problems with column names stepping on special

0 commit comments

Comments
 (0)