MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / row_factory

Method row_factory

cassandra/cluster.py:2345–2357  ·  view source on GitHub ↗

The format to return row results in. By default, each returned row will be a named tuple. You can alternatively use any of the following: - :func:`cassandra.query.tuple_factory` - return a result row as a tuple - :func:`cassandra.query.named_tuple_factory`

(self)

Source from the content-addressed store, hash-verified

2343 _row_factory = staticmethod(named_tuple_factory)
2344 @property
2345 def row_factory(self):
2346 """
2347 The format to return row results in. By default, each
2348 returned row will be a named tuple. You can alternatively
2349 use any of the following:
2350
2351 - :func:`cassandra.query.tuple_factory` - return a result row as a tuple
2352 - :func:`cassandra.query.named_tuple_factory` - return a result row as a named tuple
2353 - :func:`cassandra.query.dict_factory` - return a result row as a dict
2354 - :func:`cassandra.query.ordered_dict_factory` - return a result row as an OrderedDict
2355
2356 """
2357 return self._row_factory
2358
2359 @row_factory.setter
2360 def row_factory(self, rf):

Callers 3

resultsMethod · 0.80
execute_graph_asyncMethod · 0.80
_set_resultMethod · 0.80

Calls 1

Tested by

no test coverage detected