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

Method CloseAndGetString

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

CloseAndGetString combines Close() and String().

()

Source from the content-addressed store, hash-verified

484
485// CloseAndGetString combines Close() and String().
486func (ctx *FmtCtx) CloseAndGetString() string {
487 s := ctx.String()
488 ctx.Close()
489 return s
490}
491
492func (ctx *FmtCtx) alwaysFormatTablePrefix() bool {
493 return ctx.flags.HasFlags(FmtAlwaysQualifyTableNames) || ctx.tableNameFormatter != nil

Callers 7

StringWithFlagsMethod · 0.95
FQStringMethod · 0.95
FQStringMethod · 0.95
AsStringWithFlagsFunction · 0.95
bareIdentifierFunction · 0.95
AutoQuoteIdentFunction · 0.95
AsStringWithFQNamesFunction · 0.80

Calls 2

CloseMethod · 0.95
StringMethod · 0.65

Tested by 1

AutoQuoteIdentFunction · 0.76