Functionsยง
- alias_
visibility_ warning - Emits a warning for unsupported alias usage in a SQL clause.
- build_
column_ schemas_ with_ constraints - Build column schemas with constraint information from DDL column definitions.
- canonical_
name_ from_ object_ name - Build a CanonicalName from an ObjectName without string round-trips.
- canonical_
type_ from_ data_ type - Convert SQL data type to CanonicalType
- check_
expr_ types - Checks an expression for type mismatches and returns any warnings found.
- classify_
query_ type - Classify the type of a query
- extract_
column_ constraints - Extract constraint info from column options (inline PRIMARY KEY, FOREIGN KEY).
- extract_
simple_ name - extract_
simple_ name_ from_ object_ name - Extract the simple (unqualified) name from an ObjectName.
- extract_
table_ constraints - Extract table-level constraints (composite PRIMARY KEY, FOREIGN KEY, UNIQUE).
- find_
cte_ definition_ span - Finds the span of a CTE definition name in SQL text.
- find_
derived_ table_ alias_ span - Finds the span of a derived table alias in SQL text.
- find_
identifier_ span - Finds the byte offset span of an identifier in SQL text.
- generate_
column_ node_ id - Generate a deterministic column node ID
- generate_
edge_ id - Generate a deterministic edge ID
- generate_
node_ id - Generate a deterministic node ID based on type and name
- generate_
output_ node_ id - Generate a deterministic output node ID scoped to a statement.
- ident_
value - Get the unquoted value from an Ident.
- infer_
expr_ type - Best-effort type inference for SQL expressions.
- is_
quoted_ identifier - is_
simple_ column_ ref - Check if an expression is a simple column reference (no transformation)
- lateral_
alias_ warning - Emits a warning for unsupported lateral column alias usage.
- line_
col_ to_ offset - Calculates the byte offset for a given line and column in SQL text.
- normalize_
schema_ type - Normalizes a schema type string to a canonical type display string.
- parse_
canonical_ name - split_
qualified_ identifiers - unquote_
identifier