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

Function stringify

cf/src/types.js:99–106  ·  view source on GitHub ↗
(q, string, value, parameters, types, options)

Source from the content-addressed store, hash-verified

97const defaultHandlers = typeHandlers(types)
98
99export function stringify(q, string, value, parameters, types, options) { // eslint-disable-line
100 for (let i = 1; i < q.strings.length; i++) {
101 string += (stringifyValue(string, value, parameters, types, options)) + q.strings[i]
102 value = q.args[i]
103 }
104
105 return string
106}
107
108function stringifyValue(string, value, parameters, types, o) {
109 return (

Callers 2

buildFunction · 0.90
fragmentFunction · 0.70

Calls 1

stringifyValueFunction · 0.70

Tested by

no test coverage detected