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

Function GetSelectStatement

pkg/sql/ast/pool.go:654–659  ·  view source on GitHub ↗

GetSelectStatement gets a SelectStatement from the pool

()

Source from the content-addressed store, hash-verified

652
653// GetSelectStatement gets a SelectStatement from the pool
654func GetSelectStatement() *SelectStatement {
655 stmt := selectStmtPool.Get().(*SelectStatement)
656 stmt.Columns = stmt.Columns[:0]
657 stmt.OrderBy = stmt.OrderBy[:0]
658 return stmt
659}
660
661// PutSelectStatement returns a SelectStatement to the pool
662// Uses iterative cleanup via PutExpression to handle deeply nested expressions

Calls 1

GetMethod · 0.45