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

Method CloseAndGetString

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

CloseAndGetString combines Close() and String().

()

Source from the content-addressed store, hash-verified

846
847// CloseAndGetString combines Close() and String().
848func (ctx *FmtCtx) CloseAndGetString() string {
849 s := ctx.String()
850 ctx.Close()
851 return s
852}
853
854func (ctx *FmtCtx) alwaysFormatTablePrefix() bool {
855 return ctx.flags.HasFlags(FmtAlwaysQualifyTableNames) || ctx.tableNameFormatter != nil

Callers 10

StringWithFlagsMethod · 0.95
StringWithFlagsMethod · 0.95
StringWithFlagsMethod · 0.95
FQStringMethod · 0.95
formatTimeFunction · 0.95
FQStringMethod · 0.95
formatLimitLengthMethod · 0.95
AsStringWithFlagsFunction · 0.95
AsStringWithFQNamesFunction · 0.95
FormatMethod · 0.80

Calls 2

CloseMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected