MCPcopy
hub / github.com/sqlc-dev/sqlc / convertDrop_stmtContext

Method convertDrop_stmtContext

internal/engine/sqlite/convert.go:254–269  ·  view source on GitHub ↗
(n *parser.Drop_stmtContext)

Source from the content-addressed store, hash-verified

252}
253
254func (c *cc) convertDrop_stmtContext(n *parser.Drop_stmtContext) ast.Node {
255 if n.TABLE_() != nil || n.VIEW_() != nil {
256 name := ast.TableName{
257 Name: identifier(n.Any_name().GetText()),
258 }
259 if n.Schema_name() != nil {
260 name.Schema = n.Schema_name().GetText()
261 }
262
263 return &ast.DropTableStmt{
264 IfExists: n.EXISTS_() != nil,
265 Tables: []*ast.TableName{&name},
266 }
267 }
268 return todo("convertDrop_stmtContext", n)
269}
270
271func (c *cc) convertFuncContext(n *parser.Expr_functionContext) ast.Node {
272 if name, ok := n.Qualified_function_name().(*parser.Qualified_function_nameContext); ok {

Callers 1

convertMethod · 0.95

Calls 8

GetTextMethod · 0.80
identifierFunction · 0.70
todoFunction · 0.70
TABLE_Method · 0.65
VIEW_Method · 0.65
Any_nameMethod · 0.65
Schema_nameMethod · 0.65
EXISTS_Method · 0.65

Tested by

no test coverage detected