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

Function AsStringWithFQNames

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

387// AsStringWithFQNames pretty prints a node to a string with the
388// FmtAlwaysQualifyTableNames flag (which requires annotations).
389func AsStringWithFQNames(n NodeFormatter, ann *Annotations) string {
390 ctx := NewFmtCtxEx(FmtAlwaysQualifyTableNames, ann)
391 ctx.FormatNode(n)
392 return ctx.CloseAndGetString()
393}
394
395// AsString pretty prints a node to a string.
396func 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…