Expand description
Walk a parsed statement and produce its Scope.
Resolution is one pass: every FROM / JOIN reference adds a binding under both its alias (if present) and its bare table name. Subsequent lookups by either form resolve to the same row.
Functions§
- resolve
- Resolve every statement in
stmts. Returns oneScopeper statement, in matching order, so callers can index by statement position. - resolve_
with_ source - Resolve as above, but use
sourceto populateScope.cte_columnswith the projection column names declared by each CTE body’s outer SELECT. Best-effort – subqueries / function calls /*show up as empty Vecs.