pub unsafe extern "C" fn duckdb_prepare_extracted_statement(
connection: duckdb_connection,
extracted_statements: duckdb_extracted_statements,
index: idx_t,
out_prepared_statement: *mut duckdb_prepared_statement
) -> duckdb_stateExpand description
Prepare an extracted statement.
Note that after calling duckdb_prepare_extracted_statement, the prepared statement should always be destroyed using
duckdb_destroy_prepare, even if the prepare fails.
If the prepare fails, duckdb_prepare_error can be called to obtain the reason why the prepare failed.
connection: The connection object
extracted_statements: The extracted statements object
index: The index of the extracted statement to prepare
out_prepared_statement: The resulting prepared statement object
returns: DuckDBSuccess on success or DuckDBError on failure.