Merge branch '3.0' of https://github.com/taosdata/TDengine into refact/tsdb_last
This commit is contained in:
commit
cf18360cad
|
@ -1116,22 +1116,7 @@ int main(int argc, char* argv[]) {
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
<TabItem label="Python" value="Python">
|
<TabItem label="Python" value="Python">
|
||||||
|
<Python />
|
||||||
```python
|
|
||||||
import taos
|
|
||||||
from taos.tmq import TaosConsumer
|
|
||||||
|
|
||||||
import taos
|
|
||||||
from taos.tmq import *
|
|
||||||
consumer = TaosConsumer('topic_ctb_column', group_id='vg2')
|
|
||||||
for msg in consumer:
|
|
||||||
for row in msg:
|
|
||||||
print(row)
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
[查看源码](https://github.com/taosdata/TDengine/blob/develop/docs/examples/python/tmq_example.py)
|
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
<TabItem label="Node.JS" value="Node.JS">
|
<TabItem label="Node.JS" value="Node.JS">
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
```py
|
```py
|
||||||
{{#include docs/examples/python/subscribe_demo.py}}
|
{{#include docs/examples/python/tmq_example.py}}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue