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

Method supportsTableFunction

pkg/sql/parser/pivot.go:272–280  ·  view source on GitHub ↗

supportsTableFunction reports whether the current dialect allows function-call style table references in the FROM list — Snowflake (FLATTEN, TABLE, IDENTIFIER, GENERATOR), BigQuery (UNNEST), and PostgreSQL (unnest, generate_series, json_each, ...).

()

Source from the content-addressed store, hash-verified

270// (FLATTEN, TABLE, IDENTIFIER, GENERATOR), BigQuery (UNNEST), and
271// PostgreSQL (unnest, generate_series, json_each, ...).
272func (p *Parser) supportsTableFunction() bool {
273 switch p.dialect {
274 case string(keywords.DialectSnowflake),
275 string(keywords.DialectBigQuery),
276 string(keywords.DialectPostgreSQL):
277 return true
278 }
279 return false
280}
281
282// parseSnowflakeTimeTravel parses the Snowflake time-travel / change-tracking
283// modifier attached to a table reference. The current token must be one of

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected