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

Method tryParseFormat

parser/parser_common.go:348–353  ·  view source on GitHub ↗
(pos Pos)

Source from the content-addressed store, hash-verified

346}
347
348func (p *Parser) tryParseFormat(pos Pos) (*FormatClause, error) {
349 if !p.matchKeyword(KeywordFormat) {
350 return nil, nil // nolint
351 }
352 return p.parseFormat(pos)
353}
354
355func (p *Parser) parseFormat(pos Pos) (*FormatClause, error) {
356 if err := p.expectKeyword(KeywordFormat); err != nil {

Callers 2

parseSelectStmtMethod · 0.95
parseStmtMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parseFormatMethod · 0.95

Tested by

no test coverage detected