MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / all

Method all

lib/sqlalchemy/engine/result.py:970–987  ·  view source on GitHub ↗

Return all rows in a sequence. Closes the result set after invocation. Subsequent invocations will return an empty sequence. .. versionadded:: 1.4 :return: a sequence of :class:`_engine.Row` objects. .. seealso:: :ref:`engine_stream_results`

(self)

Source from the content-addressed store, hash-verified

968 return self._manyrow_getter(self, size)
969
970 def all(self) -> Sequence[Row[Unpack[_Ts]]]:
971 """Return all rows in a sequence.
972
973 Closes the result set after invocation. Subsequent invocations
974 will return an empty sequence.
975
976 .. versionadded:: 1.4
977
978 :return: a sequence of :class:`_engine.Row` objects.
979
980 .. seealso::
981
982 :ref:`engine_stream_results` - How to stream a large result set
983 without loading it completely in python.
984
985 """
986
987 return self._allrows()
988
989 def first(self) -> Optional[Row[Unpack[_Ts]]]:
990 """Fetch the first row or ``None`` if no row is present.

Callers 1

Calls 1

_allrowsMethod · 0.80

Tested by

no test coverage detected