We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9bffe4 commit b5a801dCopy full SHA for b5a801d
README.rst
@@ -91,13 +91,14 @@ It will execute sql query and keep listening streaming data.
91
92
client.query('select * from table1')
93
94
-This command returns a generator. It can be printed e.g. by reading its values via `next(query)` or a for loop:
+This command returns a generator. It can be printed e.g. by reading its values via `next(query)` or a for loop. Here is a complete example:
95
96
.. code:: python
97
98
- for item in query:
99
- print(item)
100
-
+ from ksql import KSQLAPI
+ client = KSQLAPI('http://localhost:8088')
+ query = client.query('select * from table1')
101
+ for item in query: print(item)
102
103
- Example Response
104
0 commit comments