Function libduckdb_sys::duckdb_create_struct_type

source ·
pub unsafe extern "C" fn duckdb_create_struct_type(
    member_types: *mut duckdb_logical_type,
    member_names: *mut *const c_char,
    member_count: idx_t
) -> duckdb_logical_type
Expand description

Creates a STRUCT type from the passed member name and type arrays. The resulting type should be destroyed with duckdb_destroy_logical_type.

member_types: The array of types that the struct should consist of. member_names: The array of names that the struct should consist of. member_count: The number of members that were specified for both arrays. returns: The logical type.