Interface ISqlNormalizer
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
Reduces provider-generated SQL to a comparable form so that two executions of the same logical query produce the same text.
public interface ISqlNormalizer
Remarks
The two failure modes are not symmetric, and that asymmetry drives every design choice here.
Over-normalizing merges genuinely different statements, which makes a report point at the wrong
SQL: actively misleading. Under-normalizing splits one logical query into several groups, so a
real repeated-query pattern goes unreported: the tool is merely quieter. When in doubt, do less.
See docs/decisions/0005-sql-fingerprints.md.
Methods
- Normalize(string?)
Normalizes a command's text.