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

Method as_scalar

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

Source from the content-addressed store, hash-verified

3747 ":meth:`_expression.SelectBase.scalar_subquery`.",
3748 )
3749 def as_scalar(self) -> ScalarSelect[Any]:
3750 return self.scalar_subquery()
3751
3752 def exists(self) -> Exists:
3753 """Return an :class:`_sql.Exists` representation of this selectable,

Callers

nothing calls this directly

Calls 1

scalar_subqueryMethod · 0.95

Tested by

no test coverage detected