Skip to main content

Module normalize_identifiers

Module normalize_identifiers 

Source
Expand description

Identifier case and quoting normalization Identifier Normalization Module

This module provides functionality for normalizing identifiers in SQL queries based on dialect-specific rules for case sensitivity and quoting.

Ported from sqlglot’s optimizer/normalize_identifiers.py

Enums§

NormalizationStrategy
Strategy for normalizing identifiers based on dialect rules.

Functions§

get_normalization_strategy
Get the normalization strategy for a dialect
is_case_sensitive
Check if an identifier contains case-sensitive characters based on dialect rules.
normalize_identifier
Normalize a single identifier based on the strategy.
normalize_identifiers
Normalize identifiers in an expression based on dialect rules.