Function duckdb_register_table_function

Source
pub unsafe extern "C" fn duckdb_register_table_function(
    con: duckdb_connection,
    function: duckdb_table_function,
) -> duckdb_state
Expand description

Register the table function object within the given connection.

The function requires at least a name, a bind function, an init function and a main function.

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 function The function pointer @return Whether or not the registration was successful.