MCPcopy Index your code
hub / github.com/simstudioai/sim / sanitizeIdentifier

Function sanitizeIdentifier

apps/sim/app/api/tools/mysql/utils.ts:163–170  ·  view source on GitHub ↗
(identifier: string)

Source from the content-addressed store, hash-verified

161}
162
163export function sanitizeIdentifier(identifier: string): string {
164 if (identifier.includes('.')) {
165 const parts = identifier.split('.')
166 return parts.map((part) => sanitizeSingleIdentifier(part)).join('.')
167 }
168
169 return sanitizeSingleIdentifier(identifier)
170}
171
172function sanitizeSingleIdentifier(identifier: string): string {
173 const cleaned = identifier.replace(/`/g, '')

Callers 3

buildInsertQueryFunction · 0.70
buildUpdateQueryFunction · 0.70
buildDeleteQueryFunction · 0.70

Calls 2

joinMethod · 0.80
sanitizeSingleIdentifierFunction · 0.70

Tested by

no test coverage detected