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

Method convertAttach_stmtContext

internal/engine/sqlite/convert.go:102–107  ·  view source on GitHub ↗
(n *parser.Attach_stmtContext)

Source from the content-addressed store, hash-verified

100}
101
102func (c *cc) convertAttach_stmtContext(n *parser.Attach_stmtContext) ast.Node {
103 name := n.Schema_name().GetText()
104 return &ast.CreateSchemaStmt{
105 Name: &name,
106 }
107}
108
109func (c *cc) convertCreate_table_stmtContext(n *parser.Create_table_stmtContext) ast.Node {
110 stmt := &ast.CreateTableStmt{

Callers 1

convertMethod · 0.95

Calls 2

GetTextMethod · 0.80
Schema_nameMethod · 0.65

Tested by

no test coverage detected