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

Method Update_stmt

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

Source from the content-addressed store, hash-verified

21522}
21523
21524func (p *SQLiteParser) Update_stmt() (localctx IUpdate_stmtContext) {
21525 localctx = NewUpdate_stmtContext(p, p.GetParserRuleContext(), p.GetState())
21526 p.EnterRule(localctx, 106, SQLiteParserRULE_update_stmt)
21527 var _la int
21528
21529 p.EnterOuterAlt(localctx, 1)
21530 p.SetState(1634)
21531 p.GetErrorHandler().Sync(p)
21532 if p.HasError() {
21533 goto errorExit
21534 }
21535 _la = p.GetTokenStream().LA(1)
21536
21537 if _la == SQLiteParserWITH_ {
21538 {
21539 p.SetState(1633)
21540 p.With_clause()
21541 }
21542
21543 }
21544 {
21545 p.SetState(1636)
21546 p.Match(SQLiteParserUPDATE_)
21547 if p.HasError() {
21548 // Recognition error - abort rule
21549 goto errorExit
21550 }
21551 }
21552 p.SetState(1639)
21553 p.GetErrorHandler().Sync(p)
21554
21555 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 239, p.GetParserRuleContext()) == 1 {
21556 {
21557 p.SetState(1637)
21558 p.Match(SQLiteParserOR_)
21559 if p.HasError() {
21560 // Recognition error - abort rule
21561 goto errorExit
21562 }
21563 }
21564 {
21565 p.SetState(1638)
21566 _la = p.GetTokenStream().LA(1)
21567
21568 if !(_la == SQLiteParserABORT_ || ((int64((_la-74)) & ^0x3f) == 0 && ((int64(1)<<(_la-74))&19140298416325121) != 0)) {
21569 p.GetErrorHandler().RecoverInline(p)
21570 } else {
21571 p.GetErrorHandler().ReportMatch(p)
21572 p.Consume()
21573 }
21574 }
21575
21576 } else if p.HasError() { // JIM
21577 goto errorExit
21578 }
21579 {
21580 p.SetState(1641)
21581 p.Qualified_table_name()

Callers 2

Sql_stmtMethod · 0.95
Create_trigger_stmtMethod · 0.95

Calls 9

With_clauseMethod · 0.95
Qualified_table_nameMethod · 0.95
Column_nameMethod · 0.95
Column_name_listMethod · 0.95
exprMethod · 0.95
Returning_clauseMethod · 0.95
NewUpdate_stmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected