Promisify modules (#6723)

* WIP promisify

* promisify psql

* ability to skip some keys

* dont promisify client object

* remove async

* clone entire module so it has all properties

* add shim for node 6

* ignore sessionStore as well

* ignore pool on psql
This commit is contained in:
Barış Soner Uşaklı
2018-08-31 11:04:42 -04:00
committed by GitHub
parent e882a091a1
commit 0519f84734
13 changed files with 60 additions and 1 deletions

View File

@@ -123,6 +123,8 @@ postgresModule.init = function (callback) {
require('./postgres/list')(wrappedDB, postgresModule);
require('./postgres/transaction')(db, dbNamespace, postgresModule);
postgresModule.async = require('../promisify')(postgresModule, ['client', 'sessionStore', 'pool']);
callback();
});
});