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

Function insert

cf/src/types.js:172–176  ·  view source on GitHub ↗
(first, rest, parameters, types, options)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

escapeIdentifiersFunction · 0.70
valuesBuilderFunction · 0.70

Tested by

no test coverage detected