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

Function escapeIdentifier

cf/src/types.js:217–219  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

215}
216
217export const escapeIdentifier = function escape(str) {
218 return '"' + str.replace(/"/g, '""').replace(/\./g, '"."') + '"'
219}
220
221export const inferType = function inferType(x) {
222 return (

Callers 8

constructorMethod · 0.70
selectFunction · 0.70
updateFunction · 0.70
escapeIdentifiersFunction · 0.70
constructorMethod · 0.50
selectFunction · 0.50
updateFunction · 0.50
escapeIdentifiersFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected