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

Function PutExpressionSlice

pkg/sql/ast/pool.go:760–769  ·  view source on GitHub ↗

PutExpressionSlice returns a slice of Expression to the pool

(slice *[]Expression)

Source from the content-addressed store, hash-verified

758
759// PutExpressionSlice returns a slice of Expression to the pool
760func PutExpressionSlice(slice *[]Expression) {
761 if slice == nil {
762 return
763 }
764 for i := range *slice {
765 PutExpression((*slice)[i])
766 (*slice)[i] = nil
767 }
768 exprSlicePool.Put(slice)
769}
770
771// GetLiteralValue gets a LiteralValue from the pool
772func GetLiteralValue() *LiteralValue {

Callers 3

TestExpressionSlicePoolFunction · 0.85

Calls 2

PutExpressionFunction · 0.85
PutMethod · 0.80

Tested by 3

TestExpressionSlicePoolFunction · 0.68