MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / as_scalar

Method as_scalar

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

Source from the content-addressed store, hash-verified

3010 "use the :meth:`_query.Query.scalar_subquery` method.",
3011 )
3012 def as_scalar(self) -> ScalarSelect[Any]:
3013 return self.element.set_label_style(LABEL_STYLE_NONE).scalar_subquery()
3014
3015
3016class FromGrouping(GroupedElement, FromClause):

Callers

nothing calls this directly

Calls 2

scalar_subqueryMethod · 0.45
set_label_styleMethod · 0.45

Tested by

no test coverage detected