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

Function GetArrayConstructor

pkg/sql/ast/pool.go:1238–1243  ·  view source on GitHub ↗

GetArrayConstructor gets an ArrayConstructorExpression from the pool

()

Source from the content-addressed store, hash-verified

1236
1237// GetArrayConstructor gets an ArrayConstructorExpression from the pool
1238func GetArrayConstructor() *ArrayConstructorExpression {
1239 ac := arrayConstructorPool.Get().(*ArrayConstructorExpression)
1240 ac.Elements = ac.Elements[:0]
1241 ac.Subquery = nil
1242 return ac
1243}
1244
1245// PutArrayConstructor returns an ArrayConstructorExpression to the pool
1246func PutArrayConstructor(ac *ArrayConstructorExpression) {

Callers 3

parseArrayConstructorMethod · 0.92
TestPutArrayConstructorFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 1

TestPutArrayConstructorFunction · 0.68