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

Method convertSql_stmtContext

internal/engine/sqlite/convert.go:658–732  ·  view source on GitHub ↗
(n *parser.Sql_stmtContext)

Source from the content-addressed store, hash-verified

656}
657
658func (c *cc) convertSql_stmtContext(n *parser.Sql_stmtContext) ast.Node {
659 if stmt := n.Alter_table_stmt(); stmt != nil {
660 return c.convert(stmt)
661 }
662 if stmt := n.Analyze_stmt(); stmt != nil {
663 return c.convert(stmt)
664 }
665 if stmt := n.Attach_stmt(); stmt != nil {
666 return c.convert(stmt)
667 }
668 if stmt := n.Begin_stmt(); stmt != nil {
669 return c.convert(stmt)
670 }
671 if stmt := n.Commit_stmt(); stmt != nil {
672 return c.convert(stmt)
673 }
674 if stmt := n.Create_index_stmt(); stmt != nil {
675 return c.convert(stmt)
676 }
677 if stmt := n.Create_table_stmt(); stmt != nil {
678 return c.convert(stmt)
679 }
680 if stmt := n.Create_trigger_stmt(); stmt != nil {
681 return c.convert(stmt)
682 }
683 if stmt := n.Create_view_stmt(); stmt != nil {
684 return c.convert(stmt)
685 }
686 if stmt := n.Create_virtual_table_stmt(); stmt != nil {
687 return c.convert(stmt)
688 }
689 if stmt := n.Delete_stmt(); stmt != nil {
690 return c.convert(stmt)
691 }
692 if stmt := n.Delete_stmt_limited(); stmt != nil {
693 return c.convert(stmt)
694 }
695 if stmt := n.Detach_stmt(); stmt != nil {
696 return c.convert(stmt)
697 }
698 if stmt := n.Drop_stmt(); stmt != nil {
699 return c.convert(stmt)
700 }
701 if stmt := n.Insert_stmt(); stmt != nil {
702 return c.convert(stmt)
703 }
704 if stmt := n.Pragma_stmt(); stmt != nil {
705 return c.convert(stmt)
706 }
707 if stmt := n.Reindex_stmt(); stmt != nil {
708 return c.convert(stmt)
709 }
710 if stmt := n.Release_stmt(); stmt != nil {
711 return c.convert(stmt)
712 }
713 if stmt := n.Rollback_stmt(); stmt != nil {
714 return c.convert(stmt)
715 }

Callers 1

convertMethod · 0.95

Calls 15

convertMethod · 0.95
Alter_table_stmtMethod · 0.65
Analyze_stmtMethod · 0.65
Attach_stmtMethod · 0.65
Begin_stmtMethod · 0.65
Commit_stmtMethod · 0.65
Create_index_stmtMethod · 0.65
Create_table_stmtMethod · 0.65
Create_trigger_stmtMethod · 0.65
Create_view_stmtMethod · 0.65
Delete_stmtMethod · 0.65

Tested by

no test coverage detected