quackdb_internal::ffi

Function duckdb_arrow_array_scan

Source
pub unsafe extern "C" fn duckdb_arrow_array_scan(
    connection: *mut _duckdb_connection,
    table_name: *const i8,
    arrow_schema: *mut _duckdb_arrow_schema,
    arrow_array: *mut _duckdb_arrow_array,
    out_stream: *mut *mut _duckdb_arrow_stream,
) -> u32
Expand description

Scans the Arrow array and creates a view with the given name.

connection: The connection on which to execute the scan. table_name: Name of the temporary view to create. arrow_schema: Arrow schema wrapper. arrow_array: Arrow array wrapper. out_stream: Output array stream that wraps around the passed schema, for releasing/deleting once done. returns: DuckDBSuccess on success or DuckDBError on failure.