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

Function escapeIdentifiers

cf/src/types.js:213–215  ·  view source on GitHub ↗
(xs, { transform: { column } })

Source from the content-addressed store, hash-verified

211}
212
213function escapeIdentifiers(xs, { transform: { column } }) {
214 return xs.map(x => escapeIdentifier(column.to ? column.to(x) : x)).join(',')
215}
216
217export const escapeIdentifier = function escape(str) {
218 return '"' + str.replace(/"/g, '""').replace(/\./g, '"."') + '"'

Callers 3

buildMethod · 0.70
selectFunction · 0.70
insertFunction · 0.70

Calls 1

escapeIdentifierFunction · 0.70

Tested by

no test coverage detected