MCPcopy Create free account
hub / github.com/dolthub/doltgresql / AsStringWithFQNames

Function AsStringWithFQNames

postgres/parser/sem/tree/format.go:439–443  ·  view source on GitHub ↗

AsStringWithFQNames pretty prints a node to a string with the FmtAlwaysQualifyTableNames flag (which requires annotations).

(n NodeFormatter, ann *Annotations)

Source from the content-addressed store, hash-verified

437// AsStringWithFQNames pretty prints a node to a string with the
438// FmtAlwaysQualifyTableNames flag (which requires annotations).
439func AsStringWithFQNames(n NodeFormatter, ann *Annotations) string {
440 ctx := NewFmtCtxEx(FmtAlwaysQualifyTableNames, ann)
441 ctx.FormatNode(n)
442 return ctx.CloseAndGetString()
443}
444
445// AsString pretty prints a node to a string, with unquoted identifiers.
446func AsString(n NodeFormatter) string {

Callers

nothing calls this directly

Calls 3

NewFmtCtxExFunction · 0.85
FormatNodeMethod · 0.80
CloseAndGetStringMethod · 0.80

Tested by

no test coverage detected