MCPcopy Create free account
hub / github.com/AfterShip/clickhouse-sql-parser / tryParseWithClause

Method tryParseWithClause

parser/parser_query.go:10–15  ·  view source on GitHub ↗
(pos Pos)

Source from the content-addressed store, hash-verified

8)
9
10func (p *Parser) tryParseWithClause(pos Pos) (*WithClause, error) {
11 if !p.matchKeyword(KeywordWith) {
12 return nil, nil
13 }
14 return p.parseWithClause(pos)
15}
16
17func (p *Parser) parseWithClause(pos Pos) (*WithClause, error) {
18 if err := p.expectKeyword(KeywordWith); err != nil {

Callers 2

parseProjectionSelectMethod · 0.95
parseSelectStmtMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parseWithClauseMethod · 0.95

Tested by

no test coverage detected