[TD-13603]<feature>: python connector for 3.0 (#11152)
* add a few stmt_ interface declartion * add taos_load_table_info * add taos_set_config(() interface * add more interfaces * warn 'reset query cache' only since lack engine support * update taos-tools
This commit is contained in:
parent
b926c72cfc
commit
2c1ec0dd10
|
@ -50,7 +50,10 @@ class TDSql:
|
||||||
def prepare(self):
|
def prepare(self):
|
||||||
tdLog.info("prepare database:db")
|
tdLog.info("prepare database:db")
|
||||||
s = 'reset query cache'
|
s = 'reset query cache'
|
||||||
self.cursor.execute(s)
|
try:
|
||||||
|
self.cursor.execute(s)
|
||||||
|
except:
|
||||||
|
tdLog.notice("'reset query cache' is not supported")
|
||||||
s = 'drop database if exists db'
|
s = 'drop database if exists db'
|
||||||
self.cursor.execute(s)
|
self.cursor.execute(s)
|
||||||
s = 'create database db'
|
s = 'create database db'
|
||||||
|
@ -341,4 +344,4 @@ class TDSql:
|
||||||
tdLog.info("dir: %s is created" %dir)
|
tdLog.info("dir: %s is created" %dir)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
tdSql = TDSql()
|
tdSql = TDSql()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit f36b07f710d661dca88fdd70e73b5e3e16a960e0
|
Subproject commit 33cdfe4f90a209f105c1b6091439798a9cde1e93
|
Loading…
Reference in New Issue