Client APIs
API Reference Overview
Fully execute a pending query result, returning the final query result.  
If duckdb_pending_execute_task has been called until DUCKDB_PENDING_RESULT_READY was returned, this will return fast.
Otherwise, all remaining tasks must be executed first.  
Note that the result must be freed with `duckdb_destroy_result`.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_state duckdb_execute_pending(
duckdb_pending_result pending_result,
duckdb_result *out_result
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `pending_result`: The pending result to execute.
* `out_result`: The result object.  
###### Return Value {#docs:api:c:api::return-value}  
`DuckDBSuccess` on success or `DuckDBError` on failure.  
<br>