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

Method convertDropDatabaseStmt

internal/engine/dolphin/convert.go:943–950  ·  view source on GitHub ↗
(n *pcast.DropDatabaseStmt)

Source from the content-addressed store, hash-verified

941}
942
943func (c *cc) convertDropDatabaseStmt(n *pcast.DropDatabaseStmt) ast.Node {
944 return &ast.DropSchemaStmt{
945 MissingOk: !n.IfExists,
946 Schemas: []*ast.String{
947 NewIdentifier(n.Name.O),
948 },
949 }
950}
951
952func (c *cc) convertDropIndexStmt(n *pcast.DropIndexStmt) ast.Node {
953 return todo(n)

Callers 1

convertMethod · 0.95

Calls 1

NewIdentifierFunction · 0.70

Tested by

no test coverage detected