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

Method tryParseWhereClause

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

Source from the content-addressed store, hash-verified

464}
465
466func (p *Parser) tryParseWhereClause(pos Pos) (*WhereClause, error) {
467 if !p.matchKeyword(KeywordWhere) {
468 return nil, nil
469 }
470 return p.parseWhereClause(pos)
471}
472
473func (p *Parser) parseWhereClause(pos Pos) (*WhereClause, error) {
474 if err := p.expectKeyword(KeywordWhere); err != nil {

Callers 2

parseSelectStmtMethod · 0.95
tryParseTTLPolicyMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parseWhereClauseMethod · 0.95

Tested by

no test coverage detected