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

Function PutCreateViewStatement

pkg/sql/ast/pool.go:1619–1636  ·  view source on GitHub ↗

PutCreateViewStatement returns a CreateViewStatement to the pool. It recursively releases the nested query statement.

(stmt *CreateViewStatement)

Source from the content-addressed store, hash-verified

1617// PutCreateViewStatement returns a CreateViewStatement to the pool.
1618// It recursively releases the nested query statement.
1619func PutCreateViewStatement(stmt *CreateViewStatement) {
1620 if stmt == nil {
1621 return
1622 }
1623
1624 // Recursively release the nested SELECT query
1625 releaseStatement(stmt.Query)
1626
1627 stmt.OrReplace = false
1628 stmt.Temporary = false
1629 stmt.IfNotExists = false
1630 stmt.Name = ""
1631 stmt.Columns = stmt.Columns[:0]
1632 stmt.Query = nil
1633 stmt.WithOption = ""
1634
1635 createViewStmtPool.Put(stmt)
1636}
1637
1638// GetCreateMaterializedViewStatement gets a CreateMaterializedViewStatement from the pool.
1639func GetCreateMaterializedViewStatement() *CreateMaterializedViewStatement {

Callers 2

releaseStatementFunction · 0.85

Calls 2

releaseStatementFunction · 0.85
PutMethod · 0.80

Tested by 1