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

Function GetDropStatement

pkg/sql/ast/pool.go:1684–1688  ·  view source on GitHub ↗

GetDropStatement gets a DropStatement from the pool.

()

Source from the content-addressed store, hash-verified

1682
1683// GetDropStatement gets a DropStatement from the pool.
1684func GetDropStatement() *DropStatement {
1685 stmt := dropStmtPool.Get().(*DropStatement)
1686 stmt.Names = stmt.Names[:0]
1687 return stmt
1688}
1689
1690// PutDropStatement returns a DropStatement to the pool.
1691func PutDropStatement(stmt *DropStatement) {

Callers 4

TestDropStatementPoolFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 4

TestDropStatementPoolFunction · 0.68