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

Function GetCreateTableStatement

pkg/sql/ast/pool.go:1376–1383  ·  view source on GitHub ↗

============================================================ DDL Statement Pool Functions ============================================================ GetCreateTableStatement gets a CreateTableStatement from the pool.

()

Source from the content-addressed store, hash-verified

1374
1375// GetCreateTableStatement gets a CreateTableStatement from the pool.
1376func GetCreateTableStatement() *CreateTableStatement {
1377 stmt := createTableStmtPool.Get().(*CreateTableStatement)
1378 stmt.Columns = stmt.Columns[:0]
1379 stmt.Constraints = stmt.Constraints[:0]
1380 stmt.Inherits = stmt.Inherits[:0]
1381 stmt.Options = stmt.Options[:0]
1382 return stmt
1383}
1384
1385// PutCreateTableStatement returns a CreateTableStatement to the pool.
1386// It recursively releases any nested expressions (column defaults, check constraints, etc.).

Calls 1

GetMethod · 0.45