提交 c369dc10 编写于 作者: D dingbo

test: update python example

上级 9007bb05
......@@ -15,14 +15,6 @@ conn = taosrest.connect(url=url, token=token)
print("server version:", conn.server_info)
# ANCHOR_END: connect
# ANCHOR: insert
# drop database
affected_row = conn.execute("DROP DATABASE IF EXISTS power")
print("affected_row", affected_row) # 0
# create database
affected_row = conn.execute("CREATE DATABASE power")
print("affected_row", affected_row) # 0
# create super table
conn.execute("CREATE STABLE power.meters (ts TIMESTAMP, current FLOAT, voltage INT, phase FLOAT) TAGS (location BINARY(64), groupId INT)")
print("affected_row", affected_row) # 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册