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

Method selectable

lib/sqlalchemy/orm/query.py:796–805  ·  view source on GitHub ↗

Return the :class:`_expression.Select` object emitted by this :class:`_query.Query`. Used for :func:`_sa.inspect` compatibility, this is equivalent to:: query.enable_eagerloads(False).with_labels().statement

(self)

Source from the content-addressed store, hash-verified

794
795 @property
796 def selectable(self) -> Union[Select[_T], FromStatement[_T], UpdateBase]:
797 """Return the :class:`_expression.Select` object emitted by this
798 :class:`_query.Query`.
799
800 Used for :func:`_sa.inspect` compatibility, this is equivalent to::
801
802 query.enable_eagerloads(False).with_labels().statement
803
804 """
805 return self.__clause_element__()
806
807 def __clause_element__(
808 self,

Callers

nothing calls this directly

Calls 1

__clause_element__Method · 0.95

Tested by

no test coverage detected