@@ -866,8 +866,8 @@ Returns the number of rows present in the result object.
866866* @return The number of rows present in the result object.
867867*/
868868DUCKDB_API idx_t duckdb_row_count (duckdb_result * result );
869- #endif
870869
870+ #endif
871871/*!
872872Returns the number of rows changed by the query stored in the result. This is relevant only for INSERT/UPDATE/DELETE
873873queries. For other queries the rows_changed will be 0.
@@ -898,9 +898,7 @@ printf("Data for row %d: %d\n", row, data[row]);
898898* @return The column data of the specified column.
899899*/
900900DUCKDB_API void * duckdb_column_data (duckdb_result * result , idx_t col );
901- #endif
902901
903- #ifndef DUCKDB_API_NO_DEPRECATED
904902/*!
905903**DEPRECATED**: Prefer using `duckdb_result_get_chunk` instead.
906904
@@ -923,8 +921,8 @@ if (nullmask[row]) {
923921* @return The nullmask of the specified column.
924922*/
925923DUCKDB_API bool * duckdb_nullmask_data (duckdb_result * result , idx_t col );
926- #endif
927924
925+ #endif
928926/*!
929927Returns the error message contained within the result. The error is only set if `duckdb_query` returns `DuckDBError`.
930928
@@ -990,6 +988,7 @@ Returns the number of data chunks present in the result.
990988*/
991989DUCKDB_API idx_t duckdb_result_chunk_count (duckdb_result result );
992990
991+ #endif
993992/*!
994993Returns the return_type of the given result, or DUCKDB_RETURN_TYPE_INVALID on error
995994
@@ -998,7 +997,6 @@ Returns the return_type of the given result, or DUCKDB_RETURN_TYPE_INVALID on er
998997*/
999998DUCKDB_API duckdb_result_type duckdb_result_return_type (duckdb_result result );
1000999
1001- #endif
10021000//===--------------------------------------------------------------------===//
10031001// Safe Fetch Functions
10041002//===--------------------------------------------------------------------===//
@@ -1663,8 +1661,8 @@ Note that the result must be freed with `duckdb_destroy_result`.
16631661*/
16641662DUCKDB_API duckdb_state duckdb_execute_prepared_streaming (duckdb_prepared_statement prepared_statement ,
16651663 duckdb_result * out_result );
1666- #endif
16671664
1665+ #endif
16681666//===--------------------------------------------------------------------===//
16691667// Extract Statements
16701668//===--------------------------------------------------------------------===//
@@ -1754,8 +1752,8 @@ Note that after calling `duckdb_pending_prepared_streaming`, the pending result
17541752*/
17551753DUCKDB_API duckdb_state duckdb_pending_prepared_streaming (duckdb_prepared_statement prepared_statement ,
17561754 duckdb_pending_result * out_result );
1757- #endif
17581755
1756+ #endif
17591757/*!
17601758Closes the pending result and de-allocates all memory allocated for the result.
17611759
@@ -4038,8 +4036,8 @@ It is not known beforehand how many chunks will be returned by this result.
40384036* @return The resulting data chunk. Returns `NULL` if the result has an error.
40394037*/
40404038DUCKDB_API duckdb_data_chunk duckdb_stream_fetch_chunk (duckdb_result result );
4041- #endif
40424039
4040+ #endif
40434041/*!
40444042Fetches a data chunk from a duckdb_result. This function should be called repeatedly until the result is exhausted.
40454043
0 commit comments