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

Function valuesBuilder

cjs/src/types.js:122–128  ·  view source on GitHub ↗
(first, parameters, types, columns, options)

Source from the content-addressed store, hash-verified

120}
121
122function valuesBuilder(first, parameters, types, columns, options) {
123 return first.map(row =>
124 '(' + columns.map(column =>
125 stringifyValue('values', row[column], parameters, types, options)
126 ).join(',') + ')'
127 ).join(',')
128}
129
130function values(first, rest, parameters, types, options) {
131 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