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

Function AsStringWithFlags

postgres/parser/sem/tree/format.go:431–435  ·  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

429// AsStringWithFlags pretty prints a node to a string given specific flags; only
430// flags that don't require Annotations can be used.
431func AsStringWithFlags(n NodeFormatter, fl FmtFlags) string {
432 ctx := NewFmtCtx(fl)
433 ctx.FormatNode(n)
434 return ctx.CloseAndGetString()
435}
436
437// AsStringWithFQNames pretty prints a node to a string with the
438// FmtAlwaysQualifyTableNames flag (which requires annotations).

Callers 15

RunShowSyntaxFunction · 0.92
bit.goFile · 0.92
varbit.goFile · 0.92
nodeExprFunction · 0.92
bitImplicitFunction · 0.92
varBitImplicitFunction · 0.92
docAsStringMethod · 0.85
pgwireFormatMethod · 0.85
pgwireFormatMethod · 0.85
UnquotedStringMethod · 0.85
memoizeFnMethod · 0.85

Calls 3

FormatNodeMethod · 0.95
CloseAndGetStringMethod · 0.95
NewFmtCtxFunction · 0.85

Tested by

no test coverage detected