duckdb_to_arrow_schema

Function duckdb_to_arrow_schema 

Source
pub unsafe extern "C" fn duckdb_to_arrow_schema(
    arrow_options: duckdb_arrow_options,
    types: *mut duckdb_logical_type,
    names: *mut *const c_char,
    column_count: idx_t,
    out_schema: *mut ArrowSchema,
) -> duckdb_error_data
Expand description

Transforms a DuckDB Schema into an Arrow Schema

@param arrow_options The Arrow settings used to produce arrow. @param types The DuckDB logical types for each column in the schema. @param names The names for each column in the schema. @param column_count The number of columns that exist in the schema. @param out_schema The resulting arrow schema. Must be destroyed with out_schema->release(out_schema). @return The error data. Must be destroyed with duckdb_destroy_error_data.