test: finish 1-insert/influxdb_line_taosc_insert.py
This commit is contained in:
parent
0418e6c00f
commit
990abaaab1
|
@ -95,9 +95,13 @@ class TDCom:
|
||||||
stb_list = map(lambda x: x[0], res_row_list)
|
stb_list = map(lambda x: x[0], res_row_list)
|
||||||
for stb in stb_list:
|
for stb in stb_list:
|
||||||
if type == "taosc":
|
if type == "taosc":
|
||||||
tdSql.execute(f'drop table if exists {stb}')
|
tdSql.execute(f'drop table if exists `{stb}`')
|
||||||
|
if not stb[0].isdigit():
|
||||||
|
tdSql.execute(f'drop table if exists {stb}')
|
||||||
elif type == "restful":
|
elif type == "restful":
|
||||||
self.restApiPost(f"drop table if exists {stb}")
|
self.restApiPost(f"drop table if exists `{stb}`")
|
||||||
|
if not stb[0].isdigit():
|
||||||
|
self.restApiPost(f"drop table if exists {stb}")
|
||||||
|
|
||||||
def dateToTs(self, datetime_input):
|
def dateToTs(self, datetime_input):
|
||||||
return int(time.mktime(time.strptime(datetime_input, "%Y-%m-%d %H:%M:%S.%f")))
|
return int(time.mktime(time.strptime(datetime_input, "%Y-%m-%d %H:%M:%S.%f")))
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue