Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit 5b64569

Browse files
committed
note about row_factory in protocol handler section
1 parent 09d6835 commit 5b64569

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/api/cassandra/protocol.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ and ``NumpyProtocolHandler``. They can be used as follows:
3838
.. code:: python
3939
4040
from cassandra.protocol import NumpyProtocolHandler, LazyProtocolHandler
41+
from cassandra.query import tuple_factory
4142
s.client_protocol_handler = LazyProtocolHandler # for a result iterator
43+
s.row_factory = tuple_factory #required for Numpy results
4244
s.client_protocol_handler = NumpyProtocolHandler # for a dict of NumPy arrays as result
4345
4446
These protocol handlers comprise different parsers, and return results as described below:

0 commit comments

Comments
 (0)