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

Method FormatName

pkg/sql/sem/tree/format.go:516–518  ·  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

514// Note: prefer FormatNameP below when the string is already on the
515// heap.
516func (ctx *FmtCtx) FormatName(s string) {
517 ctx.FormatNode((*Name)(&s))
518}
519
520// FormatNameP formats a string reference as a name.
521func (ctx *FmtCtx) FormatNameP(s *string) {

Callers 5

FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80

Calls 1

FormatNodeMethod · 0.95

Tested by

no test coverage detected