Skip to main content

Module normalizer

Module normalizer 

Source
Expand description

Query Normalizer

Normalizes SQL queries for cache key generation by:

  • Replacing literal values with placeholders
  • Normalizing whitespace
  • Extracting table names
  • Computing stable hashes

Structs§

NormalizedQuery
Normalized query representation
QueryNormalizer
Query normalizer for cache key generation

Functions§

extract_tables
Extract tables from SQL without full normalization
quick_fingerprint
Quick fingerprint generation without full normalization