Client APIs
API Reference Overview
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.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_pending_state duckdb_pending_execute_task(
duckdb_pending_result pending_result
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `pending_result`: The pending result to execute a task within.  
###### Return Value {#docs:api:c:api::return-value}  
The state of the pending result after the execution.  
<br>