MCPcopy
hub / github.com/brianc/node-postgres / cb

Function cb

packages/pg-pool/index.js:36–38  ·  view source on GitHub ↗
(err, client)

Source from the content-addressed store, hash-verified

34 let rej
35 let res
36 const cb = function (err, client) {
37 err ? rej(err) : res(client)
38 }
39 const result = new Promise(function (resolve, reject) {
40 res = resolve
41 rej = reject

Callers 15

connectMethod · 0.85
queryMethod · 0.85
onErrorMethod · 0.85
endMethod · 0.85
events.jsFile · 0.85
verify.jsFile · 0.85
index.jsFile · 0.85
copy-stream.jsFile · 0.85
readErrorFunction · 0.85
onReadableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected