Skip to main content

no_mistakes_postgres_sql/statement_facts/
keyed_lookups.rs

1/// One duplicate keyed lookup of the same relation within a single statement scope.
2#[derive(Debug, Clone, PartialEq, Eq)]
3pub struct SqlDuplicateKeyedLookupFact {
4    /// Canonical target relation name (e.g. `people` or `public.people`).
5    pub relation: String,
6    /// Human-readable normalized key summary (e.g. `id = n.owner_id`).
7    pub key_display: String,
8    /// 1-based line of the first lookup (rebased to physical source line for embedded SQL).
9    pub first_line: usize,
10    /// 1-based SQL column of the first lookup.
11    pub first_column: usize,
12    /// 1-based line of the duplicate lookup (rebased to physical source line for embedded SQL).
13    pub line: usize,
14    /// 1-based SQL column of the duplicate lookup.
15    pub column: usize,
16}