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

Function putBuilder

pkg/sql/ast/sql.go:44–53  ·  view source on GitHub ↗

putBuilder returns a strings.Builder to the pool.

(sb *strings.Builder)

Source from the content-addressed store, hash-verified

42
43// putBuilder returns a strings.Builder to the pool.
44func putBuilder(sb *strings.Builder) {
45 if sb == nil {
46 return
47 }
48 // Don't pool very large builders to avoid holding excess memory.
49 if sb.Cap() > 64*1024 {
50 return
51 }
52 builderPool.Put(sb)
53}
54
55// SQL returns the SQL string representation of the AST.
56func (a AST) SQL() string {

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 1

PutMethod · 0.80

Tested by

no test coverage detected