quackdb_internal::ffi

Function duckdb_query_arrow_error

Source
pub unsafe extern "C" fn duckdb_query_arrow_error(
    result: *mut _duckdb_arrow,
) -> *const i8
Expand description

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

The error message should not be freed. It will be de-allocated when duckdb_destroy_arrow is called.

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