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

Method Close

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

Close releases a FmtCtx for reuse. Closing a FmtCtx is not required, but is recommended for performance-sensitive paths.

()

Source from the content-addressed store, hash-verified

474// Close releases a FmtCtx for reuse. Closing a FmtCtx is not required, but is
475// recommended for performance-sensitive paths.
476func (ctx *FmtCtx) Close() {
477 ctx.Buffer.Reset()
478 ctx.flags = 0
479 ctx.indexedVarFormat = nil
480 ctx.tableNameFormatter = nil
481 ctx.placeholderFormat = nil
482 fmtCtxPool.Put(ctx)
483}
484
485// CloseAndGetString combines Close() and String().
486func (ctx *FmtCtx) CloseAndGetString() string {

Callers 1

CloseAndGetStringMethod · 0.95

Calls 1

ResetMethod · 0.65

Tested by

no test coverage detected