MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/engine/result.py:1772–1780  ·  view source on GitHub ↗
(self, result: Result[Unpack[_Ts]])

Source from the content-addressed store, hash-verified

1770 data: Sequence[Any]
1771
1772 def __init__(self, result: Result[Unpack[_Ts]]):
1773 self.metadata = result._metadata._for_freeze()
1774 self._source_supports_scalars = result._source_supports_scalars
1775 self._attributes = result._attributes
1776
1777 if self._source_supports_scalars:
1778 self.data = list(result._raw_row_iterator())
1779 else:
1780 self.data = result.fetchall()
1781
1782 def _rewrite_rows(self) -> Sequence[Sequence[Any]]:
1783 # used only by the orm fn merge_frozen_result

Callers

nothing calls this directly

Calls 3

_for_freezeMethod · 0.45
_raw_row_iteratorMethod · 0.45
fetchallMethod · 0.45

Tested by

no test coverage detected