Function duckdb_register_scalar_function

Source
pub unsafe extern "C" fn duckdb_register_scalar_function(
    con: duckdb_connection,
    scalar_function: duckdb_scalar_function,
) -> duckdb_state
Expand description

Register the scalar function object within the given connection.

The function requires at least a name, a function and a return type.

If the function is incomplete or a function with this name already exists DuckDBError is returned.

@param con The connection to register it in. @param scalar_function The function pointer @return Whether or not the registration was successful.