pub fn analyze(
config: Config,
filename: impl Into<String>,
sql: impl Into<String>,
cache: DbCache,
) -> Result<AnalysisOutcome<ReportFinding>, AnalysisError>Expand description
Analyze one migration using a validated cache and return immutable findings, confidence, and evidence. The helper owns the mutable state so callers cannot accidentally bypass cache validation or reuse state across unrelated analyses.