TDengine/docs/examples/python/tmq_example.py

7 lines
166 B
Python
Raw Normal View History

2022-08-24 10:33:10 +00:00
import taos
from taos.tmq import TaosConsumer
consumer = TaosConsumer('topic_ctb_column', group_id='vg2')
for msg in consumer:
for row in msg:
print(row)