Skip to content

Commit 2605a2a

Browse files
Merge pull request bryanyang0528#45 from kaiwaehner/master
Added explanation for how to print the continuous query
2 parents 49505c9 + d016578 commit 2605a2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ It will execute sql query and keep listening streaming data.
8282
8383
client.query('select * from table1')
8484
85+
This command returns a generator. It can be printed e.g. by reading its values via `next(query)` or a for loop:
86+
87+
````
88+
for item in query:
89+
print(item)
90+
````
91+
8592
- Example Response
8693

8794
::

0 commit comments

Comments
 (0)