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

Method parseFormat

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

Source from the content-addressed store, hash-verified

353}
354
355func (p *Parser) parseFormat(pos Pos) (*FormatClause, error) {
356 if err := p.expectKeyword(KeywordFormat); err != nil {
357 return nil, err
358 }
359 formatIdent, err := p.parseIdent()
360 if err != nil {
361 return nil, err
362 }
363 return &FormatClause{
364 FormatPos: pos,
365 Format: formatIdent,
366 }, nil
367}
368
369func (p *Parser) wrapError(err error) error {
370 if err == nil {

Callers 2

parseInsertStmtMethod · 0.95
tryParseFormatMethod · 0.95

Calls 2

expectKeywordMethod · 0.95
parseIdentMethod · 0.95

Tested by

no test coverage detected