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

Method build

cf/src/types.js:68–73  ·  view source on GitHub ↗
(before, parameters, types, options)

Source from the content-addressed store, hash-verified

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

Callers 1

stringifyValueFunction · 0.45

Calls 1

escapeIdentifiersFunction · 0.70

Tested by

no test coverage detected