Function libduckdb_sys::duckdb_create_union_type

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

Creates a UNION type from the passed types array. The resulting type should be destroyed with duckdb_destroy_logical_type.

types: The array of types that the union should consist of. type_amount: The size of the types array. returns: The logical type.