MCPcopy
hub / github.com/sqlc-dev/sqlc / QuoteIdent

Method QuoteIdent

internal/sql/format/format.go:7–7  ·  view source on GitHub ↗

QuoteIdent returns a quoted identifier if it needs quoting (e.g., reserved words, mixed case identifiers)

(s string)

Source from the content-addressed store, hash-verified

5 // QuoteIdent returns a quoted identifier if it needs quoting
6 // (e.g., reserved words, mixed case identifiers)
7 QuoteIdent(s string) string
8
9 // TypeName returns the SQL type name for the given namespace and name.
10 // This handles dialect-specific type name mappings (e.g., pg_catalog.int4 -> integer)

Callers 4

FormatMethod · 0.65
FormatMethod · 0.65
FormatMethod · 0.65
FormatMethod · 0.65

Implementers 4

Parserinternal/engine/postgresql/parse.go
Parserinternal/engine/dolphin/parse.go
Parserinternal/engine/clickhouse/parse.go
Parserinternal/engine/sqlite/parse.go

Calls

no outgoing calls

Tested by

no test coverage detected