Skip to content

Commit 61830f2

Browse files
committed
Merge branch 'master' of github.com:kripken/sql.js
2 parents 0db5ff6 + 6c2ce67 commit 61830f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SQLite is public domain, sql.js is MIT licensed.
1111
## Usage
1212

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

1717
// Create a database
@@ -70,7 +70,7 @@ The test files provide up to date example of the use of the api.
7070
db.run("INSERT INTO test VALUES (?,?), (?,?)", [1,111,2,222]);
7171
7272
// Prepare a statement
73-
var stmt = db.prepare("SELECT * FROM test WHERE a BETWEEN $start AND $end");
73+
var stmt = db.prepare("SELECT * FROM test WHERE col1 BETWEEN $start AND $end");
7474
stmt.getAsObject({$start:1, $end:1}); // {col1:1, col2:111}
7575
7676
// Bind new values

0 commit comments

Comments
 (0)