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

Method matchOneOfKeywords

parser/parser_common.go:71–78  ·  view source on GitHub ↗
(keywords ...string)

Source from the content-addressed store, hash-verified

69}
70
71func (p *Parser) matchOneOfKeywords(keywords ...string) bool {
72 for _, keyword := range keywords {
73 if p.matchKeyword(keyword) {
74 return true
75 }
76 }
77 return false
78}
79
80func (p *Parser) expectKeyword(keyword string) error {
81 if !p.matchKeyword(keyword) {

Callers 12

tryParseRefreshExprMethod · 0.95
parseHostClauseMethod · 0.95
parseOptionalClausesMethod · 0.95
parserDropUserOrRoleMethod · 0.95
parsePrivilegeAlterMethod · 0.95
parsePrivilegeCreateMethod · 0.95
parsePrivilegeDropMethod · 0.95
parsePrivilegeShowMethod · 0.95
parsePrivilegeSystemMethod · 0.95
parsePrivilegeClauseMethod · 0.95
parseDDLMethod · 0.95

Calls 1

matchKeywordMethod · 0.95

Tested by

no test coverage detected