MCPcopy Create free account
hub / github.com/araddon/qlbridge / parseShowFromTable

Method parseShowFromTable

rel/parse_sql.go:2074–2089  ·  view source on GitHub ↗
(req *SqlShow)

Source from the content-addressed store, hash-verified

2072}
2073
2074func (m *Sqlbridge) parseShowFromTable(req *SqlShow) error {
2075
2076 switch m.Cur().T {
2077 case lex.TokenFrom, lex.TokenIN:
2078 m.Next() // Consume {FROM | IN}
2079 default:
2080 // FROM OR IN are required for this statement
2081 return m.ErrMsg("Expected { FROM | IN } for SHOW")
2082 }
2083
2084 if m.Cur().T != lex.TokenIdentity {
2085 return m.ErrMsg("Expected { FROM | IN } IDENTITY for SHOW")
2086 }
2087 req.Identity = m.Next().V
2088 return nil
2089}
2090
2091func (m *Sqlbridge) parseShowFromDatabase(req *SqlShow) error {
2092

Callers 1

parseShowMethod · 0.95

Calls 3

CurMethod · 0.65
NextMethod · 0.65
ErrMsgMethod · 0.65

Tested by

no test coverage detected