MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / FormatName

Method FormatName

pkg/sql/sem/tree/format.go:320–322  ·  view source on GitHub ↗

FormatName formats a string as a name. Note: prefer FormatNameP below when the string is already on the heap.

(s string)

Source from the content-addressed store, hash-verified

318// Note: prefer FormatNameP below when the string is already on the
319// heap.
320func (ctx *FmtCtx) FormatName(s string) {
321 ctx.FormatNode((*Name)(&s))
322}
323
324// FormatNameP formats a string reference as a name.
325func (ctx *FmtCtx) FormatNameP(s *string) {

Callers

nothing calls this directly

Calls 1

FormatNodeMethod · 0.95

Tested by

no test coverage detected