Return a new :class:`.CursorResult` that "vertically splices", i.e. "extends", the rows of this :class:`.CursorResult` with that of another :class:`.CursorResult`. .. tip:: This method is for the benefit of the SQLAlchemy ORM and is not intended for general use.
(self, other: CursorResult[Any])
| 2044 | return clone |
| 2045 | |
| 2046 | def splice_vertically(self, other: CursorResult[Any]) -> Self: |
| 2047 | """Return a new :class:`.CursorResult` that "vertically splices", |
| 2048 | i.e. "extends", the rows of this :class:`.CursorResult` with that of |
| 2049 | another :class:`.CursorResult`. |
| 2050 | |
| 2051 | .. tip:: This method is for the benefit of the SQLAlchemy ORM and is |
| 2052 | not intended for general use. |
| 2053 | |
| 2054 | "vertically splices" means the rows of the given result are appended to |
| 2055 | the rows of this cursor result. The incoming :class:`.CursorResult` |
| 2056 | must have rows that represent the identical list of columns in the |
| 2057 | identical order as they are in this :class:`.CursorResult`. |
| 2058 | |
| 2059 | .. versionadded:: 2.0 |
| 2060 | |
| 2061 | .. seealso:: |
| 2062 | |
| 2063 | :meth:`.CursorResult.splice_horizontally` |
| 2064 | |
| 2065 | """ |
| 2066 | clone = self._generate() |
| 2067 | total_rows = list(self._raw_row_iterator()) + list( |
| 2068 | other._raw_row_iterator() |
| 2069 | ) |
| 2070 | |
| 2071 | clone.cursor_strategy = FullyBufferedCursorFetchStrategy( |
| 2072 | None, |
| 2073 | initial_buffer=total_rows, |
| 2074 | ) |
| 2075 | clone._reset_memoizations() |
| 2076 | return clone |
| 2077 | |
| 2078 | def _rewind(self, rows: Any) -> Self: |
| 2079 | """rewind this result back to the given rowset. |
no test coverage detected