Skip to main content

ScalarInitFn

Type Alias ScalarInitFn 

Source
pub type ScalarInitFn = unsafe extern "C" fn(info: RawScalarInitInfo);
Expand description

The scalar function init callback signature (DuckDB 1.5.0+).

Called once per thread before execution begins. Use this to allocate per-thread local state via duckdb_scalar_function_init_set_state.

Breaking in 0.18.0: the argument is a RawScalarInitInfo; see ScalarBindFn.