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

Method parseUUID

parser/parser_common.go:177–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175}
176
177func (p *Parser) parseUUID() (*UUID, error) {
178 if err := p.expectKeyword(KeywordUuid); err != nil {
179 return nil, err
180 }
181
182 uuidString, err := p.parseString(p.Pos())
183 if err != nil {
184 return nil, err
185 }
186 return &UUID{
187 Value: uuidString,
188 }, nil
189}
190
191func (p *Parser) tryParseUUID() (*UUID, error) {
192 if !p.matchKeyword(KeywordUuid) {

Callers 1

tryParseUUIDMethod · 0.95

Calls 3

expectKeywordMethod · 0.95
parseStringMethod · 0.95
PosMethod · 0.95

Tested by

no test coverage detected