MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / merge

Method merge

lib/sqlalchemy/engine/cursor.py:2385–2394  ·  view source on GitHub ↗
(
        self, *others: Result[Unpack[TupleAny]]
    )

Source from the content-addressed store, hash-verified

2383 return self._fetchiter_impl()
2384
2385 def merge(
2386 self, *others: Result[Unpack[TupleAny]]
2387 ) -> MergedResult[Unpack[TupleAny]]:
2388 merged_result = super().merge(*others)
2389 if self.context._has_rowcount:
2390 merged_result.rowcount = sum(
2391 cast("CursorResult[Any]", result).rowcount
2392 for result in (self,) + others
2393 )
2394 return merged_result
2395
2396 def close(self) -> None:
2397 """Close this :class:`_engine.CursorResult`.

Callers

nothing calls this directly

Calls 2

sumClass · 0.85
castFunction · 0.50

Tested by

no test coverage detected