MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / getBuilder

Function getBuilder

pkg/sql/ast/sql.go:37–41  ·  view source on GitHub ↗

getBuilder retrieves a strings.Builder from the pool, ready for use. Always pair with putBuilder to return it.

()

Source from the content-addressed store, hash-verified

35// getBuilder retrieves a strings.Builder from the pool, ready for use.
36// Always pair with putBuilder to return it.
37func getBuilder() *strings.Builder {
38 sb := builderPool.Get().(*strings.Builder)
39 sb.Reset()
40 return sb
41}
42
43// putBuilder returns a strings.Builder to the pool.
44func putBuilder(sb *strings.Builder) {

Callers 15

SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85
SQLMethod · 0.85

Calls 2

GetMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected