Function libduckdb_sys::duckdb_appender_flush

source ยท
pub unsafe extern "C" fn duckdb_appender_flush(
    appender: duckdb_appender,
) -> duckdb_state
Expand description

Flush the appender to the table, forcing the cache of the appender to be cleared. If flushing the data triggers a constraint violation or any other error, then all data is invalidated, and this function returns DuckDBError. It is not possible to append more values. Call duckdb_appender_error to obtain the error message followed by duckdb_appender_destroy to destroy the invalidated appender.

appender: The appender to flush. returns: DuckDBSuccess on success or DuckDBError on failure.