Function libduckdb_sys::duckdb_pending_prepared

source ·
pub unsafe extern "C" fn duckdb_pending_prepared(
    prepared_statement: duckdb_prepared_statement,
    out_result: *mut duckdb_pending_result
) -> duckdb_state
Expand description

Executes the prepared statement with the given bound parameters, and returns a pending result. The pending result represents an intermediate structure for a query that is not yet fully executed. The pending result can be used to incrementally execute a query, returning control to the client between tasks.

Note that after calling duckdb_pending_prepared, the pending result should always be destroyed using duckdb_destroy_pending, even if this function returns DuckDBError.

prepared_statement: The prepared statement to execute. out_result: The pending query result. returns: DuckDBSuccess on success or DuckDBError on failure.