Function libduckdb_sys::duckdb_pending_execute_task

source ·
pub unsafe extern "C" fn duckdb_pending_execute_task(
    pending_result: duckdb_pending_result
) -> duckdb_pending_state
Expand description

Executes a single task within the query, returning whether or not the query is ready.

If this returns DUCKDB_PENDING_RESULT_READY, the duckdb_execute_pending function can be called to obtain the result. If this returns DUCKDB_PENDING_RESULT_NOT_READY, the duckdb_pending_execute_task function should be called again. If this returns DUCKDB_PENDING_ERROR, an error occurred during execution.

The error message can be obtained by calling duckdb_pending_error on the pending_result.

pending_result: The pending result to execute a task within. returns: The state of the pending result after the execution.