From 5732c3713b48a0385f5f1a40dce4e9ee2597bfbd Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Mon, 2 Jan 2017 18:01:09 +0200 Subject: [PATCH] Use in memory database by default --- defaultDbOptions.json | 3 ++- lib/db/connector.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defaultDbOptions.json b/defaultDbOptions.json index b901157..ab5c33f 100644 --- a/defaultDbOptions.json +++ b/defaultDbOptions.json @@ -1,6 +1,7 @@ { - "connection": { "filename": "./remotedev-db.sqlite3" }, "client": "sqlite3", + "connection": { "filename": ":memory:" }, + "pool": { "refreshIdle": false, "min": 1, "max": 1 }, "debug": false, "migrate": true } diff --git a/lib/db/connector.js b/lib/db/connector.js index 0b06944..b2d6836 100644 --- a/lib/db/connector.js +++ b/lib/db/connector.js @@ -23,5 +23,5 @@ module.exports = function connector(options) { console.error(error); }); - return knexModule(dbOptions); + return knex; };