Function duckdb_register_aggregate_function

Source
pub unsafe extern "C" fn duckdb_register_aggregate_function(
    con: duckdb_connection,
    aggregate_function: duckdb_aggregate_function,
) -> duckdb_state
Expand description

Register the aggregate function object within the given connection.

The function requires at least a name, functions 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. @return Whether or not the registration was successful.