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

Method Insert_stmt

internal/engine/sqlite/parser/sqlite_parser.go:15630–16026  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15628}
15629
15630func (p *SQLiteParser) Insert_stmt() (localctx IInsert_stmtContext) {
15631 localctx = NewInsert_stmtContext(p, p.GetParserRuleContext(), p.GetState())
15632 p.EnterRule(localctx, 74, SQLiteParserRULE_insert_stmt)
15633 var _la int
15634
15635 p.EnterOuterAlt(localctx, 1)
15636 p.SetState(1142)
15637 p.GetErrorHandler().Sync(p)
15638 if p.HasError() {
15639 goto errorExit
15640 }
15641 _la = p.GetTokenStream().LA(1)
15642
15643 if _la == SQLiteParserWITH_ {
15644 {
15645 p.SetState(1141)
15646 p.With_clause()
15647 }
15648
15649 }
15650 p.SetState(1149)
15651 p.GetErrorHandler().Sync(p)
15652 if p.HasError() {
15653 goto errorExit
15654 }
15655
15656 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 148, p.GetParserRuleContext()) {
15657 case 1:
15658 {
15659 p.SetState(1144)
15660 p.Match(SQLiteParserINSERT_)
15661 if p.HasError() {
15662 // Recognition error - abort rule
15663 goto errorExit
15664 }
15665 }
15666
15667 case 2:
15668 {
15669 p.SetState(1145)
15670 p.Match(SQLiteParserREPLACE_)
15671 if p.HasError() {
15672 // Recognition error - abort rule
15673 goto errorExit
15674 }
15675 }
15676
15677 case 3:
15678 {
15679 p.SetState(1146)
15680 p.Match(SQLiteParserINSERT_)
15681 if p.HasError() {
15682 // Recognition error - abort rule
15683 goto errorExit
15684 }
15685 }
15686 {
15687 p.SetState(1147)

Callers 2

Sql_stmtMethod · 0.95
Create_trigger_stmtMethod · 0.95

Calls 12

With_clauseMethod · 0.95
Schema_nameMethod · 0.95
Table_nameMethod · 0.95
Table_aliasMethod · 0.95
Column_nameMethod · 0.95
exprMethod · 0.95
Select_stmtMethod · 0.95
Upsert_clauseMethod · 0.95
Returning_clauseMethod · 0.95
NewInsert_stmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected