Expand description
Smart function completions for SQL.
This module provides function completion items with full signatures, return types, and context-aware filtering based on clause type.
§Performance
Function completion items are pre-computed and cached at startup using
LazyLock. The cache contains one CompletionItem per SQL function (450+).
On each completion request, we filter and clone items from the cache,
avoiding the cost of re-computing signatures and formatting strings.
Structs§
- Function
Completion Context - Context for function completion filtering and scoring.
Functions§
- function_
return_ type_ display - Returns the return type display string for a function, if known.
- function_
to_ completion_ item - Converts a function signature to a completion item.
- get_
function_ completions - Gets function completions filtered and scored by context.
- is_
aggregate - Returns true if the function is an aggregate function.
- is_
window - Returns true if the function is a window function.