duckdb_execute_prepared

Function duckdb_execute_prepared 

Source
pub unsafe extern "C" fn duckdb_execute_prepared(
    prepared_statement: duckdb_prepared_statement,
    out_result: *mut duckdb_result,
) -> duckdb_state
Expand description

Executes the prepared statement with the given bound parameters, and returns a materialized query result.

This method can be called multiple times for each prepared statement, and the parameters can be modified between calls to this function.

Note that the result must be freed with duckdb_destroy_result.

@param prepared_statement The prepared statement to execute. @param out_result The query result. @return DuckDBSuccess on success or DuckDBError on failure.