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

Method Pragma_stmt

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

Source from the content-addressed store, hash-verified

16752}
16753
16754func (p *SQLiteParser) Pragma_stmt() (localctx IPragma_stmtContext) {
16755 localctx = NewPragma_stmtContext(p, p.GetParserRuleContext(), p.GetState())
16756 p.EnterRule(localctx, 78, SQLiteParserRULE_pragma_stmt)
16757 p.EnterOuterAlt(localctx, 1)
16758 {
16759 p.SetState(1261)
16760 p.Match(SQLiteParserPRAGMA_)
16761 if p.HasError() {
16762 // Recognition error - abort rule
16763 goto errorExit
16764 }
16765 }
16766 p.SetState(1265)
16767 p.GetErrorHandler().Sync(p)
16768
16769 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 167, p.GetParserRuleContext()) == 1 {
16770 {
16771 p.SetState(1262)
16772 p.Schema_name()
16773 }
16774 {
16775 p.SetState(1263)
16776 p.Match(SQLiteParserDOT)
16777 if p.HasError() {
16778 // Recognition error - abort rule
16779 goto errorExit
16780 }
16781 }
16782
16783 } else if p.HasError() { // JIM
16784 goto errorExit
16785 }
16786 {
16787 p.SetState(1267)
16788 p.Pragma_name()
16789 }
16790 p.SetState(1274)
16791 p.GetErrorHandler().Sync(p)
16792 if p.HasError() {
16793 goto errorExit
16794 }
16795 switch p.GetTokenStream().LA(1) {
16796 case SQLiteParserASSIGN:
16797 {
16798 p.SetState(1268)
16799 p.Match(SQLiteParserASSIGN)
16800 if p.HasError() {
16801 // Recognition error - abort rule
16802 goto errorExit
16803 }
16804 }
16805 {
16806 p.SetState(1269)
16807 p.Pragma_value()
16808 }
16809
16810 case SQLiteParserOPEN_PAR:
16811 {

Callers 1

Sql_stmtMethod · 0.95

Calls 6

Schema_nameMethod · 0.95
Pragma_nameMethod · 0.95
Pragma_valueMethod · 0.95
NewPragma_stmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected