Skip to content

Commit 00c288e

Browse files
committed
clarify the README
1 parent 58fafff commit 00c288e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SQLite is public domain, sql.js is MIT licensed.
1111

1212
```javascript
1313
var sql = require('./js/sql-api.js');
14+
// or sql = window.SQL if you are in a browser
1415

1516
// Create a database
1617
var db = new sql.Database();
@@ -30,7 +31,7 @@ stmt.bind([1, 'world']);
3031
// Fetch the results of the query
3132
while (stmt.step()) console.log(stmt.get()); // Will print [1, 'world']
3233

33-
// Resets the statement, so it can be used again with other values
34+
// Resets the statement, so it can be used again with other parameters
3435
stmt.reset()
3536
// Bind other values
3637
stmt.bind([0, 'hello']);

0 commit comments

Comments
 (0)