MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / selectable

Method selectable

lib/sqlalchemy/orm/query.py:816–825  ·  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

814
815 @property
816 def selectable(self) -> Union[Select[_T], FromStatement[_T], UpdateBase]:
817 """Return the :class:`_expression.Select` object emitted by this
818 :class:`_query.Query`.
819
820 Used for :func:`_sa.inspect` compatibility, this is equivalent to::
821
822 query.enable_eagerloads(False).with_labels().statement
823
824 """
825 return self.__clause_element__()
826
827 def __clause_element__(
828 self,

Callers

nothing calls this directly

Calls 1

__clause_element__Method · 0.95

Tested by

no test coverage detected