MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / isNumericLiteral

Method isNumericLiteral

pkg/sql/parser/expressions.go:352–357  ·  view source on GitHub ↗

isNumericLiteral checks if current token is a numeric literal (handles INT/NUMBER token types)

()

Source from the content-addressed store, hash-verified

350
351// isNumericLiteral checks if current token is a numeric literal (handles INT/NUMBER token types)
352func (p *Parser) isNumericLiteral() bool {
353 if p.currentToken.Token.Type != models.TokenTypeUnknown {
354 return p.currentToken.Token.Type == models.TokenTypeNumber
355 }
356 return false
357}
358
359// isDataTypeKeyword checks if current token is a SQL data type keyword
360func (p *Parser) isDataTypeKeyword() bool {

Callers 10

parseDeleteStatementMethod · 0.95
parseSampleClauseMethod · 0.95
parseFetchClauseMethod · 0.95
parseUpdateStatementMethod · 0.95
parseDataTypeMethod · 0.95
parseCastLikeMethod · 0.95
parseNumericLitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected