Function duckdb_list_vector_reserve

Source
pub unsafe extern "C" fn duckdb_list_vector_reserve(
    vector: duckdb_vector,
    required_capacity: idx_t,
) -> duckdb_state
Expand description

Sets the total capacity of the underlying child-vector of a list.

After calling this method, you must call duckdb_vector_get_validity and duckdb_vector_get_data to obtain current data and validity pointers

@param vector The list vector. @param required_capacity the total capacity to reserve. @return The duckdb state. Returns DuckDBError if the vector is nullptr.