Skip to main content

param_references

Function param_references 

Source
pub fn param_references<'a>(
    params: impl Iterator<Item = &'a AnalyzedParam>,
) -> AHashSet<String>
Expand description

Every "table.column" reference actually present across a set of analyzed params, keyed on AnalyzedParam::source_relation – the parameter counterpart of crate::overrides::column_references, which does the same job for AnalyzedColumn::source_relation. A param with no single owning relation (IN list, LIKE pattern, literal comparison: source_relation: None) contributes nothing, which is exactly what a qualified column override can never legitimately target either.

Wired into the CLI’s unmatched-override preflight (crate::overrides::unmatched_column_overrides) via scythe-cli’s check_type_overrides_resolve, which chains this alongside column_references into the known set it builds – reusing the existing diagnostic rather than adding a second one (#189’s remainder).