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

Method CloseAndGetString

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

CloseAndGetString combines Close() and String().

()

Source from the content-addressed store, hash-verified

428
429// CloseAndGetString combines Close() and String().
430func (ctx *FmtCtx) CloseAndGetString() string {
431 s := ctx.String()
432 ctx.Close()
433 return s
434}
435
436func (ctx *FmtCtx) alwaysFormatTablePrefix() bool {
437 return ctx.flags.HasFlags(FmtAlwaysQualifyTableNames) || ctx.tableNameFormatter != nil

Callers 4

StringWithFlagsMethod · 0.95
FQStringMethod · 0.95
AsStringWithFlagsFunction · 0.95
AsStringWithFQNamesFunction · 0.80

Calls 2

CloseMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected