duckdb_create_union_value

Function duckdb_create_union_value 

Source
pub unsafe extern "C" fn duckdb_create_union_value(
    union_type: duckdb_logical_type,
    tag_index: idx_t,
    value: duckdb_value,
) -> duckdb_value
Expand description

Creates a union value from a union type, a tag index, and a value. Must be destroyed with duckdb_destroy_value.

@param union_type The union type @param tag_index The index of the tag of the union @param value The value of the union for that tag @return The union value, or nullptr, if the parameters are invalid.