MCPcopy Create free account
hub / github.com/porsager/postgres / build

Method build

cjs/src/types.js:67–72  ·  view source on GitHub ↗
(before, parameters, types, options)

Source from the content-addressed store, hash-verified

65 }
66
67 build(before, parameters, types, options) {
68 const keyword = builders.map(([x, fn]) => ({ fn, i: before.search(x) })).sort((a, b) => a.i - b.i).pop()
69 return keyword.i === -1
70 ? escapeIdentifiers(this.first, options)
71 : keyword.fn(this.first, this.rest, parameters, types, options)
72 }
73}
74
75module.exports.handleValue = handleValue;function handleValue(x, parameters, types, options) {

Callers 1

stringifyValueFunction · 0.45

Calls 1

escapeIdentifiersFunction · 0.70

Tested by

no test coverage detected