From 9a3060f443648e834db1f778f5d01a5f1b1a42f2 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 20 Aug 2021 10:01:11 +0800 Subject: [PATCH] [TD-5992] add set config interface for connector --- src/client/src/tscSql.c | 4 ++++ src/inc/taos.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index 5f55e1c50d..a985326091 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -50,6 +50,10 @@ static bool validPassword(const char* passwd) { return validImpl(passwd, TSDB_KEY_LEN - 1); } +int taos_set_config(const char *config){ + +} + static SSqlObj *taosConnectImpl(const char *ip, const char *user, const char *pass, const char *auth, const char *db, uint16_t port, void (*fp)(void *, TAOS_RES *, int), void *param, TAOS **taos) { if (taos_init()) { diff --git a/src/inc/taos.h b/src/inc/taos.h index 6fa30737e7..107dbc2826 100644 --- a/src/inc/taos.h +++ b/src/inc/taos.h @@ -71,6 +71,7 @@ typedef struct taosField { DLL_EXPORT int taos_init(); DLL_EXPORT void taos_cleanup(void); DLL_EXPORT int taos_options(TSDB_OPTION option, const void *arg, ...); +DLL_EXPORT int taos_set_config(const char *config); DLL_EXPORT TAOS *taos_connect(const char *ip, const char *user, const char *pass, const char *db, uint16_t port); DLL_EXPORT TAOS *taos_connect_auth(const char *ip, const char *user, const char *auth, const char *db, uint16_t port); DLL_EXPORT void taos_close(TAOS *taos); -- GitLab