MCPcopy Index your code
hub / github.com/bytebase/bytebase / backtickIdentifier

Function backtickIdentifier

backend/plugin/parser/tidb/completion.go:326–328  ·  view source on GitHub ↗

backtickIdentifier quotes an identifier for TiDB DDL, escaping embedded backticks by doubling them.

(name string)

Source from the content-addressed store, hash-verified

324// backtickIdentifier quotes an identifier for TiDB DDL, escaping embedded
325// backticks by doubling them.
326func backtickIdentifier(name string) string {
327 return "`" + strings.ReplaceAll(name, "`", "``") + "`"
328}
329
330// isObjectIdentifierCandidate reports whether a candidate type names a schema
331// object referenced as an identifier in SQL (and so must be backtick-quoted

Callers 5

buildCatalogFunction · 0.85
loadDatabaseObjectsFunction · 0.85
execTableDDLFunction · 0.85
defineViewFunction · 0.85
quoteIdentifierIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected