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

Method Create_view_stmt

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

Source from the content-addressed store, hash-verified

9217}
9218
9219func (p *SQLiteParser) Create_view_stmt() (localctx ICreate_view_stmtContext) {
9220 localctx = NewCreate_view_stmtContext(p, p.GetParserRuleContext(), p.GetState())
9221 p.EnterRule(localctx, 46, SQLiteParserRULE_create_view_stmt)
9222 var _la int
9223
9224 p.EnterOuterAlt(localctx, 1)
9225 {
9226 p.SetState(712)
9227 p.Match(SQLiteParserCREATE_)
9228 if p.HasError() {
9229 // Recognition error - abort rule
9230 goto errorExit
9231 }
9232 }
9233 p.SetState(714)
9234 p.GetErrorHandler().Sync(p)
9235 if p.HasError() {
9236 goto errorExit
9237 }
9238 _la = p.GetTokenStream().LA(1)
9239
9240 if _la == SQLiteParserTEMP_ || _la == SQLiteParserTEMPORARY_ {
9241 {
9242 p.SetState(713)
9243 _la = p.GetTokenStream().LA(1)
9244
9245 if !(_la == SQLiteParserTEMP_ || _la == SQLiteParserTEMPORARY_) {
9246 p.GetErrorHandler().RecoverInline(p)
9247 } else {
9248 p.GetErrorHandler().ReportMatch(p)
9249 p.Consume()
9250 }
9251 }
9252
9253 }
9254 {
9255 p.SetState(716)
9256 p.Match(SQLiteParserVIEW_)
9257 if p.HasError() {
9258 // Recognition error - abort rule
9259 goto errorExit
9260 }
9261 }
9262 p.SetState(720)
9263 p.GetErrorHandler().Sync(p)
9264
9265 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 83, p.GetParserRuleContext()) == 1 {
9266 {
9267 p.SetState(717)
9268 p.Match(SQLiteParserIF_)
9269 if p.HasError() {
9270 // Recognition error - abort rule
9271 goto errorExit
9272 }
9273 }
9274 {
9275 p.SetState(718)
9276 p.Match(SQLiteParserNOT_)

Callers 1

Sql_stmtMethod · 0.95

Calls 7

Schema_nameMethod · 0.95
View_nameMethod · 0.95
Column_nameMethod · 0.95
Select_stmtMethod · 0.95
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected