TDengine/docs/examples/python/tmq_example.py

7 lines
166 B
Python
Raw Normal View History

2022-08-12 08:07:00 +00:00
import taos
2022-08-16 04:06:35 +00:00
from taos.tmq import TaosConsumer
consumer = TaosConsumer('topic_ctb_column', group_id='vg2')
for msg in consumer:
for row in msg:
print(row)