Skip to main content

FunctionCatalog

Trait FunctionCatalog 

Source
pub trait FunctionCatalog: Send + Sync {
    // Required method
    fn lookup(
        &self,
        dialect: DialectType,
        raw_function_name: &str,
        normalized_name: &str,
    ) -> Option<&[FunctionSignature]>;
}
Expand description

Catalog abstraction for dialect-specific function metadata.

Implementations can be backed by generated files, external crates, or runtime-loaded assets.

Required Methods§

Source

fn lookup( &self, dialect: DialectType, raw_function_name: &str, normalized_name: &str, ) -> Option<&[FunctionSignature]>

Lookup overloads for a function name in a given dialect.

raw_function_name should preserve user query casing. normalized_name should be canonicalized/lowercased by the caller.

Implementors§