pub unsafe extern "C" fn duckdb_extract_statements(
connection: duckdb_connection,
query: *const c_char,
out_extracted_statements: *mut duckdb_extracted_statements,
) -> idx_t
Expand 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.
@param connection The connection object @param query The SQL query to extract @param out_extracted_statements The resulting extracted statements object @return The number of extracted statements or 0 on failure.