MCPcopy Create free account
hub / github.com/dresende/node-orm2 / promisifyFunctions

Function promisifyFunctions

lib/Drivers/DML/_utils.js:3–7  ·  view source on GitHub ↗
(target, functions)

Source from the content-addressed store, hash-verified

1var Promise = require("bluebird");
2
3function promisifyFunctions (target, functions) {
4 functions.forEach(function (fnName) {
5 target[fnName + 'Async'] = Promise.promisify(target[fnName]);
6 });
7};
8
9module.exports = {
10 promisifyFunctions: promisifyFunctions,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected