pub unsafe extern "C" fn duckdb_result_error(
    result: *mut duckdb_result
) -> *const c_char
Expand description

Returns the error message contained within the result. The error is only set if duckdb_query returns DuckDBError.

The result of this function must not be freed. It will be cleaned up when duckdb_destroy_result is called.

result: The result object to fetch the error from. returns: The error of the result.