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

Method Sql_stmt

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

Source from the content-addressed store, hash-verified

2449}
2450
2451func (p *SQLiteParser) Sql_stmt() (localctx ISql_stmtContext) {
2452 localctx = NewSql_stmtContext(p, p.GetParserRuleContext(), p.GetState())
2453 p.EnterRule(localctx, 4, SQLiteParserRULE_sql_stmt)
2454 var _la int
2455
2456 p.EnterOuterAlt(localctx, 1)
2457 p.SetState(267)
2458 p.GetErrorHandler().Sync(p)
2459 if p.HasError() {
2460 goto errorExit
2461 }
2462 _la = p.GetTokenStream().LA(1)
2463
2464 if _la == SQLiteParserEXPLAIN_ {
2465 {
2466 p.SetState(262)
2467 p.Match(SQLiteParserEXPLAIN_)
2468 if p.HasError() {
2469 // Recognition error - abort rule
2470 goto errorExit
2471 }
2472 }
2473 p.SetState(265)
2474 p.GetErrorHandler().Sync(p)
2475 if p.HasError() {
2476 goto errorExit
2477 }
2478 _la = p.GetTokenStream().LA(1)
2479
2480 if _la == SQLiteParserQUERY_ {
2481 {
2482 p.SetState(263)
2483 p.Match(SQLiteParserQUERY_)
2484 if p.HasError() {
2485 // Recognition error - abort rule
2486 goto errorExit
2487 }
2488 }
2489 {
2490 p.SetState(264)
2491 p.Match(SQLiteParserPLAN_)
2492 if p.HasError() {
2493 // Recognition error - abort rule
2494 goto errorExit
2495 }
2496 }
2497
2498 }
2499
2500 }
2501 p.SetState(293)
2502 p.GetErrorHandler().Sync(p)
2503 if p.HasError() {
2504 goto errorExit
2505 }
2506
2507 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 7, p.GetParserRuleContext()) {
2508 case 1:

Callers 1

Sql_stmt_listMethod · 0.95

Calls 15

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

Tested by

no test coverage detected