pub unsafe extern "C" fn duckdb_column_data(
    result: *mut duckdb_result,
    col: idx_t
) -> *mut c_void
Expand description

DEPRECATED**: Prefer using duckdb_result_get_chunk instead.

Returns the data of a specific column of a result in columnar format.

The function returns a dense array which contains the result data. The exact type stored in the array depends on the corresponding duckdb_type (as provided by duckdb_column_type). For the exact type by which the data should be accessed, see the comments in the types section or the DUCKDB_TYPE enum.

For example, for a column of type DUCKDB_TYPE_INTEGER, rows can be accessed in the following manner:

int32_t *data = (int32_t *) duckdb_column_data(&result, 0);
printf("Data for row %d: %d\n", row, data[row]);

result: The result object to fetch the column data from. col: The column index. returns: The column data of the specified column.