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

Method pivotDialectAllowed

pkg/sql/parser/pivot.go:71–75  ·  view source on GitHub ↗

pivotDialectAllowed reports whether PIVOT/UNPIVOT is a recognized clause for the parser's current dialect. PIVOT/UNPIVOT are SQL Server, Oracle, and Snowflake extensions; in other dialects the words must remain valid identifiers.

()

Source from the content-addressed store, hash-verified

69// and Snowflake extensions; in other dialects the words must remain valid
70// identifiers.
71func (p *Parser) pivotDialectAllowed() bool {
72 return p.dialect == string(keywords.DialectSQLServer) ||
73 p.dialect == string(keywords.DialectOracle) ||
74 p.dialect == string(keywords.DialectSnowflake)
75}
76
77// isPivotKeyword returns true if the current token is the contextual PIVOT
78// isQualifyKeyword returns true if the current token is the Snowflake /

Callers 2

isPivotKeywordMethod · 0.95
isUnpivotKeywordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected