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

Function valuesBuilder

cf/src/types.js:123–129  ·  view source on GitHub ↗
(first, parameters, types, columns, options)

Source from the content-addressed store, hash-verified

121}
122
123function valuesBuilder(first, parameters, types, columns, options) {
124 return first.map(row =>
125 '(' + columns.map(column =>
126 stringifyValue('values', row[column], parameters, types, options)
127 ).join(',') + ')'
128 ).join(',')
129}
130
131function values(first, rest, parameters, types, options) {
132 const multi = Array.isArray(first[0])

Callers 2

valuesFunction · 0.70
insertFunction · 0.70

Calls 1

stringifyValueFunction · 0.70

Tested by

no test coverage detected