Skip to main content

Module registry

Module registry 

Source
Expand description

Global function registry with runtime registration support.

Uses a OnceLock<RwLock<HashMap>> so that built-in functions are loaded at startup and user-defined functions (UDFs) can be added at runtime without sacrificing thread safety.

Functionsยง

init_registry
Initialise the registry with a set of built-in functions.
is_aggregate
Returns true when name is a known aggregate function.
is_known_function
Returns true when name is a known function of any kind.
lookup_function
Look up a function by name (case-insensitive).
lookup_function_for_dialect
Look up a function by name, filtering by dialect.
register_function
Register a single function at runtime (e.g. a user-defined function).