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

Function stringifyValue

cf/src/types.js:108–116  ·  view source on GitHub ↗
(string, value, parameters, types, o)

Source from the content-addressed store, hash-verified

106}
107
108function stringifyValue(string, value, parameters, types, o) {
109 return (
110 value instanceof Builder ? value.build(string, parameters, types, o) :
111 value instanceof Query ? fragment(value, parameters, types, o) :
112 value instanceof Identifier ? value.value :
113 value && value[0] instanceof Query ? value.reduce((acc, x) => acc + ' ' + fragment(x, parameters, types, o), '') :
114 handleValue(value, parameters, types, o)
115 )
116}
117
118function fragment(q, parameters, types, options) {
119 q.fragment = true

Callers 3

stringifyFunction · 0.70
valuesBuilderFunction · 0.70
updateFunction · 0.70

Calls 3

fragmentFunction · 0.70
handleValueFunction · 0.70
buildMethod · 0.45

Tested by

no test coverage detected