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

Function stringifyValue

cjs/src/types.js:107–115  ·  view source on GitHub ↗
(string, value, parameters, types, o)

Source from the content-addressed store, hash-verified

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