Skip to content

Commit 6bbddcb

Browse files
committed
Update chdb.h
1 parent 102e19d commit 6bbddcb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

chdbstable/chdb.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,23 @@ struct CHDB_EXPORT local_result
2020
uint64_t bytes_read;
2121
};
2222

23+
struct CHDB_EXPORT local_result_v2
24+
{
25+
char * buf;
26+
size_t len;
27+
void * _vec; // std::vector<char> *, for freeing
28+
double elapsed;
29+
uint64_t rows_read;
30+
uint64_t bytes_read;
31+
char * error_message;
32+
};
33+
2334
CHDB_EXPORT struct local_result * query_stable(int argc, char ** argv);
2435
CHDB_EXPORT void free_result(struct local_result * result);
2536

37+
CHDB_EXPORT struct local_result_v2 * query_stable_v2(int argc, char ** argv);
38+
CHDB_EXPORT void free_result_v2(struct local_result_v2 * result);
39+
2640
#ifdef __cplusplus
2741
}
2842
#endif

0 commit comments

Comments
 (0)