Client APIs
API Reference Overview
Creates a task state that can be used with duckdb_execute_tasks_state to execute tasks until
`duckdb_finish_execution` is called on the state.  
`duckdb_destroy_state` must be called on the result.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_task_state duckdb_create_task_state(
duckdb_database database
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `database`: The database object to create the task state for  
###### Return Value {#docs:api:c:api::return-value}  
The task state that can be used with duckdb_execute_tasks_state.  
<br>