Client APIs
API Reference Overview
Creates a struct value from a type and an array of values. Must be destroyed with `duckdb_destroy_value`.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_value duckdb_create_struct_value(
duckdb_logical_type type,
duckdb_value *values
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `type`: The type of the struct
* `values`: The values for the struct fields  
###### Return Value {#docs:api:c:api::return-value}  
The struct value, or nullptr, if any child type is `DUCKDB_TYPE_ANY` or `DUCKDB_TYPE_INVALID`.  
<br>