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_state
Expand 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.
@param connection The connection object
@param extracted_statements The extracted statements object
@param index The index of the extracted statement to prepare
@param out_prepared_statement The resulting prepared statement object
@return DuckDBSuccess
on success or DuckDBError
on failure.