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

Method tryParsePrewhereClause

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

Source from the content-addressed store, hash-verified

443}
444
445func (p *Parser) tryParsePrewhereClause(pos Pos) (*PrewhereClause, error) {
446 if !p.matchKeyword(KeywordPrewhere) {
447 return nil, nil
448 }
449 return p.parsePrewhereClause(pos)
450}
451func (p *Parser) parsePrewhereClause(pos Pos) (*PrewhereClause, error) {
452 if err := p.expectKeyword(KeywordPrewhere); err != nil {
453 return nil, err

Callers 1

parseSelectStmtMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parsePrewhereClauseMethod · 0.95

Tested by

no test coverage detected