From 6eb50ff0b09a32c72ebbf0b96df89f8766d5fe0f Mon Sep 17 00:00:00 2001 From: g-div Date: Fri, 24 Nov 2017 10:37:27 +0100 Subject: [PATCH] Fix syntax error in examples `sqlite.open('./database.sqlite', { cached: true })` was written twice as `sqlite.open('./database.sqlite', { cached: true }))` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1199e3..4ecf579 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ import sqlite from 'sqlite'; const app = express(); const port = process.env.PORT || 3000; -const dbPromise = sqlite.open('./database.sqlite', { Promise })); +const dbPromise = sqlite.open('./database.sqlite', { Promise }); app.get('/post/:id', async (req, res, next) => { try { @@ -62,7 +62,7 @@ app.listen(port); If you want to enable the [database object cache](https://github.com/mapbox/node-sqlite3/wiki/Caching) ```js -sqlite.open('./database.sqlite', { cached: true })) +sqlite.open('./database.sqlite', { cached: true }) ``` ### Migrations