Skip to content

Commit e5dbe11

Browse files
committedApr 7, 2025·
fix: add queryDBexecRest impl
1 parent 456d60e commit e5dbe11

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎tools/taos-tools/src/benchUtil.c

+14
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,20 @@ void closeBenchConn(SBenchConn* conn) {
420420
tmfree(conn);
421421
}
422422

423+
int32_t queryDbExecRest(char *command, char* dbName, int precision,
424+
int iface, int protocol, bool tcp, int sockfd) {
425+
int32_t code = postProceSql(command,
426+
dbName,
427+
precision,
428+
iface,
429+
protocol,
430+
g_arguments->port,
431+
tcp,
432+
sockfd,
433+
NULL);
434+
return code;
435+
}
436+
423437
int32_t queryDbExecCall(SBenchConn *conn, char *command) {
424438
int32_t code = 0;
425439
TAOS_RES *res = taos_query(conn->taos, command);

0 commit comments

Comments
 (0)