pub unsafe extern "C" fn duckdb_extract_statements(
connection: duckdb_connection,
query: *const c_char,
out_extracted_statements: *mut duckdb_extracted_statements,
) -> idx_tExpand description
Extract all statements from a query. Note that after calling duckdb_extract_statements, the extracted statements
should always be destroyed using duckdb_destroy_extracted, even if no statements were extracted.
If the extract fails, duckdb_extract_statements_error can be called to obtain the reason why the extract failed.
history:
- stable: v0.7.0
@param connection The connection object @param query The SQL query to extract @param out_extracted_statements The resulting extracted statements object @return idx_t