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

Function GetLiteralValue

pkg/sql/ast/pool.go:772–774  ·  view source on GitHub ↗

GetLiteralValue gets a LiteralValue from the pool

()

Source from the content-addressed store, hash-verified

770
771// GetLiteralValue gets a LiteralValue from the pool
772func GetLiteralValue() *LiteralValue {
773 return literalValuePool.Get().(*LiteralValue)
774}
775
776// PutLiteralValue returns a LiteralValue to the pool
777func PutLiteralValue(lit *LiteralValue) {

Callers 5

TestLiteralValuePoolingFunction · 0.85
TestLiteralValuePoolFunction · 0.85
TestPoolReuseFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 5

TestLiteralValuePoolingFunction · 0.68
TestLiteralValuePoolFunction · 0.68
TestPoolReuseFunction · 0.68