Client APIs
API Reference Overview
Creates a `duckdb_logical_type` from a primitive type.
The resulting logical type must be destroyed with `duckdb_destroy_logical_type`.  
Returns an invalid logical type, if type is: `DUCKDB_TYPE_INVALID`, `DUCKDB_TYPE_DECIMAL`, `DUCKDB_TYPE_ENUM`,
`DUCKDB_TYPE_LIST`, `DUCKDB_TYPE_STRUCT`, `DUCKDB_TYPE_MAP`, `DUCKDB_TYPE_ARRAY`, or `DUCKDB_TYPE_UNION`.  
###### Syntax {#docs:api:c:types::syntax}  
```c
duckdb_logical_type duckdb_create_logical_type(
duckdb_type type
);
```  
###### Parameters {#docs:api:c:types::parameters}  
* `type`: The primitive type to create.  
###### Return Value {#docs:api:c:types::return-value}  
The logical type.  
<br>