Skip to content
Permalink
Browse files

Fix code sample in README (#231)

Statement requires run to be called.
  • Loading branch information...
shatgupt authored and JoshuaWise committed Feb 20, 2019
1 parent d3a879d commit f9166c0199b10455b21c217a6749a4438b553de3
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/api.md
@@ -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
});
```

0 comments on commit f9166c0

Please sign in to comment.
You can’t perform that action at this time.