MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _rewrite_rows

Method _rewrite_rows

lib/sqlalchemy/engine/result.py:1782–1787  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1780 self.data = result.fetchall()
1781
1782 def _rewrite_rows(self) -> Sequence[Sequence[Any]]:
1783 # used only by the orm fn merge_frozen_result
1784 if self._source_supports_scalars:
1785 return [[elem] for elem in self.data]
1786 else:
1787 return [list(row) for row in self.data]
1788
1789 def with_new_rows(
1790 self, tuple_data: Sequence[Row[Unpack[_Ts]]]

Callers 1

merge_frozen_resultFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected