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

Function AsStringWithFlags

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

AsStringWithFlags pretty prints a node to a string given specific flags; only flags that don't require Annotations can be used.

(n NodeFormatter, fl FmtFlags)

Source from the content-addressed store, hash-verified

379// AsStringWithFlags pretty prints a node to a string given specific flags; only
380// flags that don't require Annotations can be used.
381func AsStringWithFlags(n NodeFormatter, fl FmtFlags) string {
382 ctx := NewFmtCtx(fl)
383 ctx.FormatNode(n)
384 return ctx.CloseAndGetString()
385}
386
387// AsStringWithFQNames pretty prints a node to a string with the
388// FmtAlwaysQualifyTableNames flag (which requires annotations).

Callers 12

RunShowSyntaxFunction · 0.92
docAsStringMethod · 0.85
pgwireFormatMethod · 0.85
pgwireFormatMethod · 0.85
AsJSONFunction · 0.85
memoizeFnMethod · 0.85
memoizeFnMethod · 0.85
PerformCastFunction · 0.85
AsStringFunction · 0.85
ErrStringFunction · 0.85
SerializeFunction · 0.85

Calls 3

FormatNodeMethod · 0.95
CloseAndGetStringMethod · 0.95
NewFmtCtxFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…