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

Method Savepoint_stmt

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

Source from the content-addressed store, hash-verified

4043}
4044
4045func (p *SQLiteParser) Savepoint_stmt() (localctx ISavepoint_stmtContext) {
4046 localctx = NewSavepoint_stmtContext(p, p.GetParserRuleContext(), p.GetState())
4047 p.EnterRule(localctx, 18, SQLiteParserRULE_savepoint_stmt)
4048 p.EnterOuterAlt(localctx, 1)
4049 {
4050 p.SetState(370)
4051 p.Match(SQLiteParserSAVEPOINT_)
4052 if p.HasError() {
4053 // Recognition error - abort rule
4054 goto errorExit
4055 }
4056 }
4057 {
4058 p.SetState(371)
4059 p.Savepoint_name()
4060 }
4061
4062errorExit:
4063 if p.HasError() {
4064 v := p.GetError()
4065 localctx.SetException(v)
4066 p.GetErrorHandler().ReportError(p, v)
4067 p.GetErrorHandler().Recover(p, v)
4068 p.SetError(nil)
4069 }
4070 p.ExitRule()
4071 return localctx
4072 goto errorExit // Trick to prevent compiler error if the label is not used
4073}
4074
4075// IRelease_stmtContext is an interface to support dynamic dispatch.
4076type IRelease_stmtContext interface {

Callers 1

Sql_stmtMethod · 0.95

Calls 4

Savepoint_nameMethod · 0.95
NewSavepoint_stmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected