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

Method parseGrantOptions

parser/parse_system.go:1265–1275  ·  view source on GitHub ↗
(_ Pos)

Source from the content-addressed store, hash-verified

1263}
1264
1265func (p *Parser) parseGrantOptions(_ Pos) ([]string, error) {
1266 options := make([]string, 0)
1267 for p.matchKeyword(KeywordWith) {
1268 option, err := p.parseGrantOption(p.Pos())
1269 if err != nil {
1270 return nil, err
1271 }
1272 options = append(options, option)
1273 }
1274 return options, nil
1275}
1276
1277func (p *Parser) parseGrantOption(_ Pos) (string, error) {
1278 if err := p.expectKeyword(KeywordWith); err != nil {

Callers 1

Calls 3

matchKeywordMethod · 0.95
parseGrantOptionMethod · 0.95
PosMethod · 0.95

Tested by

no test coverage detected