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

Method Upsert_clause

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

Source from the content-addressed store, hash-verified

16333}
16334
16335func (p *SQLiteParser) Upsert_clause() (localctx IUpsert_clauseContext) {
16336 localctx = NewUpsert_clauseContext(p, p.GetParserRuleContext(), p.GetState())
16337 p.EnterRule(localctx, 76, SQLiteParserRULE_upsert_clause)
16338 var _la int
16339
16340 p.EnterOuterAlt(localctx, 1)
16341 {
16342 p.SetState(1214)
16343 p.Match(SQLiteParserON_)
16344 if p.HasError() {
16345 // Recognition error - abort rule
16346 goto errorExit
16347 }
16348 }
16349 {
16350 p.SetState(1215)
16351 p.Match(SQLiteParserCONFLICT_)
16352 if p.HasError() {
16353 // Recognition error - abort rule
16354 goto errorExit
16355 }
16356 }
16357 p.SetState(1230)
16358 p.GetErrorHandler().Sync(p)
16359 if p.HasError() {
16360 goto errorExit
16361 }
16362 _la = p.GetTokenStream().LA(1)
16363
16364 if _la == SQLiteParserOPEN_PAR {
16365 {
16366 p.SetState(1216)
16367 p.Match(SQLiteParserOPEN_PAR)
16368 if p.HasError() {
16369 // Recognition error - abort rule
16370 goto errorExit
16371 }
16372 }
16373 {
16374 p.SetState(1217)
16375 p.Indexed_column()
16376 }
16377 p.SetState(1222)
16378 p.GetErrorHandler().Sync(p)
16379 if p.HasError() {
16380 goto errorExit
16381 }
16382 _la = p.GetTokenStream().LA(1)
16383
16384 for _la == SQLiteParserCOMMA {
16385 {
16386 p.SetState(1218)
16387 p.Match(SQLiteParserCOMMA)
16388 if p.HasError() {
16389 // Recognition error - abort rule
16390 goto errorExit
16391 }
16392 }

Callers 1

Insert_stmtMethod · 0.95

Calls 7

Indexed_columnMethod · 0.95
exprMethod · 0.95
Column_nameMethod · 0.95
Column_name_listMethod · 0.95
NewUpsert_clauseContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected