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

Function insert

cjs/src/types.js:171–175  ·  view source on GitHub ↗
(first, rest, parameters, types, options)

Source from the content-addressed store, hash-verified

169 },
170
171 insert(first, rest, parameters, types, options) {
172 const columns = rest.length ? rest.flat() : Object.keys(Array.isArray(first) ? first[0] : first)
173 return '(' + escapeIdentifiers(columns, options) + ')values' +
174 valuesBuilder(Array.isArray(first) ? first : [first], parameters, types, columns, options)
175 }
176}).map(([x, fn]) => ([new RegExp('((?:^|[\\s(])' + x + '(?:$|[\\s(]))(?![\\s\\S]*\\1)', 'i'), fn]))
177
178function notTagged() {

Callers

nothing calls this directly

Calls 2

escapeIdentifiersFunction · 0.70
valuesBuilderFunction · 0.70

Tested by

no test coverage detected