TDengine/docs/examples/python/tmq_example.py
2022-08-24 18:33:10 +08:00

6 lines
166 B
Python

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)