/** * sql-normalizer (v3.1) * * Strip literals from SQL to produce a stable template that hashes the same * for "the same query" with different parameters. Used by PlanHistory to * group EXPLAIN snapshots across versions of the same logical query. * * Examples: * SELECT * FROM users WHERE id = 5 * → SELECT * FROM users WHERE id = ? * SELECT a, b FROM t WHERE a IN (1, 2, 3) * → SELECT a, b FROM t WHERE a IN (?, ?, ?) * * Conservative: only replaces literals we can identify with high confidence. */ export interface NormalizedSql { template: string; hash: string; } export declare class SqlNormalizer { /** Normalize and hash SQL. */ static normalize(sql: string): NormalizedSql; /** Just the hash. */ static hash(sql: string): string; } //# sourceMappingURL=sql-normalizer.d.ts.map