Return the results represented by this :class:`_query.Query` as a list. This results in an execution of the underlying SQL statement. .. warning:: The :class:`_query.Query` object, when asked to return either a sequence or iterator that consists of fu
(self)
| 2744 | return self |
| 2745 | |
| 2746 | def all(self) -> List[_T]: |
| 2747 | class="st">"""Return the results represented by this :class:`_query.Query` |
| 2748 | as a list. |
| 2749 | |
| 2750 | This results in an execution of the underlying SQL statement. |
| 2751 | |
| 2752 | .. warning:: The :class:`_query.Query` object, |
| 2753 | when asked to return either |
| 2754 | a sequence or iterator that consists of full ORM-mapped entities, |
| 2755 | will **deduplicate entries based on primary key**. See the FAQ for |
| 2756 | more details. |
| 2757 | |
| 2758 | .. seealso:: |
| 2759 | |
| 2760 | :ref:`faq_query_deduplicating` |
| 2761 | |
| 2762 | .. seealso:: |
| 2763 | |
| 2764 | :meth:`_engine.Result.all` - v2 comparable method. |
| 2765 | |
| 2766 | :meth:`_engine.Result.scalars` - v2 comparable method. |
| 2767 | class="st">""" |
| 2768 | return self._iter().all() class="cm"># type: ignore |
| 2769 | |
| 2770 | @_generative |
| 2771 | @_assertions(_no_clauseelement_condition) |