Добавлен connManager для управления пулами соединений к базам Sqlite, попутный рефакторинг

This commit is contained in:
Book Pauk
2019-03-08 16:50:44 +07:00
parent c7abae10b7
commit a39626f867
7 changed files with 59 additions and 23 deletions

View File

@@ -1,6 +1,5 @@
class BaseController {
constructor(connPool, config) {
this.connPool = connPool;
constructor(config) {
this.config = config;
}
}

View File

@@ -5,8 +5,8 @@ const workerState = require('../core/workerState');
//const _ = require('lodash');
class ReaderController extends BaseController {
constructor(connPool, config) {
super(connPool, config);
constructor(config) {
super(config);
this.readerWorker = new ReaderWorker(config);
}