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

Method parseIdentAsString

pkg/sql/parser/parser.go:973–979  ·  view source on GitHub ↗

parseIdentAsString parses an identifier and returns its name as a string

()

Source from the content-addressed store, hash-verified

971
972// parseIdentAsString parses an identifier and returns its name as a string
973func (p *Parser) parseIdentAsString() string {
974 ident := p.parseIdent()
975 if ident == nil {
976 return ""
977 }
978 return ident.Name
979}
980
981// parseBareWordAsString parses any word-like token (identifier or keyword) and
982// returns its value as a string. This is used in contexts where arbitrary

Calls 1

parseIdentMethod · 0.95

Tested by

no test coverage detected