MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / as_scalar

Method as_scalar

lib/sqlalchemy/sql/selectable.py:3069–3070  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3067 "use the :meth:`_query.Query.scalar_subquery` method.",
3068 )
3069 def as_scalar(self) -> ScalarSelect[Any]:
3070 return self.element.set_label_style(LABEL_STYLE_NONE).scalar_subquery()
3071
3072
3073class FromGrouping(GroupedElement, FromClause[_KeyColCC_co]):

Callers

nothing calls this directly

Calls 2

scalar_subqueryMethod · 0.45
set_label_styleMethod · 0.45

Tested by

no test coverage detected