From 803148d5a23afe207fb5de9ac73c986a324feb9c Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 31 Oct 2015 14:09:39 +0100 Subject: core: o Improved transaction handling. web: o Supporting changing a device's name and description. --- src/DillerDb.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/DillerDb.js (limited to 'src/DillerDb.js') diff --git a/src/DillerDb.js b/src/DillerDb.js deleted file mode 100644 index c31dde7..0000000 --- a/src/DillerDb.js +++ /dev/null @@ -1,29 +0,0 @@ -var di = require('di'); -var DillerConfig = require('./DillerConfig'); - -var pgpOptions = { - //query: function (e) { - // console.log("Query:", e.query); - // if (e.ctx) { - // // this query is executing inside a task or transaction, - // if (e.ctx.isTX) { - // // this query is inside a transaction; - // } else { - // // this query is inside a task; - // } - // - // } - //} -}; - -var pgp = require('pg-promise')(pgpOptions); - -function DillerDb(config) { - - return function () { - return pgp(config.postgresqlConfig) - } -} -di.annotate(DillerDb, new di.Inject(DillerConfig)); - -module.exports = DillerDb; -- cgit v1.2.3