Function libduckdb_sys::duckdb_append_data_chunk

source ·
pub unsafe extern "C" fn duckdb_append_data_chunk(
    appender: duckdb_appender,
    chunk: duckdb_data_chunk
) -> duckdb_state
Expand description

Appends a pre-filled data chunk to the specified appender.

The types of the data chunk must exactly match the types of the table, no casting is performed. If the types do not match or the appender is in an invalid state, DuckDBError is returned. If the append is successful, DuckDBSuccess is returned.

appender: The appender to append to. chunk: The data chunk to append. returns: The return state.