duckdb_union_type_member_type

Function duckdb_union_type_member_type 

Source
pub unsafe extern "C" fn duckdb_union_type_member_type(
    type_: duckdb_logical_type,
    index: idx_t,
) -> duckdb_logical_type
Expand description

Retrieves the child type of the given union member at the specified index.

The result must be freed with duckdb_destroy_logical_type.

@param type The logical type object @param index The child index @return The child type of the union member. Must be destroyed with duckdb_destroy_logical_type.