Skip to main content

Scope

Trait Scope 

Source
pub trait Scope {
    // Required method
    fn lookup(&self, table: &str, column: &str) -> Option<DataType>;
}
Expand description

Closure-based column scope. The analyzer passes a closure that resolves (table, column) to a DataType, returning None if the column doesn’t exist in the active scope. Callers wire this to the schema registry (production) or a static map (tests).

Required Methods§

Source

fn lookup(&self, table: &str, column: &str) -> Option<DataType>

Implementors§

Source§

impl<F> Scope for F
where F: Fn(&str, &str) -> Option<DataType>,