MCPcopy Create free account
hub / github.com/donatj/sqlread / parseShowTables

Method parseShowTables

query.go:84–98  ·  view source on GitHub ↗
(p *Parser)

Source from the content-addressed store, hash-verified

82}
83
84func (q *QueryParser) parseShowTables(p *Parser) parseState {
85 x, ok := p.scan()
86 if !ok {
87 p.errorUnexpectedEOF()
88 return nil
89 }
90 if !isOfAny(x, TSemi) {
91 p.errorUnexpectedLex(x, TSemi)
92 return nil
93 }
94
95 q.Tree.ShowTables++
96
97 return q.ParseStart
98}
99
100func (q *QueryParser) parseShowColumns(p *Parser) parseState {
101 x, ok := p.scan()

Callers

nothing calls this directly

Calls 4

isOfAnyFunction · 0.85
scanMethod · 0.80
errorUnexpectedEOFMethod · 0.80
errorUnexpectedLexMethod · 0.80

Tested by

no test coverage detected