Skip to main content

Crate dsl_resolve

Crate dsl_resolve 

Source
Expand description

Name resolution and scope inference for duck-sqllsp.

Given a parsed Statement, build a Scope describing which tables and aliases are visible inside it. Downstream completion + analysis crates consume scopes instead of re-deriving alias maps every time.

Surface stays intentionally small:

  • Scope, Binding – the resolved bindings inside one statement.
  • resolve – resolve every statement in a parsed file.

Re-exports§

pub use binding::Binding;
pub use resolver::resolve;
pub use resolver::resolve_with_source;
pub use scope::Scope;

Modules§

binding
A single FROM / JOIN binding inside a statement.
resolver
Walk a parsed statement and produce its Scope.
scope
The set of bindings visible inside a single statement.