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

Method isIdentifier

pkg/sql/parser/parser.go:909–911  ·  view source on GitHub ↗

isIdentifier checks if the current token is an identifier. Includes both regular identifiers and double-quoted identifiers. In SQL, double-quoted strings are treated as identifiers (e.g., "column_name").

()

Source from the content-addressed store, hash-verified

907// Includes both regular identifiers and double-quoted identifiers.
908// In SQL, double-quoted strings are treated as identifiers (e.g., "column_name").
909func (p *Parser) isIdentifier() bool {
910 return p.isType(models.TokenTypeIdentifier) || p.isType(models.TokenTypeDoubleQuotedString)
911}
912
913// isStringLiteral checks if the current token is a string literal.
914// Handles all string token subtypes (single-quoted, dollar-quoted, etc.)

Callers 15

parseCreateTableMethod · 0.95
parseMergeStatementMethod · 0.95
parseMergeActionMethod · 0.95
parsePivotAliasMethod · 0.95
parsePivotClauseMethod · 0.95
parseUnpivotClauseMethod · 0.95
parseColumnConstraintMethod · 0.95
parseTableConstraintMethod · 0.95

Calls 1

isTypeMethod · 0.95

Tested by

no test coverage detected