MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / merge

Method merge

lib/sqlalchemy/engine/cursor.py:2269–2276  ·  view source on GitHub ↗
(self, *others: Result[Any])

Source from the content-addressed store, hash-verified

2267 return self._fetchiter_impl()
2268
2269 def merge(self, *others: Result[Any]) -> MergedResult[Any]:
2270 merged_result = super().merge(*others)
2271 if self.context._has_rowcount:
2272 merged_result.rowcount = sum(
2273 cast("CursorResult[Any]", result).rowcount
2274 for result in (self,) + others
2275 )
2276 return merged_result
2277
2278 def close(self) -> None:
2279 """Close this :class:`_engine.CursorResult`.

Callers

nothing calls this directly

Calls 2

sumClass · 0.85
castFunction · 0.85

Tested by

no test coverage detected