MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / all

Method all

lib/sqlalchemy/orm/query.py:2746–2768  ·  lib/sqlalchemy/orm/query.py::Query.all

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)

Source from the content-addressed store, hash-verified

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)

Callers 15

do_recover_twophaseMethod · 0.45
get_schema_namesMethod · 0.45
_get_table_oidsMethod · 0.45
_load_pg_am_dictMethod · 0.45
prepare_for_drop_tablesFunction · 0.45
AllFunction · 0.45
_get_synonymsMethod · 0.45
_get_all_objectsMethod · 0.45
_purge_recyclebinFunction · 0.45

Calls 1

_iterMethod · 0.95

Tested by 15

test_tuplesMethod · 0.36
test_windowMethod · 0.36
test_window_rangeMethod · 0.36
test_bitwiseMethod · 0.36
goMethod · 0.36