MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / convertDropTableStmt

Method convertDropTableStmt

internal/engine/dolphin/convert.go:382–388  ·  view source on GitHub ↗
(n *pcast.DropTableStmt)

Source from the content-addressed store, hash-verified

380}
381
382func (c *cc) convertDropTableStmt(n *pcast.DropTableStmt) ast.Node {
383 drop := &ast.DropTableStmt{IfExists: n.IfExists}
384 for _, name := range n.Tables {
385 drop.Tables = append(drop.Tables, parseTableName(name))
386 }
387 return drop
388}
389
390func (c *cc) convertRenameTableStmt(n *pcast.RenameTableStmt) ast.Node {
391 list := &ast.List{Items: []ast.Node{}}

Callers 1

convertMethod · 0.95

Calls 1

parseTableNameFunction · 0.70

Tested by

no test coverage detected