MCPcopy Create free account
hub / github.com/bytebase/bytebase / parseSnowflakeAST

Function parseSnowflakeAST

backend/plugin/parser/snowflake/snowflake.go:81–83  ·  view source on GitHub ↗

--------------------------------------------------------------------------- omni-AST-based normalization helpers These replace the deleted legacy ANTLR helpers (NormalizeSnowSQLObjectName / NormalizeSnowSQLObjectNamePart / NormalizeSnowSQLSchemaName), operating on omni's hand-written AST nodes (*om

(statement string)

Source from the content-addressed store, hash-verified

79// returns the resulting *ast.File. It mirrors trino.parseTrinoSQL: a thin
80// wrapper over omniparser.Parse so call sites share one parse entry point.
81func parseSnowflakeAST(statement string) (*omniast.File, error) {
82 return omniparser.Parse(statement)
83}
84
85// normalizeSnowflakeIdentifier returns the canonical (folded) form of an omni
86// Ident, applying the Snowflake identifier-folding rules: an unquoted identifier

Callers 2

parseOmniStatementNodeFunction · 0.85
getQuerySpanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected