Skip to main content

ScalarBindFn

Type Alias ScalarBindFn 

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

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

Called once during query planning. Use this to inspect arguments and allocate per-query state via duckdb_scalar_function_set_bind_data.

Breaking in 0.18.0: the argument is a RawScalarBindInfo, so that a table function’s bind callback, which DuckDB passes a different struct, cannot be registered here.