Skip to content

Commit

Permalink
Fix code sample in README (#231)
Browse files Browse the repository at this point in the history
Statement requires run to be called.
  • Loading branch information
shatgupt authored and JoshuaWise committed Feb 20, 2019
1 parent d3a879d commit f9166c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Expand Up @@ -68,7 +68,7 @@ Transaction functions can be called from inside other transaction functions. Whe
const newExpense = db.prepare('INSERT INTO expenses (note, dollars) VALUES (?, ?)');

const adopt = db.transaction((cats) => {
newExpense('adoption fees', 20);
newExpense.run('adoption fees', 20);
insertMany(cats); // nested transaction
});
```
Expand Down

0 comments on commit f9166c0

Please sign in to comment.