class DuckDB::DataChunk

The DuckDB::DataChunk represents a chunk of data for table function output.

During table function execution, data chunks are used to return rows.

Example:

done = false
table_function.init { |_init_info| done = false }

table_function.execute do |func_info, output|
  if done
    output.size = 0  # Signal completion
  else
    # High-level API
    output.set_value(0, 0, 42)        # column 0, row 0, value 42
    output.set_value(1, 0, 'Alice')   # column 1, row 0, value 'Alice'
    output.size = 1
    done = true
  end
end