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

Function PutDeleteStatement

pkg/sql/ast/pool.go:614–628  ·  view source on GitHub ↗

PutDeleteStatement returns a DeleteStatement to the pool

(stmt *DeleteStatement)

Source from the content-addressed store, hash-verified

612
613// PutDeleteStatement returns a DeleteStatement to the pool
614func PutDeleteStatement(stmt *DeleteStatement) {
615 if stmt == nil {
616 return
617 }
618
619 // Clean up expressions
620 PutExpression(stmt.Where)
621
622 // Reset fields
623 stmt.Where = nil
624 stmt.TableName = ""
625
626 // Return to pool
627 deleteStmtPool.Put(stmt)
628}
629
630// GetUpdateExpression gets an UpdateExpression from the pool
631func GetUpdateExpression() *UpdateExpression {

Callers 3

releaseStatementFunction · 0.85
TestDeleteStatementPoolFunction · 0.85

Calls 2

PutExpressionFunction · 0.85
PutMethod · 0.80

Tested by 2

TestDeleteStatementPoolFunction · 0.68